Subreddits: add gilded tab

This commit is contained in:
Chad Birch
2013-10-03 20:19:18 -06:00
parent 7722a73d15
commit 23bb9ad339
3 changed files with 4 additions and 0 deletions

View File

@@ -157,6 +157,7 @@ def make_map():
location='about')
connect('/comments', controller='comments', action='listing')
connect('/comments/gilded', action='listing', controller='gilded')
connect('/gilded', action='listing', controller='gilded')
connect('/search', controller='front', action='search')
mc('/u/:username', controller='redirect', action='user_redirect')

View File

@@ -53,6 +53,7 @@ menu = MenuHandler(hot = _('hot'),
more = _('more'),
relevance = _('relevance'),
controversial = _('controversial'),
gilded = _('gilded'),
confidence = _('best'),
random = _('random'),
saved = _('saved {toolbar}'),

View File

@@ -570,6 +570,8 @@ class Reddit(Templated):
NamedButton('rising'),
NamedButton('controversial'),
NamedButton('top'),
NamedButton('gilded',
aliases=['/comments/gilded']),
]
mod = False