diff --git a/themed/refs.html b/themed/refs.html index 5da2bd9..0c5e714 100644 --- a/themed/refs.html +++ b/themed/refs.html @@ -29,14 +29,23 @@ {! struct commitinfo *info = ref->commit; !} {! char *name = (char *)ref->refname; !} {! if (!info) { continue; } !} -
-
{{ name }}
- {% if ref->object->type == OBJ_COMMIT %} -
- {{ info->subject }} · Updated {! cgit_print_age(info->committer_date, info->committer_tz, -1); !} ago - - {{ info->author }} +
+
+ {# Branch info #} +
{{ name }}
+ {% if ref->object->type == OBJ_COMMIT %} +
+ {{ info->subject }} · Updated {! cgit_print_age(info->committer_date, info->committer_tz, -1); !} ago + + {{ info->author }} +
+ {% endif %}
+ {% if strcmp(name, ctx.qry.head) %}{# Only show compare button if not equal to current branch #} +
+ + Compare + {% endif %}
{% endfor %}