Skip to content

Commit 4ded8f9

Browse files
committedJun 18, 2014
Removed New Relic t-shirt promotion
1 parent b34fcab commit 4ded8f9

File tree

6 files changed

+2
-27
lines changed

6 files changed

+2
-27
lines changed
 

‎app/views/layouts/_navigation.html.haml

-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55
%span coderwall
66
%a.menu-btn
77

8-
-if SHOW_PROMOTION && !mobile_device?
9-
%a.tee-ribbon.track{href: 'https://coderwall.com/team/new-relic', "data-action" => 'clicked tee'}
10-
118
%nav#nav
129
%ul
1310
%li= link_to('Discover', root_path)

‎app/views/notifier/welcome_email.html.haml

-12
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,6 @@
3232
= link_to('share your own', 'https://coderwall.com/p/new', style: anchor)
3333
%li{style: list_item}
3434
== Display your achievements on your personal website or blog using our #{link_to('badge widget', api_url, style: anchor)}.
35-
%tr
36-
%td.main-content-grey{style: main_content_grey}
37-
%h1{style: h1}
38-
Love free swag?
39-
%p{style: paragraph}
40-
Level up your wardrobe with this free limited edition Coderwall tee from our friends at New Relic.
41-
%p{style: "#{paragraph}; text-align: center;"}
42-
:erb
43-
<a href="https://coderwall.com/team/new-relic"><img src="https://d3levm2kxut31z.cloudfront.net/assets/relic-tee-780a53200fbd09b7be640692b021b3a7.png" alt="free t-shirt"></a>
44-
%p{style: "#{paragraph}; text-align: center;"}
45-
:erb
46-
<a href="https://coderwall.com/team/new-relic" style="<%= anchor %>">Test drive New Relic for free and get a Coderwall tee</a>
4735
%tr
4836
%td.main-content-grey{style: main_content_grey}
4937
%h1{style: h1}

‎app/views/notifier/welcome_email.text.erb

-4
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ Here is how you can get started:
1111
* Check out the trending pro tips and share your own. <%= link_to('trending', 'https://coderwall.com/trending') %>
1212
* Display your achievements on your personal website or blog using our javascript badge: <%= api_url %>
1313

14-
Link free swag?
15-
16-
<a href="https://coderwall.com/team/new-relic">Test drive New Relic for free and get a Coderwall tee</a>
17-
1814
Have ideas to improve Coderwall?
1915

2016
Coderwall is a community supported, open product built on <a href="http://assemblymade.com">Assembly</a>. That means anyone (you!) can build new features, improve old code and help Coderwall grow. Every month revenue is shared among everyone who helps build and maintain it. Visit Coderwall on Assembly to learn more.

‎app/views/teams/premium.html.haml

+1-4
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@
2222
-content_for :mixpanel do
2323
=record_event('viewed team', :name => @team.name, 'own team' => @team.has_member?(current_user), :premium => @team.premium?, :job => @job.try(:title))
2424

25-
-if SHOW_PROMOTION && @team.slug == 'new-relic'
26-
=render :partial => 'new_relic'
27-
2825
-if can_see_analytics?
2926
%ul.legend
3027
%li.team-visitors
@@ -158,4 +155,4 @@
158155
%footer.page-footer
159156
%p.watermark=@team.name
160157

161-
#dimmer
158+
#dimmer

‎app/views/weekly_digest/weekly_digest.html.haml

+1-3
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,6 @@
6969
%a.share-tip{:href => new_protip_url(@issue), :style => "margin: 0;padding: 6px 16px;background: #d75959;margin-right: 20px;font-family: Helvetica Neue, Helvetica, Arial, sans-serif;font-size: 14px;line-height: 22px;display: inline-block;width: 120px;color: #fff;text-decoration: none;-webkit-border-radius: 4px;border-radius: 4px;text-align: center;"} Share a protip
7070
%a.browse-networks{:href => root_url(@issue), :style => "margin: 0;padding: 6px 16px;background: #3d8dcc;font-family: Helvetica Neue, Helvetica, Arial, sans-serif;font-size: 14px;line-height: 22px;display: inline-block;width: 120px;color: #fff;text-decoration: none;-webkit-border-radius: 4px;border-radius: 4px;text-align: center;"} Trending protips
7171

72-
=render :partial => 'new_relic' if SHOW_PROMOTION
73-
7472
- unless @most.nil?
7573
%table.outside{:border => "0", :cellpadding => "0", :cellspacing => "0", :style => "margin: 0 auto;padding: 0 40px 20px 40px;width: 600px;background: #fff;", :width => "600"}
7674
%tr{:style => "margin: 0;padding: 0;"}
@@ -159,4 +157,4 @@
159157
\  |  
160158
%unsubscribe{:style => "color:#3ca7dd;text-decoration:none;"}
161159
%strong
162-
%a{:href => '%unsubscribe_url%', :style => "color:#3ca7dd;text-decoration:none;"} Unsubscribe instantly
160+
%a{:href => '%unsubscribe_url%', :style => "color:#3ca7dd;text-decoration:none;"} Unsubscribe instantly

‎config/application.rb

-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ class Application < Rails::Application
4545
end
4646

4747
ENABLE_TRACKING = !ENV['MIXPANEL_TOKEN'].blank?
48-
SHOW_PROMOTION = !ENV['NEW_RELIC'].blank?
4948

5049
ActionView::Base.field_error_proc = Proc.new { |html_tag, instance|
5150
%(<span class="field_with_errors">#{html_tag}</span>).html_safe

0 commit comments

Comments
 (0)
Please sign in to comment.