smithy

commit 5bf10e5fdc06f768da64cdaf21436cf77a781bc6

Author: Honza Pokorny <honza@pokorny.ca>

templates: render ref name, not repo name

Inside the .Branches and .Tags ranges, the "." refers to the branch or
tag, so we want to ask for the ref's name, and not RepoName.

 include/refs.html | 12 ++++++------


diff --git a/include/refs.html b/include/refs.html
index 154f3c4395be1aeeeb64b448d43559d3fa087bc1..14f423df0307e37811caf458a7c7d79abee67505 100644
--- a/include/refs.html
+++ b/include/refs.html
@@ -28,9 +28,9 @@
 <table class="table">
     {{ range .Branches }}
       <tr>
-          <td>{{ .RepoName.Short }}</td>
-          <td><a href="/{{ $repo }}/log/{{ .RepoName.Short }}">log</a></td>
-          <td><a href="/{{ $repo }}/tree/{{ .RepoName.Short }}">tree</a></td>
+          <td>{{ .Name.Short }}</td>
+          <td><a href="/{{ $repo }}/log/{{ .Name.Short }}">log</a></td>
+          <td><a href="/{{ $repo }}/tree/{{ .Name.Short }}">tree</a></td>
       </tr>
     {{ end }}
 </table>
@@ -40,9 +40,9 @@
 <table class="table">
     {{ range .Tags }}
     <tr>
-        <td>{{ .RepoName.Short }}</td>
-        <td><a href="/{{ $repo }}/log/{{ .RepoName.Short }}">log</a></td>
-        <td><a href="/{{ $repo }}/tree/{{ .RepoName.Short }}">tree</a></td>
+        <td>{{ .Name.Short }}</td>
+        <td><a href="/{{ $repo }}/log/{{ .Name.Short }}">log</a></td>
+        <td><a href="/{{ $repo }}/tree/{{ .Name.Short }}">tree</a></td>
     </tr>
     {{ end }}
 </table>