mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-31 09:48:01 -05:00
Include the subreddit name in the header of BoringPages.
This commit is contained in:
@@ -654,7 +654,10 @@ class BoringPage(Reddit):
|
||||
Reddit.__init__(self, **context)
|
||||
|
||||
def build_toolbars(self):
|
||||
return [PageNameNav('nomenu', title = self.pagename)]
|
||||
if not isinstance(c.site, DefaultSR) and not c.cname:
|
||||
return [PageNameNav('subreddit', title = self.pagename)]
|
||||
else:
|
||||
return [PageNameNav('nomenu', title = self.pagename)]
|
||||
|
||||
class HelpPage(BoringPage):
|
||||
def build_toolbars(self):
|
||||
|
||||
@@ -25,6 +25,9 @@
|
||||
<%def name="subreddit()">
|
||||
<span class="hover pagename redditname">
|
||||
${plain_link(c.site.name, c.site.path, _sr_path=False)}
|
||||
% if hasattr(thing, "title"):
|
||||
: ${thing.title}
|
||||
% endif
|
||||
</span>
|
||||
</%def>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user