mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-05 03:00:15 -04:00
Whisper sweet nothings to the goldmembers.
This commit is contained in:
@@ -560,3 +560,4 @@ comment_tree_version_weights = 1:1, 2:0
|
||||
# markdown message blurbs for the front page sidebar gold ad.
|
||||
# use **strong** markup for a larger font, and " \n" (<br>) to separate lines.
|
||||
goldvertisement_blurbs = "Make reddit better. Try %(reddit_gold)." "This year, give the gift of %(reddit_gold)s.|(and you should probably also give some other, better gifts)"
|
||||
goldvertisement_has_gold_blurbs = "**“Exquisite!”** \nGrab a drink and join us in [the lounge](/r/lounge)."
|
||||
|
||||
@@ -223,6 +223,7 @@ class Globals(object):
|
||||
],
|
||||
ConfigValue.messages: [
|
||||
'goldvertisement_blurbs',
|
||||
'goldvertisement_has_gold_blurbs',
|
||||
],
|
||||
}
|
||||
|
||||
|
||||
@@ -3712,6 +3712,9 @@ class GoldInfoPage(BoringPage):
|
||||
class Goldvertisement(Templated):
|
||||
def __init__(self):
|
||||
Templated.__init__(self)
|
||||
blurbs = g.live_config["goldvertisement_blurbs"]
|
||||
if not c.user.gold:
|
||||
blurbs = g.live_config["goldvertisement_blurbs"]
|
||||
else:
|
||||
blurbs = g.live_config["goldvertisement_has_gold_blurbs"]
|
||||
self.blurb = random.choice(blurbs)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user