mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 01:07:15 +03:00
4687d63f4f
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 f9c487618909, 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'.
39 lines
1.6 KiB
Cheetah
39 lines
1.6 KiB
Cheetah
{header}
|
|
<title>{repo|escape}: Bookmarks</title>
|
|
<link rel="alternate" type="application/atom+xml" href="{url|urlescape}atom-log" title="Atom feed for {repo|escape}"/>
|
|
<link rel="alternate" type="application/rss+xml" href="{url|urlescape}rss-log" title="RSS feed for {repo|escape}"/>
|
|
</head>
|
|
|
|
<body>
|
|
<div id="container">
|
|
<div class="page-header">
|
|
<h1 class="breadcrumb"><a href="/">Mercurial</a> {pathdef%breadcrumb} / bookmarks</h1>
|
|
|
|
<form action="{url|urlescape}log">
|
|
{sessionvars%hiddenformentry}
|
|
<dl class="search">
|
|
<dt><label>Search: </label></dt>
|
|
<dd><input type="text" name="rev" /></dd>
|
|
</dl>
|
|
</form>
|
|
|
|
<ul class="page-nav">
|
|
<li><a href="{url|urlescape}summary{sessionvars%urlparameter}">summary</a></li>
|
|
<li><a href="{url|urlescape}shortlog{sessionvars%urlparameter}">shortlog</a></li>
|
|
<li><a href="{url|urlescape}changelog{sessionvars%urlparameter}">changelog</a></li>
|
|
<li><a href="{url|urlescape}graph{sessionvars%urlparameter}">graph</a></li>
|
|
<li><a href="{url|urlescape}tags{sessionvars%urlparameter}">tags</a></li>
|
|
<li class="current">bookmarks</li>
|
|
<li><a href="{url|urlescape}branches{sessionvars%urlparameter}">branches</a></li>
|
|
<li><a href="{url|urlescape}file/{node|short}{sessionvars%urlparameter}">files</a></li>
|
|
<li><a href="{url|urlescape}help{sessionvars%urlparameter}">help</a></li>
|
|
</ul>
|
|
</div>
|
|
|
|
<h2 class="no-link no-border">bookmarks</h2>
|
|
<table cellspacing="0">
|
|
{entries%bookmarkentry}
|
|
</table>
|
|
|
|
{footer}
|