comparison mercurial/hgweb/hgwebdir_mod.py @ 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 d51364b318ea
children 2c1276825e93
comparison
equal deleted inserted replaced
18045:add2f9ddcfb5 18046:40374059d227
302 url=url, 302 url=url,
303 description="", 303 description="",
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
311 continue 312 continue
312 313