Fork of patx/hglab.

Update tags UI

Commit a0c0de4fb160 · Harrison Erd · 2026-05-04 00:29 -0400

Changeset
a0c0de4fb160abc535a02bfad315b80a175d3f07

View source at this commit

Comments

No comments yet.

Log in to comment

Diff

diff --git a/templates/tags.tpl b/templates/tags.tpl
--- a/templates/tags.tpl
+++ b/templates/tags.tpl
@@ -17,20 +17,11 @@
       % for tag in tags:
         <li>
           <div>
-            <h2>{{tag["name"]}}</h2>
+            <h2>{{tag["name"]}} <a href="/hg/{{repo['owner_username']}}/{{repo['name']}}/archive/{{tag['short_node']}}.zip"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-download" viewBox="0 0 16 16"><path d="M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5"/><path d="M7.646 11.854a.5.5 0 0 0 .708 0l3-3a.5.5 0 0 0-.708-.708L8.5 10.293V1.5a.5.5 0 0 0-1 0v8.793L5.354 8.146a.5.5 0 1 0-.708.708z"/></svg></a></h2>
             <p>
               <code><a href="/{{repo['owner_username']}}/{{repo['name']}}/commits/{{tag['short_node']}}">{{tag["short_node"]}}</a></code>
               <span class="muted">rev {{tag["rev"]}} · {{tag["date"]}}</span>
             </p>
-            % if tag["summary"]:
-              <p>{{tag["summary"]}}</p>
-            % end
-          </div>
-          <div class="tag-actions">
-            <a class="button small" href="/hg/{{repo['owner_username']}}/{{repo['name']}}/archive/{{tag['short_node']}}.zip">Download zip</a>
-            <pre>hg clone {{clone_url}}
-cd {{repo["name"]}}
-hg update {{tag["shell_name"]}}</pre>
           </div>
         </li>
       % end
@@ -39,3 +30,4 @@
     <p class="empty">No tags yet.</p>
   % end
 </section>
+