annotate mercurial/templates/gitweb/help.tmpl @ 25526:32f76eccbced

hgweb: don't point file links at tip hash where it doesn't make sense Some pages, e.g. bookmarks, help and summary don't have a meaningful revision context: they always either show information about tip or about the whole repo (and not about any specific changeset). And error pages can just show hgweb error messages, not related to any repo or changeset. Having a hash in the links worked (even when '{node|short}' resolved to an empty string on error pages), but seeing pages without revision context provide links with hashes is a bit confusing (unless you keep current tip hash in your head at all times) and not consistent with other template styles and other links on the same page: they don't have a hash. Let's just link to '/file', which is equal to '/file/tip'.
author Anton Shestakov <av6@dwimlabs.net>
date Fri, 12 Jun 2015 18:34:10 +0800
parents f5db3092790f
children def530e77b0b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
8427
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8356
diff changeset
1 {header}
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8356
diff changeset
2 <title>{repo|escape}: Branches</title>
8356
439663cd043a gitweb: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
3 <link rel="alternate" type="application/atom+xml"
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
4 href="{url|urlescape}atom-tags" title="Atom feed for {repo|escape}"/>
8356
439663cd043a gitweb: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
5 <link rel="alternate" type="application/rss+xml"
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
6 href="{url|urlescape}rss-tags" title="RSS feed for {repo|escape}"/>
8356
439663cd043a gitweb: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
7 </head>
439663cd043a gitweb: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
8 <body>
439663cd043a gitweb: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
9
439663cd043a gitweb: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
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} / help
8356
439663cd043a gitweb: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
13 </div>
439663cd043a gitweb: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
14
439663cd043a gitweb: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
15 <div class="page_nav">
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
16 <a href="{url|urlescape}summary{sessionvars%urlparameter}">summary</a> |
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
17 <a href="{url|urlescape}shortlog{sessionvars%urlparameter}">shortlog</a> |
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
18 <a href="{url|urlescape}log{sessionvars%urlparameter}">changelog</a> |
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
19 <a href="{url|urlescape}graph{sessionvars%urlparameter}">graph</a> |
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
20 <a href="{url|urlescape}tags{sessionvars%urlparameter}">tags</a> |
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
21 <a href="{url|urlescape}bookmarks{sessionvars%urlparameter}">bookmarks</a> |
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
22 <a href="{url|urlescape}branches{sessionvars%urlparameter}">branches</a> |
25526
32f76eccbced hgweb: don't point file links at tip hash where it doesn't make sense
Anton Shestakov <av6@dwimlabs.net>
parents: 18747
diff changeset
23 <a href="{url|urlescape}file{sessionvars%urlparameter}">files</a> |
13861
e8f50febc2d4 hgweb: fix typo and inactive link in page_nav and page_header of gitweb's help
Yuya Nishihara <yuya@tcha.org>
parents: 12666
diff changeset
24 help
8356
439663cd043a gitweb: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
25 <br/>
439663cd043a gitweb: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
26 </div>
439663cd043a gitweb: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
27
439663cd043a gitweb: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
28 <div class="title">&nbsp;</div>
12666
ead4e21f49f1 web: add a help view for getting hg help output
Augie Fackler <durin42@gmail.com>
parents: 9999
diff changeset
29
18747
f5db3092790f hgweb: generate HTML documentation
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents: 18526
diff changeset
30 <div id="doc">
f5db3092790f hgweb: generate HTML documentation
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents: 18526
diff changeset
31 {rstdoc(doc, "html")}
f5db3092790f hgweb: generate HTML documentation
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents: 18526
diff changeset
32 </div>
8356
439663cd043a gitweb: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
33
8427
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8356
diff changeset
34 {footer}