hgweb, spartan: add "URL breadcrumbs"
authorAngel Ezquerra <angel.ezquerra at gmail.com>
Fri, 21 Dec 2012 02:40:12 +0100
changeset 18259 7bf412b767fe
parent 18258 bebb05a7e249
child 18260 580274a1f1c2
hgweb, spartan: add "URL breadcrumbs" This change adds a "URL breadcrumb" to the "title" of the pages on the spartan template. By title I mean the first line that is shown right below the page selection row, which shows the name of the page that is being viewed, along with some additional information. In doing so it standarizes those "titles" which now follow the pattern: URL breadcumb / page details
mercurial/templates/spartan/branches.tmpl
mercurial/templates/spartan/changelog.tmpl
mercurial/templates/spartan/changeset.tmpl
mercurial/templates/spartan/fileannotate.tmpl
mercurial/templates/spartan/filediff.tmpl
mercurial/templates/spartan/filelog.tmpl
mercurial/templates/spartan/filerevision.tmpl
mercurial/templates/spartan/graph.tmpl
mercurial/templates/spartan/manifest.tmpl
mercurial/templates/spartan/shortlog.tmpl
mercurial/templates/spartan/tags.tmpl
--- a/mercurial/templates/spartan/branches.tmpl	Wed Nov 28 20:21:26 2012 +0100
+++ b/mercurial/templates/spartan/branches.tmpl	Fri Dec 21 02:40:12 2012 +0100
@@ -18,7 +18,7 @@
 <a type="application/atom+xml" href="{url}atom-branches">atom</a>
 </div>
 
-<h2>branches:</h2>
+<h2><a href="/">Mercurial</a> {pathdef%breadcrumb} / branches</h2>
 
 <ul id="tagEntries">
 {entries%branchentry}
--- a/mercurial/templates/spartan/changelog.tmpl	Wed Nov 28 20:21:26 2012 +0100
+++ b/mercurial/templates/spartan/changelog.tmpl	Fri Dec 21 02:40:12 2012 +0100
@@ -19,7 +19,7 @@
 <a type="application/atom+xml" href="{url}atom-log" title="Atom feed for {repo|escape}">atom</a>
 </div>
 
-<h2>changelog for {repo|escape}</h2>
+<h2><a href="/">Mercurial</a> {pathdef%breadcrumb} / changelog</h2>
 
 <form action="{url}log">
 {sessionvars%hiddenformentry}
--- a/mercurial/templates/spartan/changeset.tmpl	Wed Nov 28 20:21:26 2012 +0100
+++ b/mercurial/templates/spartan/changeset.tmpl	Fri Dec 21 02:40:12 2012 +0100
@@ -15,7 +15,7 @@
 <a href="{url}help{sessionvars%urlparameter}">help</a>
 </div>
 
-<h2>changeset: {desc|strip|escape|firstline|nonempty}</h2>
+<h2><a href="/">Mercurial</a> {pathdef%breadcrumb} / changeset: {desc|strip|escape|firstline|nonempty}</h2>
 
 <table id="changesetEntry">
 <tr>
--- a/mercurial/templates/spartan/fileannotate.tmpl	Wed Nov 28 20:21:26 2012 +0100
+++ b/mercurial/templates/spartan/fileannotate.tmpl	Fri Dec 21 02:40:12 2012 +0100
@@ -17,7 +17,7 @@
 <a href="{url}help{sessionvars%urlparameter}">help</a>
 </div>
 
-<h2>Annotate {file|escape}</h2>
+<h2><a href="/">Mercurial</a> {pathdef%breadcrumb} / annotate {file|escape}</h2>
 
 <table>
 <tr>
--- a/mercurial/templates/spartan/filediff.tmpl	Wed Nov 28 20:21:26 2012 +0100
+++ b/mercurial/templates/spartan/filediff.tmpl	Fri Dec 21 02:40:12 2012 +0100
@@ -17,7 +17,7 @@
 <a href="{url}help{sessionvars%urlparameter}">help</a>
 </div>
 
-<h2>{file|escape}</h2>
+<h2><a href="/">Mercurial</a> {pathdef%breadcrumb} / {file|escape}</h2>
 
 <table id="filediffEntry">
 <tr>
--- a/mercurial/templates/spartan/filelog.tmpl	Wed Nov 28 20:21:26 2012 +0100
+++ b/mercurial/templates/spartan/filelog.tmpl	Fri Dec 21 02:40:12 2012 +0100
@@ -20,7 +20,7 @@
 <a type="application/atom+xml" href="{url}atom-log/tip/{file|urlescape}" title="Atom feed for {repo|escape}:{file}">atom</a>
 </div>
 
-<h2>{file|escape} revision history</h2>
+<h2><a href="/">Mercurial</a> {pathdef%breadcrumb} / {file|escape} revision history</h2>
 
 <p>navigate: <small class="navigate">{nav%filenav}</small></p>
 
--- a/mercurial/templates/spartan/filerevision.tmpl	Wed Nov 28 20:21:26 2012 +0100
+++ b/mercurial/templates/spartan/filerevision.tmpl	Fri Dec 21 02:40:12 2012 +0100
@@ -17,7 +17,7 @@
 <a href="{url}help{sessionvars%urlparameter}">help</a>
 </div>
 
-<h2>{file|escape}</h2>
+<h2><a href="/">Mercurial</a> {pathdef%breadcrumb} / {file|escape}</h2>
 
 <table>
 <tr>
--- a/mercurial/templates/spartan/graph.tmpl	Wed Nov 28 20:21:26 2012 +0100
+++ b/mercurial/templates/spartan/graph.tmpl	Fri Dec 21 02:40:12 2012 +0100
@@ -17,7 +17,7 @@
 <a href="{url}help{sessionvars%urlparameter}">help</a>
 </div>
 
-<h2>graph</h2>
+<h2><a href="/">Mercurial</a> {pathdef%breadcrumb} / graph</h2>
 
 <form action="{url}log">
 {sessionvars%hiddenformentry}
--- a/mercurial/templates/spartan/manifest.tmpl	Wed Nov 28 20:21:26 2012 +0100
+++ b/mercurial/templates/spartan/manifest.tmpl	Fri Dec 21 02:40:12 2012 +0100
@@ -14,7 +14,7 @@
 <a href="{url}help{sessionvars%urlparameter}">help</a>
 </div>
 
-<h2>files for changeset {node|short}: {path|escape}</h2>
+<h2><a href="/">Mercurial</a> {pathdef%breadcrumb} / files for changeset {node|short}: {path|escape}</h2>
 
 <table cellpadding="0" cellspacing="0">
 <tr class="parity{upparity}">
--- a/mercurial/templates/spartan/shortlog.tmpl	Wed Nov 28 20:21:26 2012 +0100
+++ b/mercurial/templates/spartan/shortlog.tmpl	Fri Dec 21 02:40:12 2012 +0100
@@ -19,7 +19,7 @@
 <a type="application/rss+xml" href="{url}atom-log" title="Atom feed for {repo|escape}">atom</a>
 </div>
 
-<h2>shortlog for {repo|escape}</h2>
+<h2><a href="/">Mercurial</a> {pathdef%breadcrumb} / shortlog</h2>
 
 <form action="{url}log">
 {sessionvars%hiddenformentry}
--- a/mercurial/templates/spartan/tags.tmpl	Wed Nov 28 20:21:26 2012 +0100
+++ b/mercurial/templates/spartan/tags.tmpl	Fri Dec 21 02:40:12 2012 +0100
@@ -18,7 +18,7 @@
 <a type="application/atom+xml" href="{url}atom-tags">atom</a>
 </div>
 
-<h2>tags:</h2>
+<h2><a href="/">Mercurial</a> {pathdef%breadcrumb} / tags</h2>
 
 <ul id="tagEntries">
 {entries%tagentry}