##// END OF EJS Templates
hgweb: add strip and rstrip filters to handle summary
TK Soh -
r1445:56281e08 default
parent child Browse files
Show More
@@ -164,6 +164,8 class templater:
164 164
165 165 common_filters = {
166 166 "escape": cgi.escape,
167 "strip": lambda x: x.strip(),
168 "rstrip": lambda x: x.rstrip(),
167 169 "age": age,
168 170 "date": lambda x: util.datestr(x),
169 171 "addbreaks": nl2br,
@@ -1,7 +1,7
1 1 <item>
2 <title>#desc|firstline|escape#</title>
2 <title>#desc|strip|firstline|rstrip|escape#</title>
3 3 <link>#url#?cs=#node|short#</link>
4 <description><![CDATA[#desc|escape|addbreaks#]]></description>
4 <description><![CDATA[#desc|strip|escape|addbreaks#]]></description>
5 5 <author>#author|obfuscate#</author>
6 6 <pubDate>#date|rfc822date#</pubDate>
7 7 </item>
@@ -1,7 +1,7
1 1 <table class="changelogEntry parity#parity#">
2 2 <tr>
3 3 <th class="age" width="15%">#date|age# ago:</th>
4 <th class="firstline">#desc|firstline|escape#</th>
4 <th class="firstline">#desc|strip|firstline|escape#</th>
5 5 </tr>
6 6 <tr>
7 7 <th class="changesetRev">changeset #rev#:</th>
@@ -11,7 +11,7
11 11 #archives%archiveentry#
12 12 </div>
13 13
14 <h2>changeset: #desc|escape|firstline#</h2>
14 <h2>changeset: #desc|strip|escape|firstline#</h2>
15 15
16 16 <table id="changesetEntry">
17 17 <tr>
@@ -32,7 +32,7
32 32 <td class="files">#files#</td></tr>
33 33 <tr>
34 34 <th class="description">description:</th>
35 <td class="description">#desc|escape|addbreaks#</td>
35 <td class="description">#desc|strip|escape|addbreaks#</td>
36 36 </tr>
37 37 </table>
38 38
@@ -1,7 +1,7
1 1 <item>
2 <title>#desc|firstline|escape#</title>
2 <title>#desc|strip|firstline|rstrip|escape#</title>
3 3 <link>#url#?f=#filenode|short#;file=#file#</link>
4 <description><![CDATA[#desc|escape|addbreaks#]]></description>
4 <description><![CDATA[#desc|strip|escape|addbreaks#]]></description>
5 5 <author>#author|obfuscate#</author>
6 6 <pubDate>#date|rfc822date#</pubDate>>
7 7 </item>
@@ -1,7 +1,7
1 1 <table class="parity#parity#" width="100%" cellspacing="0" cellpadding="0">
2 2 <tr>
3 3 <td align="right" width="15%"><b>#date|age# ago:&nbsp;</b></td>
4 <td><b><a href="?cs=#node|short#">#desc|firstline|escape#</a></b></td></tr>
4 <td><b><a href="?cs=#node|short#">#desc|strip|firstline|escape#</a></b></td></tr>
5 5 <tr>
6 6 <td align="right">revision #filerev#:&nbsp;</td>
7 7 <td><a href="?f=#filenode|short#;file=#file#">#filenode|short#</a>
General Comments 0
You need to be logged in to leave comments. Login now