1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-04 13:43:48 +00:00

Added ad back with conditions

This commit is contained in:
2016-01-08 15:19:17 +00:00
parent 1ed4caba0c
commit 76eef7ce87
2 changed files with 7 additions and 4 deletions

View File

@@ -1,6 +1,10 @@
<% if Rails.env.production? %>
<div class="ad">
<% if !user_signed_in? %>
<% if !current_page?(root_url) and !current_page?(new_user_session_url) and !params[:print] %>
<script type='text/javascript' src='//eclkmpbn.com/adServe/banners?tid=85597_138467_6&size=158x21'></script>
<% end %>
<% end %>
</div>
<% end %>
<div class="afs_ads">&nbsp;</div>