mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 16:28:01 -05:00
Move front page "saved" tab to listing chooser.
This commit is contained in:
@@ -703,6 +703,9 @@ class UserController(ListingController):
|
||||
c.user_is_admin)):
|
||||
return self.abort403()
|
||||
|
||||
if where == 'saved':
|
||||
self.show_chooser = True
|
||||
|
||||
check_cheating('user')
|
||||
|
||||
self.vuser = vuser
|
||||
|
||||
@@ -539,9 +539,6 @@ class Reddit(Templated):
|
||||
NamedButton('top'),
|
||||
]
|
||||
|
||||
if c.user_is_loggedin:
|
||||
main_buttons.append(NamedButton('saved', False))
|
||||
|
||||
mod = False
|
||||
if c.user_is_loggedin:
|
||||
mod = bool(c.user_is_admin
|
||||
@@ -4099,6 +4096,7 @@ class ListingChooser(Templated):
|
||||
description=_("your front page"))
|
||||
self.add_item("other", _("everything"), '/r/all',
|
||||
description=_("from all subreddits"))
|
||||
self.add_item("other", _("saved"), '/user/%s/saved' % c.user.name)
|
||||
|
||||
if c.user_is_loggedin:
|
||||
multis = LabeledMulti.by_owner(c.user)
|
||||
|
||||
Reference in New Issue
Block a user