gitweb: add branches page
authorSune Foldager <cryo@cyanite.org>
Mon, 11 May 2009 21:12:44 +0200
changeset 8356 439663cd043a
parent 8355 5ba798f339c8
child 8357 d974a32b59dc
gitweb: add branches page
templates/gitweb/branches.tmpl
templates/gitweb/changelog.tmpl
templates/gitweb/changeset.tmpl
templates/gitweb/fileannotate.tmpl
templates/gitweb/filediff.tmpl
templates/gitweb/filelog.tmpl
templates/gitweb/filerevision.tmpl
templates/gitweb/graph.tmpl
templates/gitweb/manifest.tmpl
templates/gitweb/map
templates/gitweb/search.tmpl
templates/gitweb/shortlog.tmpl
templates/gitweb/summary.tmpl
templates/gitweb/tags.tmpl
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/templates/gitweb/branches.tmpl	Mon May 11 21:12:44 2009 +0200
@@ -0,0 +1,30 @@
+#header#
+<title>#repo|escape#: Branches</title>
+<link rel="alternate" type="application/atom+xml"
+   href="{url}atom-tags" title="Atom feed for #repo|escape#"/>
+<link rel="alternate" type="application/rss+xml"
+   href="{url}rss-tags" title="RSS feed for #repo|escape#"/>
+</head>
+<body>
+
+<div class="page_header">
+<a href="http://www.selenic.com/mercurial/" title="Mercurial" style="float: right;">Mercurial</a><a href="{url}summary{sessionvars%urlparameter}">#repo|escape#</a> / branches
+</div>
+
+<div class="page_nav">
+<a href="{url}summary{sessionvars%urlparameter}">summary</a> |
+<a href="{url}shortlog{sessionvars%urlparameter}">shortlog</a> |
+<a href="{url}log{sessionvars%urlparameter}">changelog</a> |
+<a href="{url}graph{sessionvars%urlparameter}">graph</a> |
+<a href="{url}tags{sessionvars%urlparameter}">tags</a> |
+branches |
+<a href="{url}file/#node|short#{sessionvars%urlparameter}">files</a>
+<br/>
+</div>
+
+<div class="title">&nbsp;</div>
+<table cellspacing="0">
+#entries%branchentry#
+</table>
+
+#footer#
--- a/templates/gitweb/changelog.tmpl	Mon May 11 21:14:43 2009 +0200
+++ b/templates/gitweb/changelog.tmpl	Mon May 11 21:12:44 2009 +0200
@@ -24,6 +24,7 @@
 changelog |
 <a href="{url}graph{sessionvars%urlparameter}">graph</a> |
 <a href="{url}tags{sessionvars%urlparameter}">tags</a> |
+<a href="{url}branches{sessionvars%urlparameter}">branches</a> |
 <a href="{url}file/#node|short#{sessionvars%urlparameter}">files</a>#archives%archiveentry#
 <br/>
 #changenav%naventry#<br/>
--- a/templates/gitweb/changeset.tmpl	Mon May 11 21:14:43 2009 +0200
+++ b/templates/gitweb/changeset.tmpl	Mon May 11 21:12:44 2009 +0200
@@ -12,7 +12,15 @@
 </div>
 
 <div class="page_nav">
-<a href="{url}summary{sessionvars%urlparameter}">summary</a> | <a href="{url}shortlog/#rev#{sessionvars%urlparameter}">shortlog</a> | <a href="{url}log/#rev#{sessionvars%urlparameter}">changelog</a> | <a href="{url}graph{sessionvars%urlparameter}">graph</a> | <a href="{url}tags{sessionvars%urlparameter}">tags</a> | <a href="{url}file/#node|short#{sessionvars%urlparameter}">files</a> | changeset | <a href="{url}raw-rev/#node|short#">raw</a> #archives%archiveentry#<br/>
+<a href="{url}summary{sessionvars%urlparameter}">summary</a> |
+<a href="{url}shortlog/#rev#{sessionvars%urlparameter}">shortlog</a> |
+<a href="{url}log/#rev#{sessionvars%urlparameter}">changelog</a> |
+<a href="{url}graph{sessionvars%urlparameter}">graph</a> |
+<a href="{url}tags{sessionvars%urlparameter}">tags</a> |
+<a href="{url}branches{sessionvars%urlparameter}">branches</a> |
+<a href="{url}file/#node|short#{sessionvars%urlparameter}">files</a> |
+changeset |
+<a href="{url}raw-rev/#node|short#">raw</a> #archives%archiveentry#<br/>
 </div>
 
 <div>
--- a/templates/gitweb/fileannotate.tmpl	Mon May 11 21:14:43 2009 +0200
+++ b/templates/gitweb/fileannotate.tmpl	Mon May 11 21:12:44 2009 +0200
@@ -17,6 +17,7 @@
 <a href="{url}log{sessionvars%urlparameter}">changelog</a> |
 <a href="{url}graph{sessionvars%urlparameter}">graph</a> |
 <a href="{url}tags{sessionvars%urlparameter}">tags</a> |
+<a href="{url}branches{sessionvars%urlparameter}">branches</a> |
 <a href="{url}file/#node|short##path|urlescape#{sessionvars%urlparameter}">files</a> |
 <a href="{url}rev/#node|short#{sessionvars%urlparameter}">changeset</a> |
 <a href="{url}file/{node|short}/#file|urlescape#{sessionvars%urlparameter}">file</a> |
--- a/templates/gitweb/filediff.tmpl	Mon May 11 21:14:43 2009 +0200
+++ b/templates/gitweb/filediff.tmpl	Mon May 11 21:12:44 2009 +0200
@@ -17,6 +17,7 @@
 <a href="{url}log{sessionvars%urlparameter}">changelog</a> |
 <a href="{url}graph{sessionvars%urlparameter}">graph</a> |
 <a href="{url}tags{sessionvars%urlparameter}">tags</a> |
+<a href="{url}branches{sessionvars%urlparameter}">branches</a> |
 <a href="{url}file/{node|short}{path|urlescape}{sessionvars%urlparameter}">files</a> |
 <a href="{url}rev/{node|short}{sessionvars%urlparameter}">changeset</a> |
 <a href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">file</a> |
--- a/templates/gitweb/filelog.tmpl	Mon May 11 21:14:43 2009 +0200
+++ b/templates/gitweb/filelog.tmpl	Mon May 11 21:12:44 2009 +0200
@@ -17,6 +17,7 @@
 <a href="{url}log{sessionvars%urlparameter}">changelog</a> |
 <a href="{url}graph{sessionvars%urlparameter}">graph</a> |
 <a href="{url}tags{sessionvars%urlparameter}">tags</a> |
+<a href="{url}branches{sessionvars%urlparameter}">branches</a> |
 <a href="{url}file/{node|short}/#file|urlescape#{sessionvars%urlparameter}">file</a> |
 revisions |
 <a href="{url}annotate/{node|short}/#file|urlescape#{sessionvars%urlparameter}">annotate</a> |
--- a/templates/gitweb/filerevision.tmpl	Mon May 11 21:14:43 2009 +0200
+++ b/templates/gitweb/filerevision.tmpl	Mon May 11 21:12:44 2009 +0200
@@ -17,6 +17,7 @@
 <a href="{url}log{sessionvars%urlparameter}">changelog</a> |
 <a href="{url}graph{sessionvars%urlparameter}">graph</a> |
 <a href="{url}tags{sessionvars%urlparameter}">tags</a> |
+<a href="{url}branches{sessionvars%urlparameter}">branches</a> |
 <a href="{url}file/#node|short##path|urlescape#{sessionvars%urlparameter}">files</a> |
 <a href="{url}rev/#node|short#{sessionvars%urlparameter}">changeset</a> |
 file |
--- a/templates/gitweb/graph.tmpl	Mon May 11 21:14:43 2009 +0200
+++ b/templates/gitweb/graph.tmpl	Mon May 11 21:12:44 2009 +0200
@@ -24,6 +24,7 @@
 <a href="{url}log/#rev#{sessionvars%urlparameter}">changelog</a> |
 graph |
 <a href="{url}tags{sessionvars%urlparameter}">tags</a> |
+<a href="{url}branches{sessionvars%urlparameter}">branches</a> |
 <a href="{url}file/#node|short#{sessionvars%urlparameter}">files</a>
 <br/>
 <a href="{url}graph/{rev}{lessvars%urlparameter}">less</a>
--- a/templates/gitweb/manifest.tmpl	Mon May 11 21:14:43 2009 +0200
+++ b/templates/gitweb/manifest.tmpl	Mon May 11 21:12:44 2009 +0200
@@ -17,6 +17,7 @@
 <a href="{url}log{sessionvars%urlparameter}">changelog</a> |
 <a href="{url}graph{sessionvars%urlparameter}">graph</a> |
 <a href="{url}tags{sessionvars%urlparameter}">tags</a> |
+<a href="{url}branches{sessionvars%urlparameter}">branches</a> |
 files |
 <a href="{url}rev/#node|short#{sessionvars%urlparameter}">changeset</a> #archives%archiveentry#<br/>
 </div>
--- a/templates/gitweb/map	Mon May 11 21:14:43 2009 +0200
+++ b/templates/gitweb/map	Mon May 11 21:12:44 2009 +0200
@@ -45,7 +45,8 @@
 fileannotatechild = '<tr><td>child {rev}</td><td style="font-family:monospace"><a class="list" href="{url}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></td></tr>'
 tags = tags.tmpl
 tagentry = '<tr class="parity#parity#"><td class="age"><i>#date|age# ago</i></td><td><a class="list" href="{url}rev/{node|short}{sessionvars%urlparameter}"><b>#tag|escape#</b></a></td><td class="link"><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>'
-branchentry = '<tr class="parity{parity}"><td class="age"><i>{date|age} ago</i></td><td><a class="list" href="{url}rev/{node|short}{sessionvars%urlparameter}"><b>{node|short}</b></a></td><td>{branch|escape}</td><td class="link"><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}"><td class="age"><i>{date|age} ago</i></td><td><a class="list" href="{url}shortlog/{node|short}{sessionvars%urlparameter}"><b>{node|short}</b></a></td><td>{branch|escape}</td><td class="link"><a href="{url}changeset/{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>'
 diffblock = '<pre>#lines#</pre>'
 filediffparent = '<tr><td>parent {rev}</td><td style="font-family:monospace"><a class="list" href="{url}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></td></tr>'
 filelogparent = '<tr><td align="right">parent #rev#:&nbsp;</td><td><a href="{url}file/{node|short}/#file|urlescape#{sessionvars%urlparameter}">#node|short#</a></td></tr>'
--- a/templates/gitweb/search.tmpl	Mon May 11 21:14:43 2009 +0200
+++ b/templates/gitweb/search.tmpl	Mon May 11 21:12:44 2009 +0200
@@ -24,6 +24,7 @@
 <a href="{url}log{sessionvars%urlparameter}">changelog</a> |
 <a href="{url}graph{sessionvars%urlparameter}">graph</a> |
 <a href="{url}tags{sessionvars%urlparameter}">tags</a> |
+<a href="{url}branches{sessionvars%urlparameter}">branches</a> |
 <a href="{url}file/#node|short#{sessionvars%urlparameter}">files</a>#archives%archiveentry#
 <br/>
 </div>
--- a/templates/gitweb/shortlog.tmpl	Mon May 11 21:14:43 2009 +0200
+++ b/templates/gitweb/shortlog.tmpl	Mon May 11 21:12:44 2009 +0200
@@ -23,6 +23,7 @@
 <a href="{url}log/#rev#{sessionvars%urlparameter}">changelog</a> |
 <a href="{url}graph{sessionvars%urlparameter}">graph</a> |
 <a href="{url}tags{sessionvars%urlparameter}">tags</a> |
+<a href="{url}branches{sessionvars%urlparameter}">branches</a> |
 <a href="{url}file/#node|short#{sessionvars%urlparameter}">files</a>#archives%archiveentry#
 <br/>
 #changenav%navshortentry#<br/>
--- a/templates/gitweb/summary.tmpl	Mon May 11 21:14:43 2009 +0200
+++ b/templates/gitweb/summary.tmpl	Mon May 11 21:12:44 2009 +0200
@@ -24,6 +24,7 @@
 <a href="{url}log{sessionvars%urlparameter}">changelog</a> |
 <a href="{url}graph{sessionvars%urlparameter}">graph</a> |
 <a href="{url}tags{sessionvars%urlparameter}">tags</a> |
+<a href="{url}branches{sessionvars%urlparameter}">branches</a> |
 <a href="{url}file/#node|short#{sessionvars%urlparameter}">files</a>#archives%archiveentry#
 <br/>
 </div>
--- a/templates/gitweb/tags.tmpl	Mon May 11 21:14:43 2009 +0200
+++ b/templates/gitweb/tags.tmpl	Mon May 11 21:12:44 2009 +0200
@@ -17,6 +17,7 @@
 <a href="{url}log{sessionvars%urlparameter}">changelog</a> |
 <a href="{url}graph{sessionvars%urlparameter}">graph</a> |
 tags |
+<a href="{url}branches{sessionvars%urlparameter}">branches</a> |
 <a href="{url}file/#node|short#{sessionvars%urlparameter}">files</a>
 <br/>
 </div>