Include the subreddit name in the header of BoringPages.

This commit is contained in:
Max Goodman
2011-11-23 19:23:26 -08:00
parent 50c51c223d
commit 2aba12f6e6
2 changed files with 7 additions and 1 deletions

View File

@@ -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):

View File

@@ -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>