From 3f70e703d2ea61fe9cecce05f3e593809a897fe4 Mon Sep 17 00:00:00 2001
From: Jordan Doyle <jordan@doyle.la>
Date: Sat, 23 Jul 2022 15:32:46 +0100
Subject: [PATCH] Cleanup commit table on summary

---
 templates/repo/log.html         | 2 +-
 templates/repo/summary.html     | 2 +-
 templates/repo/macros/refs.html | 6 +-----
 3 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/templates/repo/log.html b/templates/repo/log.html
index 12ca23c..e96eb5c 100644
--- a/templates/repo/log.html
+++ a/templates/repo/log.html
@@ -5,7 +5,7 @@
 
 {% block content %}
 <table class="repositories">
-    {% call refs::commit_table(commits, false) %}
+    {% call refs::commit_table(commits) %}
 </table>
 
 {% if let Some(next_offset) = next_offset %}
diff --git a/templates/repo/summary.html b/templates/repo/summary.html
index f0951e4..adbde6b 100644
--- a/templates/repo/summary.html
+++ a/templates/repo/summary.html
@@ -49,7 +49,7 @@
     </tr>
     </tbody>
 
-    {% call refs::commit_table(commit_list.iter().take(10), true) %}
+    {% call refs::commit_table(commit_list.iter().take(10)) %}
     {% if commit_list.len() > 10 %}
     <tbody>
     <tr class="no-background">
diff --git a/templates/repo/macros/refs.html b/templates/repo/macros/refs.html
index 316ddcd..5ae7403 100644
--- a/templates/repo/macros/refs.html
+++ a/templates/repo/macros/refs.html
@@ -60,7 +60,7 @@
 </thead>
 {% endmacro %}
 
-{% macro commit_table(commits, with_extras) %}
+{% macro commit_table(commits) %}
 <thead>
 <tr>
     <th>Age</th>
@@ -82,10 +82,6 @@
         <img src="https://www.gravatar.com/avatar/{{ commit.author.email|md5 }}?s=13&d=retro" width="13" height="13">
         {{ commit.author.name }}
     </td>
-
-    {% if with_extras %}
-    <td></td>
-    {% endif %}
 </tr>
 {% endfor %}
 </tbody>
--
rgit 0.1.4