Add quick support for an announcement message in the .ini.

This commit is contained in:
Max Goodman
2011-09-29 15:50:13 -07:00
parent 5a7d823e1a
commit e853b9285f

View File

@@ -153,8 +153,11 @@ class Reddit(Templated):
elif (c.firsttime == 'mobile_suggest' and
c.render_style != 'compact'):
infotext = strings.iphone_first
elif g.announcement_message:
infotext = g.announcement_message
elif c.firsttime and c.site.firsttext:
infotext = c.site.firsttext
if infotext:
self.infobar = InfoBar(message = infotext)