Skip to content
This repository
Browse code

Whisper sweet nothings to the goldmembers.

  • Loading branch information...
commit 099b6afa6fb9cad26bdd73f2a0b5c0b96daf822d 1 parent 4024dd5
Max Goodman authored December 07, 2012
1  r2/example.ini
@@ -560,3 +560,4 @@ comment_tree_version_weights = 1:1, 2:0
560 560
 # markdown message blurbs for the front page sidebar gold ad.
561 561
 # use **strong** markup for a larger font, and "  \n" (<br>) to separate lines.
562 562
 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)"
  563
+goldvertisement_has_gold_blurbs = "**&ldquo;Exquisite!&rdquo;**  \nGrab a drink and join us in [the lounge](/r/lounge)."
1  r2/r2/lib/app_globals.py
@@ -223,6 +223,7 @@ class Globals(object):
223 223
         ],
224 224
         ConfigValue.messages: [
225 225
             'goldvertisement_blurbs',
  226
+            'goldvertisement_has_gold_blurbs',
226 227
         ],
227 228
     }
228 229
 
5  r2/r2/lib/pages/pages.py
@@ -3712,6 +3712,9 @@ def __init__(self, *args, **kwargs):
3712 3712
 class Goldvertisement(Templated):
3713 3713
     def __init__(self):
3714 3714
         Templated.__init__(self)
3715  
-        blurbs = g.live_config["goldvertisement_blurbs"]
  3715
+        if not c.user.gold:
  3716
+            blurbs = g.live_config["goldvertisement_blurbs"]
  3717
+        else:
  3718
+            blurbs = g.live_config["goldvertisement_has_gold_blurbs"]
3716 3719
         self.blurb = random.choice(blurbs)
3717 3720
 

0 notes on commit 099b6af

Please sign in to comment.
Something went wrong with that request. Please try again.