Submitter | Antonio Zanardo |
---|---|
Date | Feb. 4, 2013, 3:56 p.m. |
Message ID | <303f2af5f2374d45f623.1359993370@air.local> |
Download | mbox | patch |
Permalink | /patch/800/ |
State | Rejected, archived |
Delegated to: | Matt Mackall |
Headers | show |
Comments
On Mon, 2013-02-04 at 13:56 -0200, Antonio Zanardo wrote: > # HG changeset patch > # User Antonio Zanardo <zanardo@gmail.com> > # Date 1359991109 7200 > # Node ID 303f2af5f2374d45f623bc6e5c9e3030c1dd9acd > # Parent c4dd3efdf2246f8d80813ea84d7c9f0b45eb046c > hgweb: group branches by status in gitweb style Features for hgweb should appear in the default style (paper) first.
Patch
diff --git a/mercurial/templates/gitweb/branches.tmpl b/mercurial/templates/gitweb/branches.tmpl --- a/mercurial/templates/gitweb/branches.tmpl +++ b/mercurial/templates/gitweb/branches.tmpl @@ -25,9 +25,19 @@ <br/> </div> -<div class="title"> </div> -<table cellspacing="0"> -{entries%branchentry} -</table> +{if(entriesopen, ' + <div class="title">open branches</div> + <table cellspacing="0"> + {entriesopen%branchentry} + </table> +')} + +{if(entriesclosed, ' + <div class="title">closed branches</div> + <table cellspacing="0"> + {entriesclosed%branchentry} + <tr class="light"><td colspan="3"><a class="list" href="{url|urlescape}branches{allclosedvars%urlparameter}">...</a></td></tr> + </table> +')} {footer}