hgweb: add separate bookmarks listing to monoblue theme (based on 38c9837b1f75) stable
authorYuya Nishihara <yuya@tcha.org>
Sun, 03 Apr 2011 22:53:20 +0900
branchstable
changeset 13860 b5b84dd43613
parent 13859 78acaca60243
child 13861 e8f50febc2d4
hgweb: add separate bookmarks listing to monoblue theme (based on 38c9837b1f75)
mercurial/templates/monoblue/bookmarks.tmpl
mercurial/templates/monoblue/branches.tmpl
mercurial/templates/monoblue/changelog.tmpl
mercurial/templates/monoblue/changeset.tmpl
mercurial/templates/monoblue/error.tmpl
mercurial/templates/monoblue/fileannotate.tmpl
mercurial/templates/monoblue/filediff.tmpl
mercurial/templates/monoblue/filelog.tmpl
mercurial/templates/monoblue/filerevision.tmpl
mercurial/templates/monoblue/graph.tmpl
mercurial/templates/monoblue/help.tmpl
mercurial/templates/monoblue/helptopics.tmpl
mercurial/templates/monoblue/manifest.tmpl
mercurial/templates/monoblue/map
mercurial/templates/monoblue/notfound.tmpl
mercurial/templates/monoblue/search.tmpl
mercurial/templates/monoblue/shortlog.tmpl
mercurial/templates/monoblue/summary.tmpl
mercurial/templates/monoblue/tags.tmpl
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mercurial/templates/monoblue/bookmarks.tmpl	Sun Apr 03 22:53:20 2011 +0900
@@ -0,0 +1,38 @@
+{header}
+    <title>{repo|escape}: Bookmarks</title>
+    <link rel="alternate" type="application/atom+xml" href="{url}atom-log" title="Atom feed for {repo|escape}"/>
+    <link rel="alternate" type="application/rss+xml" href="{url}rss-log" title="RSS feed for {repo|escape}"/>
+</head>
+
+<body>
+<div id="container">
+    <div class="page-header">
+        <h1><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / Bookmarks</h1>
+
+        <form action="{url}log">
+            {sessionvars%hiddenformentry}
+            <dl class="search">
+                <dt><label>Search: </label></dt>
+                <dd><input type="text" name="rev" /></dd>
+            </dl>
+        </form>
+
+        <ul class="page-nav">
+            <li><a href="{url}summary{sessionvars%urlparameter}">summary</a></li>
+            <li><a href="{url}shortlog{sessionvars%urlparameter}">shortlog</a></li>
+            <li><a href="{url}changelog{sessionvars%urlparameter}">changelog</a></li>
+            <li><a href="{url}graph/{node|short}{sessionvars%urlparameter}">graph</a></li>
+            <li><a href="{url}tags{sessionvars%urlparameter}">tags</a></li>
+            <li class="current">bookmarks</li>
+            <li><a href="{url}branches{sessionvars%urlparameter}">branches</a></li>
+            <li><a href="{url}file/{node|short}{sessionvars%urlparameter}">files</a></li>
+	    <li><a href="{url}help{sessionvars%urlparameter}">help</a></li>
+        </ul>
+    </div>
+
+    <h2 class="no-link no-border">bookmarks</h2>
+    <table cellspacing="0">
+{entries%bookmarkentry}
+    </table>
+
+{footer}
--- a/mercurial/templates/monoblue/branches.tmpl	Sun Apr 03 22:53:19 2011 +0900
+++ b/mercurial/templates/monoblue/branches.tmpl	Sun Apr 03 22:53:20 2011 +0900
@@ -23,6 +23,7 @@
             <li><a href="{url}changelog{sessionvars%urlparameter}">changelog</a></li>
             <li><a href="{url}graph/{node|short}{sessionvars%urlparameter}">graph</a></li>
             <li><a href="{url}tags{sessionvars%urlparameter}">tags</a></li>
+            <li><a href="{url}bookmarks{sessionvars%urlparameter}">bookmarks</a></li>
             <li class="current">branches</li>
             <li><a href="{url}file/{node|short}{sessionvars%urlparameter}">files</a></li>
 	    <li><a href="{url}help{sessionvars%urlparameter}">help</a></li>
--- a/mercurial/templates/monoblue/changelog.tmpl	Sun Apr 03 22:53:19 2011 +0900
+++ b/mercurial/templates/monoblue/changelog.tmpl	Sun Apr 03 22:53:20 2011 +0900
@@ -23,6 +23,7 @@
             <li class="current">changelog</li>
             <li><a href="{url}graph/{node|short}{sessionvars%urlparameter}">graph</a></li>
             <li><a href="{url}tags{sessionvars%urlparameter}">tags</a></li>
+            <li><a href="{url}bookmarks{sessionvars%urlparameter}">bookmarks</a></li>
             <li><a href="{url}branches{sessionvars%urlparameter}">branches</a></li>
             <li><a href="{url}file/{node|short}{sessionvars%urlparameter}">files</a>{archives%archiveentry}</li>
 	    <li><a href="{url}help{sessionvars%urlparameter}">help</a></li>
--- a/mercurial/templates/monoblue/changeset.tmpl	Sun Apr 03 22:53:19 2011 +0900
+++ b/mercurial/templates/monoblue/changeset.tmpl	Sun Apr 03 22:53:20 2011 +0900
@@ -23,6 +23,7 @@
             <li><a href="{url}changelog{sessionvars%urlparameter}">changelog</a></li>
             <li><a href="{url}graph/{node|short}{sessionvars%urlparameter}">graph</a></li>
             <li><a href="{url}tags{sessionvars%urlparameter}">tags</a></li>
+            <li><a href="{url}bookmarks{sessionvars%urlparameter}">bookmarks</a></li>
             <li><a href="{url}branches{sessionvars%urlparameter}">branches</a></li>
             <li><a href="{url}file/{node|short}{sessionvars%urlparameter}">files</a></li>
             <li><a href="{url}help{sessionvars%urlparameter}">help</a></li>
--- a/mercurial/templates/monoblue/error.tmpl	Sun Apr 03 22:53:19 2011 +0900
+++ b/mercurial/templates/monoblue/error.tmpl	Sun Apr 03 22:53:20 2011 +0900
@@ -23,6 +23,7 @@
             <li><a href="{url}log{sessionvars%urlparameter}">changelog</a></li>
             <li><a href="{url}graph/{node|short}{sessionvars%urlparameter}">graph</a></li>
             <li><a href="{url}tags{sessionvars%urlparameter}">tags</a></li>
+            <li><a href="{url}bookmarks{sessionvars%urlparameter}">bookmarks</a></li>
             <li><a href="{url}branches{sessionvars%urlparameter}">branches</a></li>
             <li><a href="{url}file/{node|short}{sessionvars%urlparameter}">files</a></li>
             <li><a href="{url}help{sessionvars%urlparameter}">help</a></li>
--- a/mercurial/templates/monoblue/fileannotate.tmpl	Sun Apr 03 22:53:19 2011 +0900
+++ b/mercurial/templates/monoblue/fileannotate.tmpl	Sun Apr 03 22:53:20 2011 +0900
@@ -23,6 +23,7 @@
             <li><a href="{url}log{sessionvars%urlparameter}">changelog</a></li>
             <li><a href="{url}graph/{node|short}{sessionvars%urlparameter}">graph</a></li>
             <li><a href="{url}tags{sessionvars%urlparameter}">tags</a></li>
+            <li><a href="{url}bookmarks{sessionvars%urlparameter}">bookmarks</a></li>
             <li><a href="{url}branches{sessionvars%urlparameter}">branches</a></li>
             <li><a href="{url}file/{node|short}{path|urlescape}{sessionvars%urlparameter}">files</a></li>
             <li><a href="{url}help{sessionvars%urlparameter}">help</a></li>
--- a/mercurial/templates/monoblue/filediff.tmpl	Sun Apr 03 22:53:19 2011 +0900
+++ b/mercurial/templates/monoblue/filediff.tmpl	Sun Apr 03 22:53:20 2011 +0900
@@ -23,6 +23,7 @@
             <li><a href="{url}log{sessionvars%urlparameter}">changelog</a></li>
             <li><a href="{url}graph/{node|short}{sessionvars%urlparameter}">graph</a></li>
             <li><a href="{url}tags{sessionvars%urlparameter}">tags</a></li>
+            <li><a href="{url}bookmarks{sessionvars%urlparameter}">bookmarks</a></li>
             <li><a href="{url}branches{sessionvars%urlparameter}">branches</a></li>
             <li><a href="{url}file/{node|short}{path|urlescape}{sessionvars%urlparameter}">files</a></li>
             <li><a href="{url}help{sessionvars%urlparameter}">help</a></li>
--- a/mercurial/templates/monoblue/filelog.tmpl	Sun Apr 03 22:53:19 2011 +0900
+++ b/mercurial/templates/monoblue/filelog.tmpl	Sun Apr 03 22:53:20 2011 +0900
@@ -23,6 +23,7 @@
             <li><a href="{url}log{sessionvars%urlparameter}">changelog</a></li>
             <li><a href="{url}graph/{node|short}{sessionvars%urlparameter}">graph</a></li>
             <li><a href="{url}tags{sessionvars%urlparameter}">tags</a></li>
+            <li><a href="{url}bookmarks{sessionvars%urlparameter}">bookmarks</a></li>
             <li><a href="{url}branches{sessionvars%urlparameter}">branches</a></li>
             <li><a href="{url}file/{node|short}{path|urlescape}{sessionvars%urlparameter}">files</a></li>
             <li><a href="{url}help{sessionvars%urlparameter}">help</a></li>
--- a/mercurial/templates/monoblue/filerevision.tmpl	Sun Apr 03 22:53:19 2011 +0900
+++ b/mercurial/templates/monoblue/filerevision.tmpl	Sun Apr 03 22:53:20 2011 +0900
@@ -23,6 +23,7 @@
             <li><a href="{url}changelog{sessionvars%urlparameter}">changelog</a></li>
             <li><a href="{url}graph/{node|short}{sessionvars%urlparameter}">graph</a></li>
             <li><a href="{url}tags{sessionvars%urlparameter}">tags</a></li>
+            <li><a href="{url}bookmarks{sessionvars%urlparameter}">bookmarks</a></li>
             <li><a href="{url}branches{sessionvars%urlparameter}">branches</a></li>
             <li><a href="{url}file/{node|short}{path|urlescape}{sessionvars%urlparameter}">files</a></li>
             <li><a href="{url}help{sessionvars%urlparameter}">help</a></li>
--- a/mercurial/templates/monoblue/graph.tmpl	Sun Apr 03 22:53:19 2011 +0900
+++ b/mercurial/templates/monoblue/graph.tmpl	Sun Apr 03 22:53:20 2011 +0900
@@ -24,6 +24,7 @@
             <li><a href="{url}changelog{sessionvars%urlparameter}">changelog</a></li>
             <li class="current">graph</li>
             <li><a href="{url}tags{sessionvars%urlparameter}">tags</a></li>
+            <li><a href="{url}bookmarks{sessionvars%urlparameter}">bookmarks</a></li>
             <li><a href="{url}branches{sessionvars%urlparameter}">branches</a></li>
             <li><a href="{url}file/{node|short}{sessionvars%urlparameter}">files</a></li>
 	    <li><a href="{url}help{sessionvars%urlparameter}">help</a></li>
--- a/mercurial/templates/monoblue/help.tmpl	Sun Apr 03 22:53:19 2011 +0900
+++ b/mercurial/templates/monoblue/help.tmpl	Sun Apr 03 22:53:20 2011 +0900
@@ -23,6 +23,7 @@
             <li><a href="{url}changelog{sessionvars%urlparameter}">changelog</a></li>
             <li><a href="{url}graph/{node|short}{sessionvars%urlparameter}">graph</a></li>
             <li><a href="{url}tags{sessionvars%urlparameter}">tags</a></li>
+            <li><a href="{url}bookmarks{sessionvars%urlparameter}">bookmarks</a></li>
             <li><a href="{url}branches{sessionvars%urlparameter}">branches</a></li>
             <li><a href="{url}file/{node|short}{sessionvars%urlparameter}">files</a></li>
 	    <li class="current">help</li>
--- a/mercurial/templates/monoblue/helptopics.tmpl	Sun Apr 03 22:53:19 2011 +0900
+++ b/mercurial/templates/monoblue/helptopics.tmpl	Sun Apr 03 22:53:20 2011 +0900
@@ -23,6 +23,7 @@
             <li><a href="{url}changelog{sessionvars%urlparameter}">changelog</a></li>
             <li><a href="{url}graph/{node|short}{sessionvars%urlparameter}">graph</a></li>
             <li><a href="{url}tags{sessionvars%urlparameter}">tags</a></li>
+            <li><a href="{url}bookmarks{sessionvars%urlparameter}">bookmarks</a></li>
             <li><a href="{url}help{sessionvars%urlparameter}">branches</a></li>
             <li><a href="{url}file/{node|short}{sessionvars%urlparameter}">files</a></li>
 	    <li class="current">help</li>
--- a/mercurial/templates/monoblue/manifest.tmpl	Sun Apr 03 22:53:19 2011 +0900
+++ b/mercurial/templates/monoblue/manifest.tmpl	Sun Apr 03 22:53:20 2011 +0900
@@ -23,6 +23,7 @@
             <li><a href="{url}changelog{sessionvars%urlparameter}">changelog</a></li>
             <li><a href="{url}graph/{node|short}{sessionvars%urlparameter}">graph</a></li>
             <li><a href="{url}tags{sessionvars%urlparameter}">tags</a></li>
+            <li><a href="{url}bookmarks{sessionvars%urlparameter}">bookmarks</a></li>
             <li><a href="{url}branches{sessionvars%urlparameter}">branches</a></li>
             <li class="current">files</li>
 	    <li><a href="{url}help{sessionvars%urlparameter}">help</a></li>
--- a/mercurial/templates/monoblue/map	Sun Apr 03 22:53:19 2011 +0900
+++ b/mercurial/templates/monoblue/map	Sun Apr 03 22:53:20 2011 +0900
@@ -147,6 +147,17 @@
       <a href="{url}file/{node|short}{sessionvars%urlparameter}">files</a>
     </td>
   </tr>'
+bookmarks = bookmarks.tmpl
+bookmarkentry = '
+  <tr class="parity{parity}">
+    <td class="nowrap">{date|age}</td>
+    <td><a href="{url}rev/{node|short}{sessionvars%urlparameter}">{bookmark|escape}</a></td>
+    <td class="nowrap">
+      <a href="{url}rev/{node|short}{sessionvars%urlparameter}">changeset</a> |
+      <a href="{url}log/{node|short}{sessionvars%urlparameter}">changelog</a> |
+      <a href="{url}file/{node|short}{sessionvars%urlparameter}">files</a>
+    </td>
+  </tr>'
 branches = branches.tmpl
 branchentry = '
   <tr class="parity{parity}">
--- a/mercurial/templates/monoblue/notfound.tmpl	Sun Apr 03 22:53:19 2011 +0900
+++ b/mercurial/templates/monoblue/notfound.tmpl	Sun Apr 03 22:53:20 2011 +0900
@@ -23,6 +23,7 @@
             <li><a href="{url}log{sessionvars%urlparameter}">changelog</a></li>
             <li><a href="{url}graph/{node|short}{sessionvars%urlparameter}">graph</a></li>
             <li><a href="{url}tags{sessionvars%urlparameter}">tags</a></li>
+            <li><a href="{url}bookmarks{sessionvars%urlparameter}">bookmarks</a></li>
             <li><a href="{url}branches{sessionvars%urlparameter}">branches</a></li>
             <li><a href="{url}file/{node|short}{sessionvars%urlparameter}">files</a>{archives%archiveentry}</li>
             <li><a href="{url}help{sessionvars%urlparameter}">help</a></li>
--- a/mercurial/templates/monoblue/search.tmpl	Sun Apr 03 22:53:19 2011 +0900
+++ b/mercurial/templates/monoblue/search.tmpl	Sun Apr 03 22:53:20 2011 +0900
@@ -23,6 +23,7 @@
             <li><a href="{url}log{sessionvars%urlparameter}">changelog</a></li>
             <li><a href="{url}graph/{node|short}{sessionvars%urlparameter}">graph</a></li>
             <li><a href="{url}tags{sessionvars%urlparameter}">tags</a></li>
+            <li><a href="{url}bookmarks{sessionvars%urlparameter}">bookmarks</a></li>
             <li><a href="{url}branches{sessionvars%urlparameter}">branches</a></li>
             <li><a href="{url}file/{node|short}{sessionvars%urlparameter}">files</a>{archives%archiveentry}
             <li><a href="{url}help{sessionvars%urlparameter}">help</a></li>
--- a/mercurial/templates/monoblue/shortlog.tmpl	Sun Apr 03 22:53:19 2011 +0900
+++ b/mercurial/templates/monoblue/shortlog.tmpl	Sun Apr 03 22:53:20 2011 +0900
@@ -23,6 +23,7 @@
             <li><a href="{url}log{sessionvars%urlparameter}">changelog</a></li>
             <li><a href="{url}graph/{node|short}{sessionvars%urlparameter}">graph</a></li>
             <li><a href="{url}tags{sessionvars%urlparameter}">tags</a></li>
+            <li><a href="{url}bookmarks{sessionvars%urlparameter}">bookmarks</a></li>
             <li><a href="{url}branches{sessionvars%urlparameter}">branches</a></li>
             <li><a href="{url}file/{node|short}{sessionvars%urlparameter}">files</a></li>
 	    {archives%archiveentry}
--- a/mercurial/templates/monoblue/summary.tmpl	Sun Apr 03 22:53:19 2011 +0900
+++ b/mercurial/templates/monoblue/summary.tmpl	Sun Apr 03 22:53:20 2011 +0900
@@ -23,6 +23,7 @@
             <li><a href="{url}log{sessionvars%urlparameter}">changelog</a></li>
             <li><a href="{url}graph/{node|short}{sessionvars%urlparameter}">graph</a></li>
             <li><a href="{url}tags{sessionvars%urlparameter}">tags</a></li>
+            <li><a href="{url}bookmarks{sessionvars%urlparameter}">bookmarks</a></li>
             <li><a href="{url}branches{sessionvars%urlparameter}">branches</a></li>
             <li><a href="{url}file/{node|short}{sessionvars%urlparameter}">files</a></li>
 	    <li><a href="{url}help{sessionvars%urlparameter}">help</a></li>
--- a/mercurial/templates/monoblue/tags.tmpl	Sun Apr 03 22:53:19 2011 +0900
+++ b/mercurial/templates/monoblue/tags.tmpl	Sun Apr 03 22:53:20 2011 +0900
@@ -23,6 +23,7 @@
             <li><a href="{url}changelog{sessionvars%urlparameter}">changelog</a></li>
             <li><a href="{url}graph/{node|short}{sessionvars%urlparameter}">graph</a></li>
             <li class="current">tags</li>
+            <li><a href="{url}bookmarks{sessionvars%urlparameter}">bookmarks</a></li>
             <li><a href="{url}branches{sessionvars%urlparameter}">branches</a></li>
             <li><a href="{url}file/{node|short}{sessionvars%urlparameter}">files</a></li>
 	    <li><a href="{url}help{sessionvars%urlparameter}">help</a></li>