Patchwork hgweb: get rid of branchentry template duplication

login
register
mail settings
Submitter Alexander Plavin
Date July 17, 2013, 7:24 p.m.
Message ID <93b219276e0ed4f43eba.1374089082@debian-alexander.dolgopa>
Download mbox | patch
Permalink /patch/1913/
State Accepted
Commit 78d1e1029aa4cc1958abc0a4ba9721bd493055fc
Headers show

Comments

Alexander Plavin - July 17, 2013, 7:24 p.m.
# HG changeset patch
# User Alexander Plavin <me@aplavin.ru>
# Date 1373723484 -14400
#      Sat Jul 13 17:51:24 2013 +0400
# Node ID 93b219276e0ed4f43eba87cd801f971e5200ce83
# Parent  9647be8f7af26a0cbf15078207fa8870aebc9ad4
hgweb: get rid of branchentry template duplication
Matt Mackall - July 17, 2013, 7:27 p.m.
On Wed, 2013-07-17 at 23:24 +0400, Alexander Plavin wrote:
> # HG changeset patch
> # User Alexander Plavin <me@aplavin.ru>
> # Date 1373723484 -14400
> #      Sat Jul 13 17:51:24 2013 +0400
> # Node ID 93b219276e0ed4f43eba87cd801f971e5200ce83
> # Parent  9647be8f7af26a0cbf15078207fa8870aebc9ad4
> hgweb: get rid of branchentry template duplication

Queued for default, thanks. Consider using 'paper' as the topic where
appropriate.

Patch

diff -r 9647be8f7af2 -r 93b219276e0e 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>