git » git-arr » commit 56b0b34

style: In the index, make the project names explicit links

author Alberto Bertogli
2017-08-27 14:27:47 UTC
committer Alberto Bertogli
2017-08-27 14:29:24 UTC
parent 9b21bd6f191fab943ffea791285b8dfb97ec95ef

style: In the index, make the project names explicit links

For readability, make the project names in the index to be explicit
links.

static/git-arr.css +5 -0
views/index.html +3 -3

diff --git a/static/git-arr.css b/static/git-arr.css
index 0619b27..a4ecc02 100644
--- a/static/git-arr.css
+++ b/static/git-arr.css
@@ -99,6 +99,11 @@ span.tag {
     background-color: #ffff88;
 }
 
+/* Projects table */
+table.projects td.name a {
+    color: #038;
+}
+
 /* Age of an object.
  * Note this is hidden by default as we rely on javascript to show it. */
 span.age {
diff --git a/views/index.html b/views/index.html
index c2a5bb8..a1d7aa4 100644
--- a/views/index.html
+++ b/views/index.html
@@ -11,7 +11,7 @@
 <body class="index" onload="replace_timestamps()">
 <h1>git</h1>
 
-<table class="nice">
+<table class="nice projects">
     <tr>
         <th>project</th>
         <th>description</th>
@@ -19,8 +19,8 @@
 
     % for repo in sorted(repos.values(), key = lambda r: r.name):
     <tr>
-        <td><a href="r/{{repo.name}}/">{{repo.name}}</a></td>
-        <td><a href="r/{{repo.name}}/">{{repo.info.desc}}</a></td>
+        <td class="name"><a href="r/{{repo.name}}/">{{repo.name}}</a></td>
+        <td class="desc"><a href="r/{{repo.name}}/">{{repo.info.desc}}</a></td>
         <td><span class="age">{{repo.last_commit_timestamp()}}</span></td>
     </tr>
     %end