##// END OF EJS Templates
templatefilters: add "nonempty" template filter...
templatefilters: add "nonempty" template filter It ensures that at least "(none)" is returned in case the argument passed is None or ''. This is primarily useful to render empty changelog messages for hgweb but may be useful for others, too.

File last commit:

r6693:7f58dec6 default
r8234:27dbe534 default
Show More
filerevision.tmpl
59 lines | 2.0 KiB | application/x-cheetah | CheetahLexer
Brendan Cully
Move gitweb theme into subdirectory
r3234 #header#
Brendan Cully
gitweb: add revision numbers to filerevision changeset links
r3476 <title>{repo|escape}: {file|escape}@{node|short}</title>
Robert Bachmann
Added support for the Atom syndication format
r5269 <link rel="alternate" type="application/atom+xml"
Kevin Christen
Fixed numerous XHTML problems that caused validation errors and warnings....
r5820 href="{url}atom-log" title="Atom feed for #repo|escape#"/>
Brendan Cully
Move gitweb theme into subdirectory
r3234 <link rel="alternate" type="application/rss+xml"
Kevin Christen
Fixed numerous XHTML problems that caused validation errors and warnings....
r5820 href="{url}rss-log" title="RSS feed for #repo|escape#"/>
Brendan Cully
Move gitweb theme into subdirectory
r3234 </head>
<body>
<div class="page_header">
Kevin Christen
Fixed numerous XHTML problems that caused validation errors and warnings....
r5820 <a href="http://www.selenic.com/mercurial/" title="Mercurial" style="float: right;">Mercurial</a><a href="{url}summary{sessionvars%urlparameter}">#repo|escape#</a> / file revision
Brendan Cully
Move gitweb theme into subdirectory
r3234 </div>
<div class="page_nav">
Thomas Arendsen Hein
hgweb: Apply the new method of passing session variables to links.
r3363 <a href="{url}summary{sessionvars%urlparameter}">summary</a> |
<a href="{url}shortlog{sessionvars%urlparameter}">shortlog</a> |
<a href="{url}log{sessionvars%urlparameter}">changelog</a> |
Augie Fackler
hgweb: Fix up non-coal styles to support graph.
r6693 <a href="{url}graph{sessionvars%urlparameter}">graph</a> |
Thomas Arendsen Hein
hgweb: Apply the new method of passing session variables to links.
r3363 <a href="{url}tags{sessionvars%urlparameter}">tags</a> |
Thomas Arendsen Hein
Renamed "manifest" to "files" in web templates....
r6177 <a href="{url}file/#node|short##path|urlescape#{sessionvars%urlparameter}">files</a> |
Thomas Arendsen Hein
hgweb: Apply the new method of passing session variables to links.
r3363 <a href="{url}rev/#node|short#{sessionvars%urlparameter}">changeset</a> |
Brendan Cully
hgweb: convert gitweb to NWI
r3271 file |
Thomas Arendsen Hein
hgweb: Apply the new method of passing session variables to links.
r3363 <a href="{url}log/{node|short}/#file|urlescape#{sessionvars%urlparameter}">revisions</a> |
<a href="{url}annotate/{node|short}/#file|urlescape#{sessionvars%urlparameter}">annotate</a> |
<a href="{url}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">diff</a> |
Brendan Cully
hgweb: fix filerevision raw URL
r3279 <a href="{url}raw-file/{node|short}/#file|urlescape#">raw</a><br/>
Brendan Cully
Move gitweb theme into subdirectory
r3234 </div>
<div class="title">#file|escape#</div>
Brendan Cully
hgweb: add changeset description to file revision page
r3395 <div class="title_text">
Josef "Jeff" Sipek
gitweb: file rev template: Display metadata in same order as changeset does
r4465 <table cellspacing="0">
<tr>
<td>author</td>
<td>#author|obfuscate#</td></tr>
Brendan Cully
Move gitweb theme into subdirectory
r3234 <tr>
Josef "Jeff" Sipek
gitweb: file rev template: Display metadata in same order as changeset does
r4465 <td></td>
<td>#date|date# (#date|age# ago)</td></tr>
Florent Guillaume
gitweb: show branches in most of the templates
r6250 #branch%filerevbranch#
Josef "Jeff" Sipek
gitweb: file rev template: Display metadata in same order as changeset does
r4465 <tr>
<td>changeset {rev}</td>
<td style="font-family:monospace"><a class="list" href="{url}rev/#node|short#{sessionvars%urlparameter}">#node|short#</a></td></tr>
Thomas Arendsen Hein
gitweb: Fixed parent/child links when viewing a file revision.
r3366 #parent%filerevparent#
#child%filerevchild#
Brendan Cully
Move gitweb theme into subdirectory
r3234 <tr>
Josef "Jeff" Sipek
gitweb: file rev template: Display metadata in same order as changeset does
r4465 <td>permissions</td>
<td style="font-family:monospace">#permissions|permissions#</td></tr>
Brendan Cully
Move gitweb theme into subdirectory
r3234 </table>
Brendan Cully
hgweb: add changeset description to file revision page
r3395 </div>
<div class="page_path">
{desc|strip|escape|addbreaks}
</div>
Brendan Cully
Move gitweb theme into subdirectory
r3234
<div class="page_body">
#text%fileline#
</div>
#footer#