Mercurial > hg
annotate mercurial/templates/gitweb/error.tmpl @ 18258:bebb05a7e249
hgweb: add a "URL breadcrumb" to the index and repository pages
The purpose of this change is to make it much easier to navigate up the
repository tree when the hg web server is used to serve more than one
repository.
A "URL breadcrumb" is a path where each of the path items can be clicked to go
to the corresponding path page.
This lets you go up the folder hierarchy very quickly. For example, when showing
the list of repositories in http://myserver/myteams/myprojects, the following
"breadcrumb" will be shown:
Mercurial > myteams > myprojects
Clicking on "myprojects" reloads the page. Clicking on "myteams" goes up one
folder. Clicking on the leftmost "Mercurial" goes to the server root.
This "breadcrumb" also appears on all repository pages. For example on the
summary page of the repository at http://myserver/myteams/myprojects/myrepo the
following will be shown:
Mercurial > myteams > myprojects > myrepo / summary
This change has been applied to all templates that already had a link to the
main repository page (i.e. gitweb, monoblue, paper and coal) plus to the index
page of the spartan template.
In order to make the breadcumb links stand out the some of the template styles
have been customized.
author | Angel Ezquerra <angel.ezquerra at gmail.com> |
---|---|
date | Wed, 28 Nov 2012 20:21:26 +0100 |
parents | 616ad3f6fd33 |
children | 9409aeaafdc1 |
rev | line source |
---|---|
8427
cebdfdcc3e42
git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
6177
diff
changeset
|
1 {header} |
cebdfdcc3e42
git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
6177
diff
changeset
|
2 <title>{repo|escape}: Error</title> |
5269
46c5e1ee8aaa
Added support for the Atom syndication format
Robert Bachmann <rbach@rbach.priv.at>
parents:
3363
diff
changeset
|
3 <link rel="alternate" type="application/atom+xml" |
8427
cebdfdcc3e42
git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
6177
diff
changeset
|
4 href="{url}atom-log" title="Atom feed for {repo|escape}"/> |
1776 | 5 <link rel="alternate" type="application/rss+xml" |
8427
cebdfdcc3e42
git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
6177
diff
changeset
|
6 href="{url}rss-log" title="RSS feed for {repo|escape}"/> |
1776 | 7 </head> |
8 <body> | |
9 | |
10 <div class="page_header"> | |
18258
bebb05a7e249
hgweb: add a "URL breadcrumb" to the index and repository pages
Angel Ezquerra <angel.ezquerra at gmail.com>
parents:
13964
diff
changeset
|
11 <a href="{logourl}" title="Mercurial" style="float: right;">Mercurial</a> |
bebb05a7e249
hgweb: add a "URL breadcrumb" to the index and repository pages
Angel Ezquerra <angel.ezquerra at gmail.com>
parents:
13964
diff
changeset
|
12 <a href="/">Mercurial</a> {pathdef%breadcrumb} / error |
1776 | 13 </div> |
14 | |
1572
385b8872b8e3
[hgweb] Initial import of the "gitweb" style
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff
changeset
|
15 <div class="page_nav"> |
13862
4d0a7d70866b
hgweb: format page_nav of gitweb/error.tmpl and add missing links
Yuya Nishihara <yuya@tcha.org>
parents:
9999
diff
changeset
|
16 <a href="{url}summary{sessionvars%urlparameter}">summary</a> | |
4d0a7d70866b
hgweb: format page_nav of gitweb/error.tmpl and add missing links
Yuya Nishihara <yuya@tcha.org>
parents:
9999
diff
changeset
|
17 <a href="{url}shortlog{sessionvars%urlparameter}">shortlog</a> | |
4d0a7d70866b
hgweb: format page_nav of gitweb/error.tmpl and add missing links
Yuya Nishihara <yuya@tcha.org>
parents:
9999
diff
changeset
|
18 <a href="{url}log{sessionvars%urlparameter}">changelog</a> | |
4d0a7d70866b
hgweb: format page_nav of gitweb/error.tmpl and add missing links
Yuya Nishihara <yuya@tcha.org>
parents:
9999
diff
changeset
|
19 <a href="{url}tags{sessionvars%urlparameter}">tags</a> | |
13864
fd8a6ca3a750
hgweb: add separate bookmarks listing to gitweb theme (based on 38c9837b1f75)
Yuya Nishihara <yuya@tcha.org>
parents:
13862
diff
changeset
|
20 <a href="{url}bookmarks{sessionvars%urlparameter}">bookmarks</a> | |
13862
4d0a7d70866b
hgweb: format page_nav of gitweb/error.tmpl and add missing links
Yuya Nishihara <yuya@tcha.org>
parents:
9999
diff
changeset
|
21 <a href="{url}branches{sessionvars%urlparameter}">branches</a> | |
4d0a7d70866b
hgweb: format page_nav of gitweb/error.tmpl and add missing links
Yuya Nishihara <yuya@tcha.org>
parents:
9999
diff
changeset
|
22 <a href="{url}file/{node|short}{sessionvars%urlparameter}">files</a> | |
4d0a7d70866b
hgweb: format page_nav of gitweb/error.tmpl and add missing links
Yuya Nishihara <yuya@tcha.org>
parents:
9999
diff
changeset
|
23 <a href="{url}help{sessionvars%urlparameter}">help</a> |
4d0a7d70866b
hgweb: format page_nav of gitweb/error.tmpl and add missing links
Yuya Nishihara <yuya@tcha.org>
parents:
9999
diff
changeset
|
24 <br/> |
1572
385b8872b8e3
[hgweb] Initial import of the "gitweb" style
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff
changeset
|
25 </div> |
385b8872b8e3
[hgweb] Initial import of the "gitweb" style
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff
changeset
|
26 |
3357
7cc0f49d8e5c
gitweb: Add error text to error page
Brendan Cully <brendan@kublai.com>
parents:
3271
diff
changeset
|
27 <div class="page_body"> |
1572
385b8872b8e3
[hgweb] Initial import of the "gitweb" style
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff
changeset
|
28 <br/> |
5837
2580d418e3f0
Issue #880: Simple misspelling ('occured') in web error message.
Jesse Glick <jesse.glick@sun.com>
parents:
5820
diff
changeset
|
29 <i>An error occurred while processing your request</i><br/> |
1572
385b8872b8e3
[hgweb] Initial import of the "gitweb" style
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff
changeset
|
30 <br/> |
3357
7cc0f49d8e5c
gitweb: Add error text to error page
Brendan Cully <brendan@kublai.com>
parents:
3271
diff
changeset
|
31 {error|escape} |
1572
385b8872b8e3
[hgweb] Initial import of the "gitweb" style
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff
changeset
|
32 </div> |
385b8872b8e3
[hgweb] Initial import of the "gitweb" style
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff
changeset
|
33 |
8427
cebdfdcc3e42
git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
6177
diff
changeset
|
34 {footer} |