mercurial/templates/spartan/filelog.tmpl
author Angel Ezquerra <angel.ezquerra at gmail.com>
Fri, 21 Dec 2012 02:40:12 +0100
changeset 18259 7bf412b767fe
parent 12680 d664547ef540
child 18526 9409aeaafdc1
permissions -rw-r--r--
hgweb, spartan: add "URL breadcrumbs" This change adds a "URL breadcrumb" to the "title" of the pages on the spartan template. By title I mean the first line that is shown right below the page selection row, which shows the name of the page that is being viewed, along with some additional information. In doing so it standarizes those "titles" which now follow the pattern: URL breadcumb / page details

{header}
<title>{repo|escape}: {file|escape} history</title>
<link rel="alternate" type="application/atom+xml"
   href="{url}atom-log/tip/{file|urlescape}" title="Atom feed for {repo|escape}:{file}">
<link rel="alternate" type="application/rss+xml"
   href="{url}rss-log/tip/{file|urlescape}" title="RSS feed for {repo|escape}:{file}">
</head>
<body>

<div class="buttons">
<a href="{url}log{sessionvars%urlparameter}">changelog</a>
<a href="{url}shortlog{sessionvars%urlparameter}">shortlog</a>
<a href="{url}graph{sessionvars%urlparameter}">graph</a>
<a href="{url}tags{sessionvars%urlparameter}">tags</a>
<a href="{url}branches{sessionvars%urlparameter}">branches</a>
<a href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">file</a>
<a href="{url}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">annotate</a>
<a href="{url}help{sessionvars%urlparameter}">help</a>
<a type="application/rss+xml" href="{url}rss-log/tip/{file|urlescape}">rss</a>
<a type="application/atom+xml" href="{url}atom-log/tip/{file|urlescape}" title="Atom feed for {repo|escape}:{file}">atom</a>
</div>

<h2><a href="/">Mercurial</a> {pathdef%breadcrumb} / {file|escape} revision history</h2>

<p>navigate: <small class="navigate">{nav%filenav}</small></p>

{entries%filelogentry}

{footer}