From 411e281c807dfc9a81a503fb20688684deb3ad16 Mon Sep 17 00:00:00 2001 From: Chad Birch Date: Tue, 17 Sep 2013 18:38:21 -0600 Subject: [PATCH] Gold partners: add link to /r/goldbenefits thread --- r2/r2/public/static/css/goldinfo.less | 6 ++++++ r2/r2/templates/goldpartnerspage.html | 19 ++++++++++++++++++- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/r2/r2/public/static/css/goldinfo.less b/r2/r2/public/static/css/goldinfo.less index cdd86707d..9623ac1bc 100644 --- a/r2/r2/public/static/css/goldinfo.less +++ b/r2/r2/public/static/css/goldinfo.less @@ -208,6 +208,12 @@ section#about-gold, section#about-gold-partners { } } + .discussion-link { + float: left; + font-size: 1.2em; + margin-top: 1em; + } + .claim-code-button { .buy-gold-button; diff --git a/r2/r2/templates/goldpartnerspage.html b/r2/r2/templates/goldpartnerspage.html index 0dd9e2788..9202d6d35 100644 --- a/r2/r2/templates/goldpartnerspage.html +++ b/r2/r2/templates/goldpartnerspage.html @@ -42,13 +42,16 @@ ${less_stylesheet('goldinfo.less')} -<%def name="partner_item(name, how_to_use, img_src, img_url=None, description_md='', extra_class='', button_dest=None, button_label=None, claim_dest='')"> +<%def name="partner_item(name, how_to_use, img_src, img_url=None, description_md='', extra_class='', button_dest=None, button_label=None, claim_dest='', discussion_link=None)"> <%call expr="feature_item(name, img_src, description_md, extra_class, img_url)"> %if c.user.gold:
${_md(how_to_use)}
%endif + %if discussion_link: + View discussion in /r/goldbenefits + %endif %if button_dest == 'claim': %if name in thing.existing_codes: %if not claim_dest: @@ -77,6 +80,7 @@ "Claim your code below, then visit https://secure.backblaze.com/gift/XXXXXXX (replacing Xs with your code), and click 'Redeem & Download' to install the product and enter your email/password.", static('gold/partner-backblaze.png'), img_url='http://backblaze.com', + discussion_link='http://www.reddit.com/r/goldbenefits/comments/1g4wl2/backblaze_online_data_backup_for_your_electronic/', description_md='# Backblaze Online Backup\n' '3 months of free service (new accounts only).', button_dest='claim', @@ -86,6 +90,7 @@ "Claim your code below, then enter it as a Coupon code in your cart at http://bartsbakery.com to get 20% off any product.", static('gold/partner-bartsbakery.png'), img_url='http://bartsbakery.com', + discussion_link='http://www.reddit.com/r/goldbenefits/comments/1i0xcx/barts_bakery_cookies_of_the_past_in_the_future/', description_md="# Bart's Bakery Chocolate Chip Cookies\n" 'Cookies. Really good cookies. 20% off any product.', button_dest='claim')} @@ -94,6 +99,7 @@ "Claim your code below, then enter it as a Gift code in your cart at http://betabrand.com to get 20% off.", static('gold/partner-betabrand.png'), img_url='http://betabrand.com', + discussion_link='http://www.reddit.com/r/goldbenefits/comments/1gr4zk/betabrand_unique_garments_fashions/', description_md='# Betabrand Unique Online Fashions\n' 'Presently Pantless? Get 20% off any item in our collection.', button_dest='claim')} @@ -102,6 +108,7 @@ "Claim your code below, then use it during the second step of the checkout process at http://empiremayo.com.", static('gold/partner-empiremayo.png'), img_url='http://empiremayo.com', + discussion_link='http://www.reddit.com/r/goldbenefits/comments/1g4uya/empire_mayo_exquisite_mayonnaises_to_adorn_your/', description_md='# Empire Mayonnaise\n' 'Exquisite mayonnaises. 15% discount (two uses per customer).', button_dest='claim')} @@ -110,6 +117,7 @@ "Use the button below to visit Goldbely, then click *their* button and follow the process to authorize them to verify your gold status.", static('gold/partner-goldbely.png'), img_url='http://goldbely.com', + discussion_link='http://www.reddit.com/r/goldbenefits/comments/1g4v34/goldbely_gourmet_dishes_delivered_for_your/', description_md='# Goldbely Food Explorers\n' 'Gourmet dishes, delivered. $20 off purchases of $50 or more.', button_dest='https://www.goldbely.com/reddit-gold', @@ -119,6 +127,7 @@ "Claim your code below, then enter it as a Coupon Code in your cart at http://ifixit.com for $20 off a $50+ order.", static('gold/partner-ifixit.png'), img_url='http://ifixit.com', + discussion_link='http://www.reddit.com/r/goldbenefits/comments/1i0xf4/ifixit_technological_rectifications/', description_md='# iFixit\n' 'Guides, parts and tools for repairs. $20 off purchases of $50 or more.', button_dest='claim')} @@ -127,6 +136,7 @@ "Claim your code below, then use it during the second step of the checkout process at http://outgrow.me/gold.", static('gold/partner-outgrowme.png'), img_url='http://outgrow.me/gold', + discussion_link='http://www.reddit.com/r/goldbenefits/comments/1i0x4u/outgrowme_crowdfunded_commodities/', description_md='# Outgrow.me Marketplace\n' 'Successful crowd-funded items. 15% discount.', button_dest='claim')} @@ -135,6 +145,7 @@ "Watch your reddit PMs to see if you're one of the lucky Golden Tikkit recipients!", static('gold/partner-redditgifts.png'), img_url='http://redditgifts.com', + discussion_link='http://www.reddit.com/r/goldbenefits/comments/1i0x9b/redditgifts_the_reddit_bazaar/', description_md='# redditgifts marketplace\n' 'With our "Golden Tikkit" program, five lucky gold members will be getting a t-shirt and 3 months of redditgifts Elves every week.', )} @@ -143,6 +154,7 @@ "Claim your code below, then sign up and enter it at http://rover.com/redditgoldmembers to redeem your $50 credit.", static('gold/partner-rover.png'), img_url='http://rover.com/redditgoldmembers', + discussion_link='http://www.reddit.com/r/goldbenefits/comments/1lesfj/rover_canine_accomodation/', description_md='# Rover.com Dog Boarding\n' 'Dogsitting by dog lovers. $50 credit.', extra_class='new', @@ -152,6 +164,7 @@ "Claim your code below, then enter it as a coupon code in your cart at http://solrepublic.com/shop", static('gold/partner-solrepublic.png'), img_url='http://solrepublic.com', + discussion_link='http://www.reddit.com/r/goldbenefits/comments/1lesl4/sol_republic_audio_accoutrements/', description_md='# SOL Republic Headphones\n' '20% off purchases of $99 or more + one lucky gold member will receive a pair of custom Tracks HD headphones every month.', extra_class='new', @@ -161,6 +174,7 @@ "Claim your code below, then visit http://uber.com/app and enter the code while signing up.", static('gold/partner-uber.png'), img_url='http://uber.com', + discussion_link='http://www.reddit.com/r/goldbenefits/comments/1i0xhf/uber_a_chauffeur_at_your_behest/', description_md='# Uber Private Car Service\n' 'Black car service requested via mobile app. $25 off your first ride (valid only in the US).', button_dest='claim')} @@ -169,6 +183,7 @@ "Keep an eye on your reddit PMs, as once a week Uniqlo will be sending out a message to a lucky gold member. Redeem your free prize within 24 hours, and you'll be lookin' snazzy in no time!", static('gold/partner-uniqlo.png'), img_url='http://uniqlo.com/us/', + discussion_link='http://www.reddit.com/r/goldbenefits/comments/1g4v1v/uniqlo_clothes_maketh_the_human/', description_md='# Uniqlo Clothing\n' 'With our "Golden Tikkit" program, one lucky gold member will be getting some sweet new digs from Uniqlo every week.', )} @@ -177,6 +192,7 @@ "Claim your code below, then use it during the second step of the checkout process at http://urbilis.com.", static('gold/partner-urbilis.png'), img_url='http://urbilis.com', + discussion_link='http://www.reddit.com/r/goldbenefits/comments/1g4v0s/urbilis_elegant_gardening_solutions/', description_md='# Urbilis Urban Gardening\n' 'Creative & elegant gardening solutions. $10 off purchases of $50 or more.', button_dest='claim')} @@ -184,6 +200,7 @@ ${partner_item('ups', "Claim your code below.", static('gold/partner-ups.png'), + discussion_link='http://www.reddit.com/r/goldbenefits/comments/1m9up8/ups_logistics_provider/', img_url='https://wwwapps.ups.com/mcdp?loc=en_US&WT.ac=UPS_HS_MyChoiceTab_notice_Mrktg_PX_U1_en_us&WT.mc_id=UPS_HS_MyChoiceTab_notice&WT.svl=BnrMsg', description_md='# UPS® Logistics Provider and Gold Supporter\n' '3 months of free premium [UPS My Choice®](https://wwwapps.ups.com/mcdp?loc=en_US&WT.ac=UPS_HS_MyChoiceTab_notice_Mrktg_PX_U1_en_us&WT.mc_id=UPS_HS_MyChoiceTab_notice&WT.svl=BnrMsg) service to make home delivery quick and easy.',