From cf40ae190661bdfaf915a6a5ec81fc3708df0166 Mon Sep 17 00:00:00 2001 From: Brian Simpson Date: Fri, 13 Sep 2013 06:28:27 -0400 Subject: [PATCH] CPM is new message. --- r2/r2/lib/pages/pages.py | 5 ++++- r2/r2/public/static/css/reddit.less | 1 - r2/r2/templates/promotelinkform.html | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/r2/r2/lib/pages/pages.py b/r2/r2/lib/pages/pages.py index d9314ef3d..ab1f213c2 100755 --- a/r2/r2/lib/pages/pages.py +++ b/r2/r2/lib/pages/pages.py @@ -3386,7 +3386,10 @@ class PromoteLinkForm(Templated): sr_inventory[''] = sr_inventory[Frontpage.name] del sr_inventory[Frontpage.name] self.inventory = sr_inventory - + message = _("reddit ads are now sold on a CPM basis. " + "[Here's how it works](%(link)s)") + message %= {'link': 'http://www.slideshare.net/reddit/how-to-use-reddits-selfserve-advertising-platform'} + self.infobar = InfoBar(message=message) class PromoAdminTool(Reddit): def __init__(self, query_type=None, launchdate=None, start=None, end=None, *a, **kw): diff --git a/r2/r2/public/static/css/reddit.less b/r2/r2/public/static/css/reddit.less index fb5486639..9a1396bb5 100755 --- a/r2/r2/public/static/css/reddit.less +++ b/r2/r2/public/static/css/reddit.less @@ -5031,7 +5031,6 @@ div #campaign-field { .fancy-settings h2 { font-size: 200%; font-weight:normal; color: #999; margin:10px 5px; } .fancy-settings h1 strong { font-weight:bold; color: #666; } .create-promotion .sitetable { margin: 5px; } -.create-promotion .infobar { margin-left: 12px; width: 479px; background-color: #fbd8d8; margin-bottom: 10px; } .create-promotion .create-promo .save-button { float:right; margin-right: 3px; } .create-promotion .create-promo .save-button button { diff --git a/r2/r2/templates/promotelinkform.html b/r2/r2/templates/promotelinkform.html index b7fb3cce2..0d9dd7e15 100644 --- a/r2/r2/templates/promotelinkform.html +++ b/r2/r2/templates/promotelinkform.html @@ -70,6 +70,8 @@ ${unsafe(js.use('sponsored'))} ${thing.listing} + ${thing.infobar} +
${campaign_dashboard()}