diff --git a/r2/r2/public/static/gold/partner-empiremayo.png b/r2/r2/public/static/gold/partner-empiremayo.png new file mode 100644 index 000000000..951943910 Binary files /dev/null and b/r2/r2/public/static/gold/partner-empiremayo.png differ diff --git a/r2/r2/public/static/gold/partner-goldbely.png b/r2/r2/public/static/gold/partner-goldbely.png new file mode 100644 index 000000000..30c92cfbf Binary files /dev/null and b/r2/r2/public/static/gold/partner-goldbely.png differ diff --git a/r2/r2/public/static/gold/partner-uniqlo.png b/r2/r2/public/static/gold/partner-uniqlo.png new file mode 100644 index 000000000..1f9953025 Binary files /dev/null and b/r2/r2/public/static/gold/partner-uniqlo.png differ diff --git a/r2/r2/public/static/gold/partner-urbilis.png b/r2/r2/public/static/gold/partner-urbilis.png new file mode 100644 index 000000000..ffff9be58 Binary files /dev/null and b/r2/r2/public/static/gold/partner-urbilis.png differ diff --git a/r2/r2/templates/goldpartnerspage.html b/r2/r2/templates/goldpartnerspage.html index d9b862485..b34334fc7 100644 --- a/r2/r2/templates/goldpartnerspage.html +++ b/r2/r2/templates/goldpartnerspage.html @@ -33,19 +33,27 @@ ${less_stylesheet('goldinfo.less')} -<%def name="partner_item(name, how_to_use, img_src, description_md, extra_class='')"> +<%def name="partner_item(name, how_to_use, img_src, description_md, extra_class='', button_dest=None, button_label=None)"> <%call expr="feature_item(name, img_src, description_md, extra_class)"> %if c.user.gold:
${_md(how_to_use)}
%endif - %if name in thing.existing_codes: - - %elif c.user.gold: - ${_('claim code')} - %else: - ${_('buy reddit gold')} + %if button_dest == 'claim': + %if name in thing.existing_codes: + + %elif c.user.gold: + ${button_label or _('claim code')} + %else: + ${_('buy reddit gold')} + %endif + %elif button_dest: + %if c.user.gold: + ${button_label or _('visit partner')} + %else: + ${_('buy reddit gold')} + %endif %endif @@ -60,8 +68,41 @@ static('gold/partner-backblaze.png'), _('# Backblaze Online Backup\n' '3 months of free service from Backblaze Online Backup.'), + 'new', + 'claim')} + + ${partner_item('empiremayo', + _("Claim your code below, then use it during the second step of the checkout process at http://empiremayo.com."), + static('gold/partner-empiremayo.png'), + _('# Empire Mayonnaise\n' + '15% discount (two uses per customer).'), + 'new', + 'claim')} + + ${partner_item('goldbely', + _("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'), + _('# Goldbely Food Explorers\n' + '$20 off purchases of $50 or more.'), + 'new', + 'https://www.goldbely.com/reddit-gold', + _('visit Goldbely'))} + + ${partner_item('uniqlo', + _("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'), + _('# Uniqlo Clothing\n' + 'With our "Golden Tikkit" program, one lucky gold member will be getting some sweet new digs from Uniqlo every week.'), 'new')} + ${partner_item('urbilis', + _("Claim your code below, then use it during the second step of the checkout process at http://urbilis.com."), + static('gold/partner-urbilis.png'), + _('# Urbilis Urban Gardening\n' + '$10 off purchases of $50 or more.'), + 'new', + 'claim')} + ${goldinfo_footer()}