Skip to content

Commit 6f6d4e7

Browse files
committed
Restored the New Relic integration
1 parent b19f556 commit 6f6d4e7

File tree

6 files changed

+186
-1
lines changed

6 files changed

+186
-1
lines changed

app/views/application/_nav_bar.slim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ header#masthead
55
span coderwall
66
a.menu-btn
77

8+
- unless mobile_device?
9+
a.tee-ribbon.track href="https://coderwall.com/team/new-relic" data-action="clicked tee"
10+
811
nav#nav
912
ul
1013
li = link_to(t('protips'), root_path)

app/views/notifier_mailer/welcome_email.html.haml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,18 @@
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>
3547
%tr
3648
%td.main-content-grey{style: main_content_grey}
3749
%h1{style: h1}

app/views/notifier_mailer/welcome_email.text.erb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ 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+
1418
Have ideas to improve Coderwall?
1519

1620
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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
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+
2528
-if can_see_analytics?
2629
%ul.legend
2730
%li.team-visitors
@@ -147,4 +150,4 @@
147150
%footer.page-footer
148151
%p.watermark=@team.name
149152

150-
#dimmer
153+
#dimmer

0 commit comments

Comments
 (0)