Mercurial > hg
annotate mercurial/templates/monoblue/filerevision.tmpl @ 14046:b24e5a708fad
web: Made elapsed time calculation dynamic (javascript).
This allow safe caching of the pages by the browser and still display the right
amount of elapsed time upon page refresh.
If javascript is disabled, absolute time is displayed, leaving it readable.
All the templates have been updated.
author | Benoit Allard <benoit@aeteurope.nl> |
---|---|
date | Thu, 28 Apr 2011 17:02:39 +0200 |
parents | b5b84dd43613 |
children | fe9d36a6853e |
rev | line source |
---|---|
8430
8b47efdf40ee
monoblue: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
8355
diff
changeset
|
1 {header} |
7111 | 2 <title>{repo|escape}: {file|escape}@{node|short}</title> |
8430
8b47efdf40ee
monoblue: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
8355
diff
changeset
|
3 <link rel="alternate" type="application/atom+xml" href="{url}atom-log" title="Atom feed for {repo|escape}"/> |
8b47efdf40ee
monoblue: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
8355
diff
changeset
|
4 <link rel="alternate" type="application/rss+xml" href="{url}rss-log" title="RSS feed for {repo|escape}"/> |
7111 | 5 </head> |
6 | |
7 <body> | |
8 <div id="container"> | |
9 <div class="page-header"> | |
8430
8b47efdf40ee
monoblue: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
8355
diff
changeset
|
10 <h1><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / file revision</h1> |
7111 | 11 |
12 <form action="{url}log"> | |
13 {sessionvars%hiddenformentry} | |
14 <dl class="search"> | |
15 <dt><label>Search: </label></dt> | |
16 <dd><input type="text" name="rev" /></dd> | |
17 </dl> | |
18 </form> | |
19 | |
20 <ul class="page-nav"> | |
21 <li><a href="{url}summary{sessionvars%urlparameter}">summary</a></li> | |
22 <li><a href="{url}shortlog{sessionvars%urlparameter}">shortlog</a></li> | |
23 <li><a href="{url}changelog{sessionvars%urlparameter}">changelog</a></li> | |
24 <li><a href="{url}graph/{node|short}{sessionvars%urlparameter}">graph</a></li> | |
25 <li><a href="{url}tags{sessionvars%urlparameter}">tags</a></li> | |
13860
b5b84dd43613
hgweb: add separate bookmarks listing to monoblue theme (based on 38c9837b1f75)
Yuya Nishihara <yuya@tcha.org>
parents:
12680
diff
changeset
|
26 <li><a href="{url}bookmarks{sessionvars%urlparameter}">bookmarks</a></li> |
8355
5ba798f339c8
monoblue: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
8235
diff
changeset
|
27 <li><a href="{url}branches{sessionvars%urlparameter}">branches</a></li> |
8430
8b47efdf40ee
monoblue: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
8355
diff
changeset
|
28 <li><a href="{url}file/{node|short}{path|urlescape}{sessionvars%urlparameter}">files</a></li> |
12680
d664547ef540
hgweb: add help link to templates missed in ead4e21f49f1
Augie Fackler <durin42@gmail.com>
parents:
9999
diff
changeset
|
29 <li><a href="{url}help{sessionvars%urlparameter}">help</a></li> |
7111 | 30 </ul> |
31 </div> | |
32 | |
33 <ul class="submenu"> | |
34 <li class="current">file</li> | |
8430
8b47efdf40ee
monoblue: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
8355
diff
changeset
|
35 <li><a href="{url}log/{node|short}/{file|urlescape}{sessionvars%urlparameter}">revisions</a></li> |
8b47efdf40ee
monoblue: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
8355
diff
changeset
|
36 <li><a href="{url}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">annotate</a></li> |
7111 | 37 <li><a href="{url}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">diff</a></li> |
8430
8b47efdf40ee
monoblue: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
8355
diff
changeset
|
38 <li><a href="{url}raw-file/{node|short}/{file|urlescape}">raw</a></li> |
7111 | 39 </ul> |
40 | |
41 <h2 class="no-link no-border">{file|escape}@{node|short}</h2> | |
8430
8b47efdf40ee
monoblue: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
8355
diff
changeset
|
42 <h3 class="changeset">{file|escape}</h3> |
14046
b24e5a708fad
web: Made elapsed time calculation dynamic (javascript).
Benoit Allard <benoit@aeteurope.nl>
parents:
13860
diff
changeset
|
43 <p class="changeset-age age">{date|date}</p> |
7111 | 44 |
45 <dl class="overview"> | |
46 <dt>author</dt> | |
8430
8b47efdf40ee
monoblue: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
8355
diff
changeset
|
47 <dd>{author|obfuscate}</dd> |
7111 | 48 <dt>date</dt> |
8430
8b47efdf40ee
monoblue: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
8355
diff
changeset
|
49 <dd>{date|date}</dd> |
8b47efdf40ee
monoblue: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
8355
diff
changeset
|
50 {branch%filerevbranch} |
7111 | 51 <dt>changeset {rev}</dt> |
8430
8b47efdf40ee
monoblue: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
8355
diff
changeset
|
52 <dd><a class="list" href="{url}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a></dd> |
8b47efdf40ee
monoblue: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
8355
diff
changeset
|
53 {parent%filerevparent} |
8b47efdf40ee
monoblue: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
8355
diff
changeset
|
54 {child%filerevchild} |
7111 | 55 <dt>permissions</dt> |
8430
8b47efdf40ee
monoblue: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
8355
diff
changeset
|
56 <dd>{permissions|permissions}</dd> |
7111 | 57 </dl> |
58 | |
8235
89bc3946c8f3
hgweb: use "nonempty" filter in templates for the changelog message
Rocco Rutte <pdmef@gmx.net>
parents:
7111
diff
changeset
|
59 <p class="description">{desc|strip|escape|addbreaks|nonempty}</p> |
7111 | 60 |
61 <div class="source"> | |
8430
8b47efdf40ee
monoblue: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
8355
diff
changeset
|
62 {text%fileline} |
7111 | 63 </div> |
64 | |
8430
8b47efdf40ee
monoblue: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
8355
diff
changeset
|
65 {footer} |