changeset 21120:9ea9e94c7492

hgweb: fix lack of "bookmarks" link in "/file" page of "paper" style This patch also fixes same problem of "coal" style, because it re-uses "filerevision.tmpl" of "paper" style. "gitweb" and "monoblue" styles don't have such problems. "spartan" style doesn't have "bookmarks" page definition itself.
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
date Thu, 17 Apr 2014 09:36:08 +0900
parents 26f39f28b059
children 8c9e84b44221
files mercurial/templates/paper/filerevision.tmpl tests/test-hgweb-commands.t tests/test-highlight.t
diffstat 3 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/templates/paper/filerevision.tmpl	Thu Apr 17 11:48:22 2014 -0700
+++ b/mercurial/templates/paper/filerevision.tmpl	Thu Apr 17 09:36:08 2014 +0900
@@ -13,6 +13,7 @@
 <li><a href="{url|urlescape}shortlog/{node|short}{sessionvars%urlparameter}">log</a></li>
 <li><a href="{url|urlescape}graph/{node|short}{sessionvars%urlparameter}">graph</a></li>
 <li><a href="{url|urlescape}tags{sessionvars%urlparameter}">tags</a></li>
+<li><a href="{url|urlescape}bookmarks{sessionvars%urlparameter}">bookmarks</a></li>
 <li><a href="{url|urlescape}branches{sessionvars%urlparameter}">branches</a></li>
 </ul>
 <ul>
--- a/tests/test-hgweb-commands.t	Thu Apr 17 11:48:22 2014 -0700
+++ b/tests/test-hgweb-commands.t	Thu Apr 17 09:36:08 2014 +0900
@@ -953,6 +953,7 @@
   <li><a href="/shortlog/a4f92ed23982">log</a></li>
   <li><a href="/graph/a4f92ed23982">graph</a></li>
   <li><a href="/tags">tags</a></li>
+  <li><a href="/bookmarks">bookmarks</a></li>
   <li><a href="/branches">branches</a></li>
   </ul>
   <ul>
--- a/tests/test-highlight.t	Thu Apr 17 11:48:22 2014 -0700
+++ b/tests/test-highlight.t	Thu Apr 17 09:36:08 2014 +0900
@@ -82,6 +82,7 @@
   <li><a href="/shortlog/853dcd4de2a6">log</a></li>
   <li><a href="/graph/853dcd4de2a6">graph</a></li>
   <li><a href="/tags">tags</a></li>
+  <li><a href="/bookmarks">bookmarks</a></li>
   <li><a href="/branches">branches</a></li>
   </ul>
   <ul>