[PATCH 8 of 8 stable] hgweb: add missing bookmarks definition to coal/map

Yuya Nishihara yuya at tcha.org
Sun Apr 3 10:34:21 CDT 2011


# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1301842037 -32400
# Branch stable
# Node ID e33ebe67657a481fd0c0f53ea929aa41925fd972
# Parent  fd8a6ca3a7502313bb7b172f6cb4b3764265bedb
hgweb: add missing bookmarks definition to coal/map

It shares most templates with paper style.

diff --git a/mercurial/templates/coal/map b/mercurial/templates/coal/map
--- a/mercurial/templates/coal/map
+++ b/mercurial/templates/coal/map
@@ -142,6 +142,18 @@ tagentry = '
       {node|short}
     </td>
   </tr>'
+bookmarks = ../paper/bookmarks.tmpl
+bookmarkentry = '
+  <tr class="tagEntry parity{parity}">
+    <td>
+      <a href="{url}rev/{node|short}{sessionvars%urlparameter}">
+        {bookmark|escape}
+      </a>
+    </td>
+    <td class="node">
+      {node|short}
+    </td>
+  </tr>'
 branches = ../paper/branches.tmpl
 branchentry = '
   <tr class="tagEntry parity{parity}">
@@ -156,6 +168,7 @@ branchentry = '
   </tr>'
 changelogtag = '<span class="tag">{name|escape}</span> '
 changesettag = '<span class="tag">{tag|escape}</span> '
+changesetbookmark = '<span class="tag">{bookmark|escape}</span> '
 changelogbranchhead = '<span class="branchhead">{name|escape}</span> '
 changelogbranchname = '<span class="branchname">{name|escape}</span> '
 


More information about the Mercurial-devel mailing list