mercurial/templates/monoblue/branches.tmpl
author Anton Shestakov <av6@dwimlabs.net>
Fri, 12 Jun 2015 16:09:59 +0800
changeset 25525 bcc02516f384
parent 24129 3fc86f1c39d8
child 25526 32f76eccbced
permissions -rw-r--r--
hgweb: don't point graph 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. When monoblue style was added in 91b0ada2d94b, however, all graph links had tried to point at some hash, and on such pages as described above it didn't make sense. On error pages '{node|short}' is empty string anyway. Of course, it worked, but seeing such 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 wasn't consistent with other template styles, other pages in monoblue and even other links on the same page. Let's just link to '/graph', which is equal to '/graph/tip'.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
8430
8b47efdf40ee monoblue: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8355
diff changeset
     1
{header}
8b47efdf40ee monoblue: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8355
diff changeset
     2
    <title>{repo|escape}: Branches</title>
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
     3
    <link rel="alternate" type="application/atom+xml" href="{url|urlescape}atom-branches" title="Atom feed for {repo|escape}"/>
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
     4
    <link rel="alternate" type="application/rss+xml" href="{url|urlescape}rss-branches" title="RSS feed for {repo|escape}"/>
8355
5ba798f339c8 monoblue: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
     5
</head>
5ba798f339c8 monoblue: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
     6
5ba798f339c8 monoblue: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
     7
<body>
5ba798f339c8 monoblue: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
     8
<div id="container">
5ba798f339c8 monoblue: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
     9
    <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: 18045
diff changeset
    10
        <h1 class="breadcrumb"><a href="/">Mercurial</a> {pathdef%breadcrumb} / branches</h1>
8355
5ba798f339c8 monoblue: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
    11
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
    12
        <form action="{url|urlescape}log">
8355
5ba798f339c8 monoblue: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
    13
            {sessionvars%hiddenformentry}
5ba798f339c8 monoblue: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
    14
            <dl class="search">
5ba798f339c8 monoblue: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
    15
                <dt><label>Search: </label></dt>
5ba798f339c8 monoblue: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
    16
                <dd><input type="text" name="rev" /></dd>
5ba798f339c8 monoblue: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
    17
            </dl>
5ba798f339c8 monoblue: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
    18
        </form>
5ba798f339c8 monoblue: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
    19
5ba798f339c8 monoblue: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
    20
        <ul 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
    21
            <li><a href="{url|urlescape}summary{sessionvars%urlparameter}">summary</a></li>
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
    22
            <li><a href="{url|urlescape}shortlog{sessionvars%urlparameter}">shortlog</a></li>
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
    23
            <li><a href="{url|urlescape}changelog{sessionvars%urlparameter}">changelog</a></li>
25525
bcc02516f384 hgweb: don't point graph links at tip hash where it doesn't make sense
Anton Shestakov <av6@dwimlabs.net>
parents: 24129
diff changeset
    24
            <li><a href="{url|urlescape}graph{sessionvars%urlparameter}">graph</a></li>
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
    25
            <li><a href="{url|urlescape}tags{sessionvars%urlparameter}">tags</a></li>
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
    26
            <li><a href="{url|urlescape}bookmarks{sessionvars%urlparameter}">bookmarks</a></li>
8355
5ba798f339c8 monoblue: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
    27
            <li class="current">branches</li>
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
    28
            <li><a href="{url|urlescape}file/{node|short}{sessionvars%urlparameter}">files</a></li>
24129
3fc86f1c39d8 hgweb: don't mix tabs and spaces in monoblue templates
Anton Shestakov <engored@ya.ru>
parents: 18526
diff changeset
    29
            <li><a href="{url|urlescape}help{sessionvars%urlparameter}">help</a></li>
8355
5ba798f339c8 monoblue: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
    30
        </ul>
5ba798f339c8 monoblue: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
    31
    </div>
5ba798f339c8 monoblue: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
    32
10137
daec0f64656e monoblue: fix title for branches page
Johan Samyn <johan.samyn@gmail.com>
parents: 8430
diff changeset
    33
    <h2 class="no-link no-border">branches</h2>
8355
5ba798f339c8 monoblue: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
    34
    <table cellspacing="0">
8430
8b47efdf40ee monoblue: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8355
diff changeset
    35
{entries%branchentry}
8355
5ba798f339c8 monoblue: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
    36
    </table>
5ba798f339c8 monoblue: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
    37
8430
8b47efdf40ee monoblue: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8355
diff changeset
    38
{footer}