Patchwork [06,of,11] hgweb: get rid of branchentry template duplication

login
register
mail settings
Submitter Alexander Plavin
Date July 13, 2013, 3:38 p.m.
Message ID <4c114146e26d37c1d56e.1373729892@debian-alexander.dolgopa>
Download mbox | patch
Permalink /patch/1864/
State Superseded
Commit 78d1e1029aa4cc1958abc0a4ba9721bd493055fc
Headers show

Comments

Alexander Plavin - July 13, 2013, 3:38 p.m.
# HG changeset patch
# User Alexander Plavin <me@aplavin.ru>
# Date 1373723484 -14400
#      Sat Jul 13 17:51:24 2013 +0400
# Node ID 4c114146e26d37c1d56e311169603e370b712a4c
# Parent  b72d42843c77c34a74cc53e4f56ae45f5946eda7
hgweb: get rid of branchentry template duplication

Patch

diff -r b72d42843c77 -r 4c114146e26d mercurial/templates/paper/branches.tmpl
--- a/mercurial/templates/paper/branches.tmpl	Sat Jul 13 17:49:20 2013 +0400
+++ b/mercurial/templates/paper/branches.tmpl	Sat Jul 13 17:51:24 2013 +0400
@@ -47,18 +47,7 @@ 
  <th>branch</th>
  <th>node</th>
 </tr>
-{entries %
-' <tr class="tagEntry parity{parity}">
-    <td>
-      <a href="{url|urlescape}shortlog/{node|short}{sessionvars%urlparameter}" class="{status}">
-        {branch|escape}
-      </a>
-    </td>
-    <td class="node">
-      {node|short}
-    </td>
-  </tr>'
-}
+{entries % branchentry}
 </table>
 </div>
 </div>