commit 2cd9ec07
Add timestamp to the blame page
Changed files
| M | static/style.css before |
| M | templates/repo.tmpl before |
diff --git a/static/style.css b/static/style.css
index 08420e1..135bf2c 100644
--- a/static/style.css
+++ b/static/style.css
@@ -276,6 +276,7 @@ table.blame td { padding: 0 0.5rem; border: none; vertical-align: top; }
table.blame tr:hover td { background: var(--row-hover); }
table.blame .commit { color: var(--link); }
table.blame .author { color: var(--muted); white-space: nowrap; }
+table.blame .date { color: var(--muted); white-space: nowrap; }
table.blame .lineno { color: var(--muted); text-align: right; user-select: none; }
table.blame .line pre { margin: 0; white-space: pre; }
diff --git a/templates/repo.tmpl b/templates/repo.tmpl
index 5777132..0523618 100644
--- a/templates/repo.tmpl
+++ b/templates/repo.tmpl
@@ -152,6 +152,7 @@
<tr>
<td class="commit"><a href="/repos/<%= repo %>/commit/<%= l.short_oid %>"><%= l.short_oid %></a></td>
<td class="author"><%= l.author %></td>
+<td class="date"><% c++ out() << util::format_time(l.time); %></td>
<td class="lineno"><%= l.number %></td>
<td class="line"><pre><%= l.content %></pre></td>
</tr>