comparison mercurial/templates/monoblue/map @ 18046:40374059d227

hgwebdir: do not show RSS and Atom links for plain directories Up until now the templates that show RSS and Atom feeds on the "repository lists" (i.e. gitweb and monoblue) showed them for all entries, including regular folders. Clicking on those "folder RSS" links would result in an error page being shown. This patch hides those links for regular folders.
author Angel Ezquerra <angel.ezquerra@gmail.com>
date Tue, 27 Nov 2012 22:24:02 +0100
parents 5c64ce6168da
children bebb05a7e249
comparison
equal deleted inserted replaced
18045:add2f9ddcfb5 18046:40374059d227
245 <td>{description}</td> 245 <td>{description}</td>
246 <td>{contact|obfuscate}</td> 246 <td>{contact|obfuscate}</td>
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> '
257 index = index.tmpl 258 index = index.tmpl
258 urlparameter = '{separator}{name}={value|urlescape}' 259 urlparameter = '{separator}{name}={value|urlescape}'