This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Whisper sweet nothings to the goldmembers.

  • Loading branch information...
1 parent 4024dd5 commit 099b6afa6fb9cad26bdd73f2a0b5c0b96daf822d @chromakode chromakode committed Dec 7, 2012
Showing with 6 additions and 1 deletion.
  1. +1 −0 r2/example.ini
  2. +1 −0 r2/r2/lib/app_globals.py
  3. +4 −1 r2/r2/lib/pages/pages.py
View
@@ -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 = "**&ldquo;Exquisite!&rdquo;** \nGrab a drink and join us in [the lounge](/r/lounge)."
View
@@ -223,6 +223,7 @@ class Globals(object):
],
ConfigValue.messages: [
'goldvertisement_blurbs',
+ 'goldvertisement_has_gold_blurbs',
],
}
View
@@ -3712,6 +3712,9 @@ def __init__(self, *args, **kwargs):
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)

0 comments on commit 099b6af

Please sign in to comment.