Commit
Message
Changed Files (4)
-
modified CHANGELOG.md
diff --git a/CHANGELOG.md b/CHANGELOG.md index cc9de7a..cc5c489 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ - Detect non-interactive terminals and fall back to logging - Add builder categories for grouped artifact display on release pages +### 🐛 Bug Fixes + +- Make the refnames (branch/tag) clickable in gitui + ### 🚜 Refactor - Split builder running & output rendering into own modules -
modified src/templates/git_log.html.j2
diff --git a/src/templates/git_log.html.j2 b/src/templates/git_log.html.j2 index 993a86a..fc3b05d 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 %}<span class="ref-badge ref-badge-{{ badge.kind }}">{{ badge.label }}</span>{% 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 %} </td> <td>{{ commit.subject }}</td> <td>{{ commit.author_name }}</td> -
modified src/templates/git_refs.gmi.j2
diff --git a/src/templates/git_refs.gmi.j2 b/src/templates/git_refs.gmi.j2 index d1b6446..c1439f7 100644 --- a/src/templates/git_refs.gmi.j2 +++ b/src/templates/git_refs.gmi.j2 @@ -4,12 +4,12 @@ {% if branches %} ## Branches {% for branch in branches %} -=> {{ branch.short_name | replace(from="/", to="-") }}.gmi {{ branch.short_name }} +=> commit/{{ branch.hash }}.gmi {{ branch.short_name }} {% endfor %} {% endif %} {% if tags %} ## Tags {% for tag in tags %} -=> ../{{ tag.short_name }}/index.gmi {{ tag.short_name }} +=> commit/{{ tag.hash }}.gmi {{ tag.short_name }} {% endfor %} {% endif %} -
modified src/templates/git_refs.html.j2
diff --git a/src/templates/git_refs.html.j2 b/src/templates/git_refs.html.j2 index 73b3e42..c10abba 100644 --- a/src/templates/git_refs.html.j2 +++ b/src/templates/git_refs.html.j2 @@ -18,7 +18,7 @@ <tbody> {% for ref in tags %} <tr id="tag-{{ ref.short_name }}"> - <td><span class="ref-kind-tag">{{ ref.short_name | escape }}</span></td> + <td><a class="ref-kind-tag" href="commit/{{ ref.hash }}.html">{{ ref.short_name | escape }}</a></td> <td><a class="hash" href="commit/{{ ref.hash }}.html">{{ ref.hash_short }}</a></td> </tr> {% endfor %} @@ -33,7 +33,7 @@ <tbody> {% for ref in branches %} <tr> - <td><span class="ref-kind-branch">{{ ref.short_name }}</span></td> + <td><a class="ref-kind-branch" href="commit/{{ ref.hash }}.html">{{ ref.short_name }}</a></td> <td><a class="hash" href="commit/{{ ref.hash }}.html">{{ ref.hash_short }}</a></td> </tr> {% endfor %}