Mercurial > hg
changeset 8357:d974a32b59dc
spartan: add branches page
author | Sune Foldager <cryo@cyanite.org> |
---|---|
date | Tue, 12 May 2009 11:58:39 +0200 |
parents | 439663cd043a |
children | be2277c1dfcc |
files | templates/spartan/branches.tmpl templates/spartan/changelog.tmpl templates/spartan/changeset.tmpl templates/spartan/fileannotate.tmpl templates/spartan/filediff.tmpl templates/spartan/filelog.tmpl templates/spartan/filerevision.tmpl templates/spartan/graph.tmpl templates/spartan/manifest.tmpl templates/spartan/map templates/spartan/search.tmpl templates/spartan/shortlog.tmpl templates/spartan/tags.tmpl tests/test-hgweb-filelog.out |
diffstat | 14 files changed, 40 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templates/spartan/branches.tmpl Tue May 12 11:58:39 2009 +0200 @@ -0,0 +1,26 @@ +#header# +<title>#repo|escape#: branches</title> +<link rel="alternate" type="application/atom+xml" + href="#url#atom-branches" title="Atom feed for #repo|escape#: branches"> +<link rel="alternate" type="application/rss+xml" + href="#url#rss-branches" title="RSS feed for #repo|escape#: branches"> +</head> +<body> + +<div class="buttons"> +<a href="#url#log{sessionvars%urlparameter}">changelog</a> +<a href="#url#shortlog{sessionvars%urlparameter}">shortlog</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> +<a type="application/rss+xml" href="#url#rss-branches">rss</a> +<a type="application/atom+xml" href="#url#atom-branches">atom</a> +</div> + +<h2>branches:</h2> + +<ul id="tagEntries"> +#entries%branchentry# +</ul> + +#footer#
--- a/templates/spartan/changelog.tmpl Mon May 11 21:12:44 2009 +0200 +++ b/templates/spartan/changelog.tmpl Tue May 12 11:58:39 2009 +0200 @@ -11,6 +11,7 @@ <a href="#url#shortlog/#rev#{sessionvars%urlparameter}">shortlog</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# <a type="application/rss+xml" href="#url#rss-log">rss</a>
--- a/templates/spartan/changeset.tmpl Mon May 11 21:12:44 2009 +0200 +++ b/templates/spartan/changeset.tmpl Tue May 12 11:58:39 2009 +0200 @@ -8,6 +8,7 @@ <a href="#url#shortlog/#rev#{sessionvars%urlparameter}">shortlog</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> <a href="#url#raw-rev/#node|short#">raw</a> #archives%archiveentry#
--- a/templates/spartan/fileannotate.tmpl Mon May 11 21:12:44 2009 +0200 +++ b/templates/spartan/fileannotate.tmpl Tue May 12 11:58:39 2009 +0200 @@ -8,6 +8,7 @@ <a href="#url#shortlog/#rev#{sessionvars%urlparameter}">shortlog</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#rev/#node|short#{sessionvars%urlparameter}">changeset</a> <a href="#url#file/#node|short##path|urlescape#{sessionvars%urlparameter}">files</a> <a href="#url#file/#node|short#/#file|urlescape#{sessionvars%urlparameter}">file</a>
--- a/templates/spartan/filediff.tmpl Mon May 11 21:12:44 2009 +0200 +++ b/templates/spartan/filediff.tmpl Tue May 12 11:58:39 2009 +0200 @@ -8,6 +8,7 @@ <a href="#url#shortlog/#rev#{sessionvars%urlparameter}">shortlog</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#rev/#node|short#{sessionvars%urlparameter}">changeset</a> <a href="#url#file/#node|short#/#file|urlescape#{sessionvars%urlparameter}">file</a> <a href="#url#log/#node|short#/#file|urlescape#{sessionvars%urlparameter}">revisions</a>
--- a/templates/spartan/filelog.tmpl Mon May 11 21:12:44 2009 +0200 +++ b/templates/spartan/filelog.tmpl Tue May 12 11:58:39 2009 +0200 @@ -12,6 +12,7 @@ <a href="#url#shortlog{sessionvars%urlparameter}">shortlog</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> <a href="#url#annotate/#node|short#/#file|urlescape#{sessionvars%urlparameter}">annotate</a> <a type="application/rss+xml" href="#url#rss-log/tip/#file|urlescape#">rss</a>
--- a/templates/spartan/filerevision.tmpl Mon May 11 21:12:44 2009 +0200 +++ b/templates/spartan/filerevision.tmpl Tue May 12 11:58:39 2009 +0200 @@ -8,6 +8,7 @@ <a href="#url#shortlog/#rev#{sessionvars%urlparameter}">shortlog</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#rev/#node|short#{sessionvars%urlparameter}">changeset</a> <a href="#url#file/#node|short##path|urlescape#{sessionvars%urlparameter}">files</a> <a href="#url#log/#node|short#/#file|urlescape#{sessionvars%urlparameter}">revisions</a>
--- a/templates/spartan/graph.tmpl Mon May 11 21:12:44 2009 +0200 +++ b/templates/spartan/graph.tmpl Tue May 12 11:58:39 2009 +0200 @@ -12,6 +12,7 @@ <a href="#url#log{sessionvars%urlparameter}">changelog</a> <a href="#url#shortlog{sessionvars%urlparameter}">shortlog</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> </div>
--- a/templates/spartan/manifest.tmpl Mon May 11 21:12:44 2009 +0200 +++ b/templates/spartan/manifest.tmpl Tue May 12 11:58:39 2009 +0200 @@ -8,6 +8,7 @@ <a href="#url#shortlog/#rev#{sessionvars%urlparameter}">shortlog</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#rev/#node|short#{sessionvars%urlparameter}">changeset</a> #archives%archiveentry# </div>
--- a/templates/spartan/map Mon May 11 21:12:44 2009 +0200 +++ b/templates/spartan/map Tue May 12 11:58:39 2009 +0200 @@ -44,6 +44,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 = '<li class="tagEntry parity#parity#"><tt class="node">#node#</tt> <a href="#url#rev/#node|short#{sessionvars%urlparameter}">#tag|escape#</a></li>' +branches = branches.tmpl +branchentry = '<li class="tagEntry parity#parity#"><tt class="node">#node#</tt> <a href="#url#shortlog/#node|short#{sessionvars%urlparameter}">#branch|escape#</a></li>' diffblock = '<pre class="parity#parity#">#lines#</pre>' changelogtag = '<tr><th class="tag">tag:</th><td class="tag">#tag|escape#</td></tr>' changesettag = '<tr><th class="tag">tag:</th><td class="tag">#tag|escape#</td></tr>'
--- a/templates/spartan/search.tmpl Mon May 11 21:12:44 2009 +0200 +++ b/templates/spartan/search.tmpl Tue May 12 11:58:39 2009 +0200 @@ -8,6 +8,7 @@ <a href="#url#shortlog{sessionvars%urlparameter}">shortlog</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# </div>
--- a/templates/spartan/shortlog.tmpl Mon May 11 21:12:44 2009 +0200 +++ b/templates/spartan/shortlog.tmpl Tue May 12 11:58:39 2009 +0200 @@ -11,6 +11,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# <a type="application/rss+xml" href="#url#rss-log">rss</a>
--- a/templates/spartan/tags.tmpl Mon May 11 21:12:44 2009 +0200 +++ b/templates/spartan/tags.tmpl Tue May 12 11:58:39 2009 +0200 @@ -11,6 +11,7 @@ <a href="#url#log{sessionvars%urlparameter}">changelog</a> <a href="#url#shortlog{sessionvars%urlparameter}">shortlog</a> <a href="#url#graph{sessionvars%urlparameter}">graph</a> +<a href="#url#branches{sessionvars%urlparameter}">branches</a> <a href="#url#file/#node|short#/{sessionvars%urlparameter}">files</a> <a type="application/rss+xml" href="#url#rss-tags">rss</a> <a type="application/atom+xml" href="#url#atom-tags">atom</a>
--- a/tests/test-hgweb-filelog.out Mon May 11 21:12:44 2009 +0200 +++ b/tests/test-hgweb-filelog.out Tue May 12 11:58:39 2009 +0200 @@ -486,6 +486,7 @@ <a href="/shortlog?style=spartan">shortlog</a> <a href="/graph?style=spartan">graph</a> <a href="/tags?style=spartan">tags</a> +<a href="/branches?style=spartan">branches</a> <a href="/file/38d962e6234d/c?style=spartan">file</a> <a href="/annotate/38d962e6234d/c?style=spartan">annotate</a> <a type="application/rss+xml" href="/rss-log/tip/c">rss</a>