##// 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:

r7849:d5662e93 default
r8234:27dbe534 default
Show More
changelogentry.tmpl
16 lines | 490 B | application/x-cheetah | CheetahLexer
/ templates / atom / changelogentry.tmpl
Robert Bachmann
Added support for the Atom syndication format
r5269 <entry>
<title>#desc|strip|firstline|strip|escape#</title>
Matt Mackall
atom: fix URLs used in entry GUIDs
r7849 <id>{urlbase}{url}#changeset-{node}</id>
Robert Bachmann
Added support for the Atom syndication format
r5269 <link href="{urlbase}{url}rev/{node}"/>
<author>
<name>#author|person|escape#</name>
<email>#author|email|obfuscate#</email>
</author>
<updated>#date|rfc3339date#</updated>
<published>#date|rfc3339date#</published>
<content type="xhtml">
Robert Bachmann
Atom support: replaced xhtml namespace prefix with default namespace
r5270 <div xmlns="http://www.w3.org/1999/xhtml">
<pre xml:space="preserve">#desc|escape#</pre>
</div>
Robert Bachmann
Added support for the Atom syndication format
r5269 </content>
</entry>