🐙 Templated web page generator for your git repositories
git clone https://github.com/m-col/gitja
Files | Refs | Readme | License

Commit 0963258ffce3ee3f5dee287468e605f2970818aa
Parent: ca65149efd444d8d2f4875112039318731dfcb17
Author: mcol <mcol@posteo.net>
Date: 2021-11-22 00:18:23 +0000
Committer: mcol <mcol@posteo.net>
Committed: 2021-11-22 00:18:23 +0000

improve ref table formatting

templates/refs.html Modified

@@ -11,11 +11,11 @@
   <h2>Branches</h2>
   <table id="branches">
     <thead>
-      <tr><td><b>Name</b></td><td><b>Last commit date</b></td><td><b>Last commit</b></td><td><b>Author</b></td></tr>
+      <tr><td><b>Name</b></td><td colspan="2"><b>Last commit</b></td><td><b>Author</b></td></tr>
     </thead>
     <tbody>
       {% for branch in branches %}
-      <tr><td>{{ branch.name }}</td><td>{{ branch.authored }}</td><td>{{ branch.title }}</td><td>{{ branch.author }}</td></tr>
+      <tr><td>{{ branch.name }}</td><td>{{ branch.authored[:16] }}</td><td>{{ branch.title }}</td><td>{{ branch.author }}</td></tr>
       {% endfor %}
     </tbody>
   </table>
@@ -25,11 +25,11 @@
   <h2>Tags</h2>
   <table id="tags">
     <thead>
-      <tr><td><b>Name</b></td><td><b>Last commit date</b></td><td><b>Last commit</b></td><td><b>Author</b></td></tr>
+      <tr><td><b>Name</b></td><td colspan="2"><b>Last commit</b></td><td><b>Author</b></td></tr>
     </thead>
     <tbody>
       {% for tag in tags %}
-      <tr><td>{{ tag.name }}</td><td>{{ tag.authored }}</td><td>{{ tag.title }}</td><td>{{ tag.author }}</td></tr>
+      <tr><td>{{ tag.name }}</td><td>{{ tag.authored[:16] }}</td><td>{{ tag.title }}</td><td>{{ tag.author }}</td></tr>
       {% endfor %}
     </tbody>
   </table>