mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
ad43ca849f
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'.
34 lines
1.2 KiB
Cheetah
34 lines
1.2 KiB
Cheetah
{header}
|
|
<title>{repo|escape}: Bookmarks</title>
|
|
<link rel="alternate" type="application/atom+xml"
|
|
href="{url|urlescape}atom-bookmarks" title="Atom feed for {repo|escape}"/>
|
|
<link rel="alternate" type="application/rss+xml"
|
|
href="{url|urlescape}rss-bookmarks" title="RSS feed for {repo|escape}"/>
|
|
</head>
|
|
<body>
|
|
|
|
<div class="page_header">
|
|
<a href="{logourl}" title="Mercurial" style="float: right;">Mercurial</a>
|
|
<a href="/">Mercurial</a> {pathdef%breadcrumb} / bookmarks
|
|
</div>
|
|
|
|
<div class="page_nav">
|
|
<a href="{url|urlescape}summary{sessionvars%urlparameter}">summary</a> |
|
|
<a href="{url|urlescape}shortlog{sessionvars%urlparameter}">shortlog</a> |
|
|
<a href="{url|urlescape}log{sessionvars%urlparameter}">changelog</a> |
|
|
<a href="{url|urlescape}graph{sessionvars%urlparameter}">graph</a> |
|
|
<a href="{url|urlescape}tags{sessionvars%urlparameter}">tags</a> |
|
|
bookmarks |
|
|
<a href="{url|urlescape}branches{sessionvars%urlparameter}">branches</a> |
|
|
<a href="{url|urlescape}file{sessionvars%urlparameter}">files</a> |
|
|
<a href="{url|urlescape}help{sessionvars%urlparameter}">help</a>
|
|
<br/>
|
|
</div>
|
|
|
|
<div class="title"> </div>
|
|
<table cellspacing="0">
|
|
{entries%bookmarkentry}
|
|
</table>
|
|
|
|
{footer}
|