##// END OF EJS Templates
hgwebdir: do not show RSS and Atom links for plain directories...
Angel Ezquerra -
r18046:40374059 default
parent child Browse files
Show More
@@ -304,7 +304,8 b' class hgwebdir(object):'
304 description_sort="",
304 description_sort="",
305 lastchange=d,
305 lastchange=d,
306 lastchange_sort=d[1]-d[0],
306 lastchange_sort=d[1]-d[0],
307 archives=[])
307 archives=[],
308 isdirectory=True)
308
309
309 seendirs.add(name)
310 seendirs.add(name)
310 yield row
311 yield row
@@ -294,7 +294,12 b" indexentry = '"
294 <td>{contact|obfuscate}</td>
294 <td>{contact|obfuscate}</td>
295 <td class="age">{lastchange|rfc822date}</td>
295 <td class="age">{lastchange|rfc822date}</td>
296 <td class="indexlinks">{archives%indexarchiveentry}</td>
296 <td class="indexlinks">{archives%indexarchiveentry}</td>
297 <td><div class="rss_logo"><a href="{url}rss-log">RSS</a> <a href="{url}atom-log">Atom</a></div></td>
297 <td>{if(isdirectory, '',
298 '<div class="rss_logo">
299 <a href="{url}rss-log">RSS</a> <a href="{url}atom-log">Atom</a>
300 </div>'
301 )}
302 </td>
298 </tr>\n'
303 </tr>\n'
299 indexarchiveentry = ' <a href="{url}archive/{node|short}{extension}">{type|escape}</a> '
304 indexarchiveentry = ' <a href="{url}archive/{node|short}{extension}">{type|escape}</a> '
300 index = index.tmpl
305 index = index.tmpl
@@ -247,10 +247,11 b" indexentry = '"
247 <td class="age">{lastchange|rfc822date}</td>
247 <td class="age">{lastchange|rfc822date}</td>
248 <td class="indexlinks">{archives%indexarchiveentry}</td>
248 <td class="indexlinks">{archives%indexarchiveentry}</td>
249 <td>
249 <td>
250 <div class="rss_logo">
250 {if(isdirectory, '',
251 <a href="{url}rss-log">RSS</a>
251 '<div class="rss_logo">
252 <a href="{url}atom-log">Atom</a>
252 <a href="{url}rss-log">RSS</a> <a href="{url}atom-log">Atom</a>
253 </div>
253 </div>'
254 )}
254 </td>
255 </td>
255 </tr>\n'
256 </tr>\n'
256 indexarchiveentry = '<a href="{url}archive/{node|short}{extension}">{type|escape}</a> '
257 indexarchiveentry = '<a href="{url}archive/{node|short}{extension}">{type|escape}</a> '
General Comments 0
You need to be logged in to leave comments. Login now