Commit
Message
Changed Files (3)
-
modified src/templates/git_log.gmi.j2
diff --git a/src/templates/git_log.gmi.j2 b/src/templates/git_log.gmi.j2 index a199b50..ace4015 100644 --- a/src/templates/git_log.gmi.j2 +++ b/src/templates/git_log.gmi.j2 @@ -8,5 +8,6 @@ ## Commits {% for commit in commits %} => commit/{{ commit.hash }}.gmi {{ commit.date }} {{ commit.subject }} +{% if commit.ref_badges %}=> browse/{{ commit.hash }}/ browse{% endif %} {% endfor %} {% if truncated %}... (truncated){% endif %} -
modified src/templates/git_log.html.j2
diff --git a/src/templates/git_log.html.j2 b/src/templates/git_log.html.j2 index fc3b05d..1ace956 100644 --- a/src/templates/git_log.html.j2 +++ b/src/templates/git_log.html.j2 @@ -40,7 +40,7 @@ {% for commit in commits %} <tr> <td class="commit-hash-cell"> - <a class="hash" href="commit/{{ commit.hash }}.html">{{ commit.hash_short }}</a>{% for badge in commit.ref_badges %}<a href="commit/{{ commit.hash }}.html" class="ref-badge ref-badge-{{ badge.kind }}">{{ badge.label }}</a>{% endfor %} + <a class="hash" href="commit/{{ commit.hash }}.html">{{ commit.hash_short }}</a>{% for badge in commit.ref_badges %}<a href="commit/{{ commit.hash }}.html" class="ref-badge ref-badge-{{ badge.kind }}">{{ badge.label }}</a>{% endfor %}{% if commit.ref_badges %}<a href="browse/{{ commit.hash }}/" class="ref-badge browse-link">browse</a>{% endif %} </td> <td>{{ commit.subject }}</td> <td>{{ commit.author_name }}</td> -
modified src/templates/site.css
diff --git a/src/templates/site.css b/src/templates/site.css index 705efed..281047a 100644 --- a/src/templates/site.css +++ b/src/templates/site.css @@ -347,6 +347,17 @@ tr.diff-context td { text-decoration: none; line-height: 1.4; } +.browse-link { + background: var(--bg-alt); + color: var(--link); + border-color: var(--border); +} +.browse-link:hover { + background: var(--link); + color: var(--bg-content); + border-color: var(--link); +} + .ref-badge-tag { background: #e8f4e8; color: #2d6a2d;