changeset 8353:6058d291abdf

paper/coal: add branches page
author Sune Foldager <cryo@cyanite.org>
date Tue, 12 May 2009 12:00:54 +0200
parents eefcb59d44d6
children 418ea63f00fb
files templates/coal/map templates/paper/branches.tmpl templates/paper/changeset.tmpl templates/paper/error.tmpl templates/paper/fileannotate.tmpl templates/paper/filediff.tmpl templates/paper/filelog.tmpl templates/paper/filerevision.tmpl templates/paper/graph.tmpl templates/paper/manifest.tmpl templates/paper/map templates/paper/search.tmpl templates/paper/shortlog.tmpl templates/paper/tags.tmpl tests/test-hgweb-descend-empties.out tests/test-hgweb-diffs.out tests/test-hgweb-empty.out tests/test-hgweb-filelog.out tests/test-hgweb-removed.out tests/test-hgweb.out tests/test-highlight.out
diffstat 21 files changed, 81 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/templates/coal/map	Tue May 12 09:43:36 2009 +0200
+++ b/templates/coal/map	Tue May 12 12:00:54 2009 +0200
@@ -56,6 +56,8 @@
 fileannotatechild = '<tr><td class="metatag">child:</td><td><a href="{url}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></td></tr>'
 tags = ../paper/tags.tmpl
 tagentry = '<tr class="tagEntry parity{parity}"><td><a href="{url}rev/{node|short}{sessionvars%urlparameter}">{tag|escape}</a></td><td class="node">{node|short}</td></tr>'
+branches = ../paper/branches.tmpl
+branchentry = '<tr class="tagEntry parity{parity}"><td><a href="{url}shortlog/{node|short}{sessionvars%urlparameter}">{branch|escape}</a></td><td class="node">{node|short}</td></tr>'
 changelogtag = '<span class="tag">{name|escape}</span> '
 changesettag = '<span class="tag">{tag|escape}</span> '
 changelogbranchhead = '<span class="branchhead">{name|escape}</span> '
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/templates/paper/branches.tmpl	Tue May 12 12:00:54 2009 +0200
@@ -0,0 +1,45 @@
+{header}
+<title>{repo|escape}: branches</title>
+<link rel="alternate" type="application/atom+xml"
+   href="{url}atom-tags" title="Atom feed for {repo|escape}: branches" />
+<link rel="alternate" type="application/rss+xml"
+   href="{url}rss-tags" title="RSS feed for {repo|escape}: branches" />
+</head>
+<body>
+
+<div class="container">
+<div class="menu">
+<div class="logo">
+<a href="http://www.selenic.com/mercurial/">
+<img src="{staticurl}hglogo.png" alt="mercurial" /></a>
+</div>
+<ul>
+<li><a href="{url}shortlog{sessionvars%urlparameter}">log</a></li>
+<li><a href="{url}graph{sessionvars%urlparameter}">graph</a></li>
+<li><a href="{url}tags{sessionvars%urlparameter}">tags</a></li>
+<li class="active">branches</li>
+</ul>
+</div>
+
+<div class="main">
+<h2><a href="{url}{sessionvars%urlparameter}">{repo|escape}</a></h2>
+<h3>branches</h3>
+
+<form class="search" action="{url}log">
+{sessionvars%hiddenformentry}
+<p><input name="rev" id="search1" type="text" size="30" /></p>
+<div id="hint">find changesets by author, revision,
+files, or words in the commit message</div>
+</form>
+
+<table class="bigtable">
+<tr>
+ <th>branch</th>
+ <th>node</th>
+</tr>
+{entries%branchentry}
+</table>
+</div>
+</div>
+
+{footer}
--- a/templates/paper/changeset.tmpl	Tue May 12 09:43:36 2009 +0200
+++ b/templates/paper/changeset.tmpl	Tue May 12 12:00:54 2009 +0200
@@ -12,6 +12,7 @@
  <li><a href="{url}shortlog/{node|short}{sessionvars%urlparameter}">log</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}branches{sessionvars%urlparameter}">branches</a></li>
 </ul>
 <ul>
  <li class="active">changeset</li>
--- a/templates/paper/error.tmpl	Tue May 12 09:43:36 2009 +0200
+++ b/templates/paper/error.tmpl	Tue May 12 12:00:54 2009 +0200
@@ -13,6 +13,7 @@
 <li><a href="{url}shortlog{sessionvars%urlparameter}">log</a></li>
 <li><a href="{url}graph{sessionvars%urlparameter}">graph</a></li>
 <li><a href="{url}tags{sessionvars%urlparameter}">tags</a></li>
+<li><a href="{url}branches{sessionvars%urlparameter}">branches</a></li>
 </ul>
 </div>
 
--- a/templates/paper/fileannotate.tmpl	Tue May 12 09:43:36 2009 +0200
+++ b/templates/paper/fileannotate.tmpl	Tue May 12 12:00:54 2009 +0200
@@ -13,6 +13,7 @@
 <li><a href="{url}shortlog/{node|short}{sessionvars%urlparameter}">log</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}branches{sessionvars%urlparameter}">branches</a></li>
 </ul>
 
 <ul>
--- a/templates/paper/filediff.tmpl	Tue May 12 09:43:36 2009 +0200
+++ b/templates/paper/filediff.tmpl	Tue May 12 12:00:54 2009 +0200
@@ -13,6 +13,7 @@
 <li><a href="{url}shortlog/{node|short}{sessionvars%urlparameter}">log</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}branches{sessionvars%urlparameter}">branches</a></li>
 </ul>
 <ul>
 <li><a href="{url}rev/{node|short}{sessionvars%urlparameter}">changeset</a></li>
--- a/templates/paper/filelog.tmpl	Tue May 12 09:43:36 2009 +0200
+++ b/templates/paper/filelog.tmpl	Tue May 12 12:00:54 2009 +0200
@@ -17,6 +17,7 @@
 <li><a href="{url}shortlog/{node|short}{sessionvars%urlparameter}">log</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}branches{sessionvars%urlparameter}">branches</a></li>
 </ul>
 <ul>
 <li><a href="{url}rev/{node|short}{sessionvars%urlparameter}">changeset</a></li>
--- a/templates/paper/filerevision.tmpl	Tue May 12 09:43:36 2009 +0200
+++ b/templates/paper/filerevision.tmpl	Tue May 12 12:00:54 2009 +0200
@@ -13,6 +13,7 @@
 <li><a href="{url}shortlog/{node|short}{sessionvars%urlparameter}">log</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}branches{sessionvars%urlparameter}">branches</a></li>
 </ul>
 <ul>
 <li><a href="{url}rev/{node|short}{sessionvars%urlparameter}">changeset</a></li>
--- a/templates/paper/graph.tmpl	Tue May 12 09:43:36 2009 +0200
+++ b/templates/paper/graph.tmpl	Tue May 12 12:00:54 2009 +0200
@@ -18,6 +18,7 @@
 <li><a href="{url}shortlog/{node|short}{sessionvars%urlparameter}">log</a></li>
 <li class="active">graph</li>
 <li><a href="{url}tags{sessionvars%urlparameter}">tags</a></li>
+<li><a href="{url}branches{sessionvars%urlparameter}">branches</a></li>
 </ul>
 <ul>
 <li><a href="{url}rev/{node|short}{sessionvars%urlparameter}">changeset</a></li>
--- a/templates/paper/manifest.tmpl	Tue May 12 09:43:36 2009 +0200
+++ b/templates/paper/manifest.tmpl	Tue May 12 12:00:54 2009 +0200
@@ -13,6 +13,7 @@
 <li><a href="{url}shortlog/{node|short}{sessionvars%urlparameter}">log</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}branches{sessionvars%urlparameter}">branches</a></li>
 </ul>
 <ul>
 <li><a href="{url}rev/{node|short}{sessionvars%urlparameter}">changeset</a></li>
--- a/templates/paper/map	Tue May 12 09:43:36 2009 +0200
+++ b/templates/paper/map	Tue May 12 12:00:54 2009 +0200
@@ -56,6 +56,8 @@
 fileannotatechild = '<tr><td class="metatag">child:</td><td><a href="{url}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></td></tr>'
 tags = tags.tmpl
 tagentry = '<tr class="tagEntry parity{parity}"><td><a href="{url}rev/{node|short}{sessionvars%urlparameter}">{tag|escape}</a></td><td class="node">{node|short}</td></tr>'
+branches = branches.tmpl
+branchentry = '<tr class="tagEntry parity{parity}"><td><a href="{url}shortlog/{node|short}{sessionvars%urlparameter}">{branch|escape}</a></td><td class="node">{node|short}</td></tr>'
 changelogtag = '<span class="tag">{name|escape}</span> '
 changesettag = '<span class="tag">{tag|escape}</span> '
 changelogbranchhead = '<span class="branchhead">{name|escape}</span> '
--- a/templates/paper/search.tmpl	Tue May 12 09:43:36 2009 +0200
+++ b/templates/paper/search.tmpl	Tue May 12 12:00:54 2009 +0200
@@ -13,6 +13,7 @@
 <li><a href="{url}shortlog{sessionvars%urlparameter}">log</a></li>
 <li><a href="{url}graph{sessionvars%urlparameter}">graph</a></li>
 <li><a href="{url}tags{sessionvars%urlparameter}">tags</a></li>
+<li><a href="{url}branches{sessionvars%urlparameter}">branches</a></li>
 </ul>
 </div>
 
--- a/templates/paper/shortlog.tmpl	Tue May 12 09:43:36 2009 +0200
+++ b/templates/paper/shortlog.tmpl	Tue May 12 12:00:54 2009 +0200
@@ -17,6 +17,7 @@
 <li class="active">log</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}branches{sessionvars%urlparameter}">branches</a></li>
 </ul>
 <ul>
 <li><a href="{url}rev/{node|short}{sessionvars%urlparameter}">changeset</a></li>
--- a/templates/paper/tags.tmpl	Tue May 12 09:43:36 2009 +0200
+++ b/templates/paper/tags.tmpl	Tue May 12 12:00:54 2009 +0200
@@ -17,6 +17,7 @@
 <li><a href="{url}shortlog{sessionvars%urlparameter}">log</a></li>
 <li><a href="{url}graph{sessionvars%urlparameter}">graph</a></li>
 <li class="active">tags</li>
+<li><a href="{url}branches{sessionvars%urlparameter}">branches</a></li>
 </ul>
 </div>
 
--- a/tests/test-hgweb-descend-empties.out	Tue May 12 09:43:36 2009 +0200
+++ b/tests/test-hgweb-descend-empties.out	Tue May 12 12:00:54 2009 +0200
@@ -28,6 +28,7 @@
 <li><a href="/shortlog/9087c84a0f5d">log</a></li>
 <li><a href="/graph/9087c84a0f5d">graph</a></li>
 <li><a href="/tags">tags</a></li>
+<li><a href="/branches">branches</a></li>
 </ul>
 <ul>
 <li><a href="/rev/9087c84a0f5d">changeset</a></li>
--- a/tests/test-hgweb-diffs.out	Tue May 12 09:43:36 2009 +0200
+++ b/tests/test-hgweb-diffs.out	Tue May 12 12:00:54 2009 +0200
@@ -26,6 +26,7 @@
  <li><a href="/shortlog/0cd96de13884">log</a></li>
  <li><a href="/graph/0cd96de13884">graph</a></li>
  <li><a href="/tags">tags</a></li>
+ <li><a href="/branches">branches</a></li>
 </ul>
 <ul>
  <li class="active">changeset</li>
@@ -118,6 +119,7 @@
 <li><a href="/shortlog/78e4ebad7cdf">log</a></li>
 <li><a href="/graph/78e4ebad7cdf">graph</a></li>
 <li><a href="/tags">tags</a></li>
+<li><a href="/branches">branches</a></li>
 </ul>
 <ul>
 <li><a href="/rev/78e4ebad7cdf">changeset</a></li>
@@ -206,6 +208,7 @@
  <li><a href="/shortlog/0cd96de13884">log</a></li>
  <li><a href="/graph/0cd96de13884">graph</a></li>
  <li><a href="/tags">tags</a></li>
+ <li><a href="/branches">branches</a></li>
 </ul>
 <ul>
  <li class="active">changeset</li>
@@ -300,6 +303,7 @@
 <li><a href="/shortlog/78e4ebad7cdf">log</a></li>
 <li><a href="/graph/78e4ebad7cdf">graph</a></li>
 <li><a href="/tags">tags</a></li>
+<li><a href="/branches">branches</a></li>
 </ul>
 <ul>
 <li><a href="/rev/78e4ebad7cdf">changeset</a></li>
--- a/tests/test-hgweb-empty.out	Tue May 12 09:43:36 2009 +0200
+++ b/tests/test-hgweb-empty.out	Tue May 12 12:00:54 2009 +0200
@@ -25,6 +25,7 @@
 <li class="active">log</li>
 <li><a href="/graph/000000000000">graph</a></li>
 <li><a href="/tags">tags</a></li>
+<li><a href="/branches">branches</a></li>
 </ul>
 <ul>
 <li><a href="/rev/000000000000">changeset</a></li>
@@ -93,6 +94,7 @@
 <li class="active">log</li>
 <li><a href="/graph/000000000000">graph</a></li>
 <li><a href="/tags">tags</a></li>
+<li><a href="/branches">branches</a></li>
 </ul>
 <ul>
 <li><a href="/rev/000000000000">changeset</a></li>
@@ -162,6 +164,7 @@
 <li><a href="/shortlog/000000000000">log</a></li>
 <li class="active">graph</li>
 <li><a href="/tags">tags</a></li>
+<li><a href="/branches">branches</a></li>
 </ul>
 <ul>
 <li><a href="/rev/000000000000">changeset</a></li>
@@ -300,6 +303,7 @@
 <li><a href="/shortlog/000000000000">log</a></li>
 <li><a href="/graph/000000000000">graph</a></li>
 <li><a href="/tags">tags</a></li>
+<li><a href="/branches">branches</a></li>
 </ul>
 <ul>
 <li><a href="/rev/000000000000">changeset</a></li>
--- a/tests/test-hgweb-filelog.out	Tue May 12 09:43:36 2009 +0200
+++ b/tests/test-hgweb-filelog.out	Tue May 12 12:00:54 2009 +0200
@@ -113,6 +113,7 @@
 <li><a href="/shortlog/01de2d66a28d">log</a></li>
 <li><a href="/graph/01de2d66a28d">graph</a></li>
 <li><a href="/tags">tags</a></li>
+<li><a href="/branches">branches</a></li>
 </ul>
 <ul>
 <li><a href="/rev/01de2d66a28d">changeset</a></li>
@@ -195,6 +196,7 @@
 <li><a href="/shortlog/01de2d66a28d">log</a></li>
 <li><a href="/graph/01de2d66a28d">graph</a></li>
 <li><a href="/tags">tags</a></li>
+<li><a href="/branches">branches</a></li>
 </ul>
 <ul>
 <li><a href="/rev/01de2d66a28d">changeset</a></li>
@@ -277,6 +279,7 @@
 <li><a href="/shortlog/5ed941583260">log</a></li>
 <li><a href="/graph/5ed941583260">graph</a></li>
 <li><a href="/tags">tags</a></li>
+<li><a href="/branches">branches</a></li>
 </ul>
 <ul>
 <li><a href="/rev/5ed941583260">changeset</a></li>
@@ -354,6 +357,7 @@
 <li><a href="/shortlog/5ed941583260">log</a></li>
 <li><a href="/graph/5ed941583260">graph</a></li>
 <li><a href="/tags">tags</a></li>
+<li><a href="/branches">branches</a></li>
 </ul>
 <ul>
 <li><a href="/rev/5ed941583260">changeset</a></li>
@@ -427,6 +431,7 @@
 <li><a href="/shortlog">log</a></li>
 <li><a href="/graph">graph</a></li>
 <li><a href="/tags">tags</a></li>
+<li><a href="/branches">branches</a></li>
 </ul>
 </div>
 
--- a/tests/test-hgweb-removed.out	Tue May 12 09:43:36 2009 +0200
+++ b/tests/test-hgweb-removed.out	Tue May 12 12:00:54 2009 +0200
@@ -24,6 +24,7 @@
  <li><a href="/shortlog/c78f6c5cbea9">log</a></li>
  <li><a href="/graph/c78f6c5cbea9">graph</a></li>
  <li><a href="/tags">tags</a></li>
+ <li><a href="/branches">branches</a></li>
 </ul>
 <ul>
  <li class="active">changeset</li>
@@ -112,6 +113,7 @@
 <li><a href="/shortlog/c78f6c5cbea9">log</a></li>
 <li><a href="/graph/c78f6c5cbea9">graph</a></li>
 <li><a href="/tags">tags</a></li>
+<li><a href="/branches">branches</a></li>
 </ul>
 <ul>
 <li><a href="/rev/c78f6c5cbea9">changeset</a></li>
--- a/tests/test-hgweb.out	Tue May 12 09:43:36 2009 +0200
+++ b/tests/test-hgweb.out	Tue May 12 12:00:54 2009 +0200
@@ -42,6 +42,7 @@
 <li><a href="/shortlog">log</a></li>
 <li><a href="/graph">graph</a></li>
 <li><a href="/tags">tags</a></li>
+<li><a href="/branches">branches</a></li>
 </ul>
 </div>
 
@@ -111,6 +112,7 @@
 <li><a href="/shortlog">log</a></li>
 <li><a href="/graph">graph</a></li>
 <li><a href="/tags">tags</a></li>
+<li><a href="/branches">branches</a></li>
 </ul>
 </div>
 
--- a/tests/test-highlight.out	Tue May 12 09:43:36 2009 +0200
+++ b/tests/test-highlight.out	Tue May 12 12:00:54 2009 +0200
@@ -26,6 +26,7 @@
 <li><a href="/shortlog/7c3facd7c58a">log</a></li>
 <li><a href="/graph/7c3facd7c58a">graph</a></li>
 <li><a href="/tags">tags</a></li>
+<li><a href="/branches">branches</a></li>
 </ul>
 <ul>
 <li><a href="/rev/7c3facd7c58a">changeset</a></li>
@@ -111,6 +112,7 @@
 <li><a href="/shortlog/7c3facd7c58a">log</a></li>
 <li><a href="/graph/7c3facd7c58a">graph</a></li>
 <li><a href="/tags">tags</a></li>
+<li><a href="/branches">branches</a></li>
 </ul>
 <ul>
 <li><a href="/rev/7c3facd7c58a">changeset</a></li>
@@ -196,6 +198,7 @@
 <li><a href="/shortlog/7c3facd7c58a">log</a></li>
 <li><a href="/graph/7c3facd7c58a">graph</a></li>
 <li><a href="/tags">tags</a></li>
+<li><a href="/branches">branches</a></li>
 </ul>
 
 <ul>