git repos / sago_web_git

commit 2cd9ec07

Poul Sander · 2026-07-04 08:31
2cd9ec071cb6d203388e1c5d99dd0499294eecfd patch · browse files
parent 77397b212d0d732ef2490d1693232ba2f72a756c

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>