diff --git a/templates/repo/refs.html b/templates/repo/refs.html
index 6f97657..dc887e9 100644
--- a/templates/repo/refs.html
+++ b/templates/repo/refs.html
@@ -7,15 +7,17 @@
{% call refs::branch_table(refs.heads) %}
-
-
- |
- |
- |
- |
-
-
+ {% if !refs.tags.is_empty() %}
+
+
+ |
+ |
+ |
+ |
+
+
- {% call refs::tag_table(refs.tags) %}
+ {% call refs::tag_table(refs.tags) %}
+ {% endif %}
{% endblock %}
\ No newline at end of file
diff --git a/templates/repo/summary.html b/templates/repo/summary.html
index a9c4b50..f0951e4 100644
--- a/templates/repo/summary.html
+++ b/templates/repo/summary.html
@@ -17,25 +17,27 @@
{% endif %}
-
-
- |
- |
- |
- |
-
-
+ {% if !refs.tags.is_empty() %}
+
+
+ |
+ |
+ |
+ |
+
+
- {% call refs::tag_table(refs.tags.iter().take(10)) %}
- {% if refs.tags.len() > 10 %}
-
-
- | [...] |
- |
- |
- |
-
-
+ {% call refs::tag_table(refs.tags.iter().take(10)) %}
+ {% if refs.tags.len() > 10 %}
+
+
+ | [...] |
+ |
+ |
+ |
+
+
+ {% endif %}
{% endif %}