mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-11 07:56:28 +00:00
Removed sidebars, added tournament navbar, and removed chitika ads
This commit is contained in:
9
app/views/layouts/_analytics.html.erb
Normal file
9
app/views/layouts/_analytics.html.erb
Normal file
@@ -0,0 +1,9 @@
|
||||
<script>
|
||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||||
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
||||
|
||||
ga('create', 'UA-64366913-2', 'auto');
|
||||
ga('send', 'pageview');
|
||||
</script>
|
||||
@@ -1,77 +0,0 @@
|
||||
|
||||
|
||||
|
||||
<!-- sidebar -->
|
||||
<% if @tournament %>
|
||||
<div class="" style="padding-right: 1%;">
|
||||
<h4>Tournament Links</h4>
|
||||
<ul>
|
||||
<li><%= link_to "Tournament home" , "/tournaments/#{@tournament.id}/" %></li>
|
||||
<li><%= link_to "Brackets" , "/tournaments/#{@tournament.id}/brackets" %></li>
|
||||
<li><%= link_to "Bout Board" , "/tournaments/#{@tournament.id}/up_matches" %></li>
|
||||
<li><%= link_to "Team Scores" , "/tournaments/#{@tournament.id}/team_scores" %></li>
|
||||
</ul>
|
||||
</div>
|
||||
<% if can? :manage, @tournament %>
|
||||
<br><br>
|
||||
<div class="" style="padding-right: 1%;">
|
||||
<h4>Tournament Director Links</h4>
|
||||
|
||||
<br><strong>Pages</strong><br>
|
||||
<br><%= link_to "Weigh In Page" , "/tournaments/#{@tournament.id}/weigh_in" %>
|
||||
<br><%= link_to "All Matches" , "/tournaments/#{@tournament.id}/matches" %>
|
||||
<br><%= link_to "Full Screen Bout Board" , "/tournaments/#{@tournament.id}/up_matches?print=true" , target: :_blank %>
|
||||
<br>Bout Sheets: <ul>
|
||||
<% if @tournament.total_rounds > 0 %>
|
||||
<% 1.upto(@tournament.total_rounds) do |round| %>
|
||||
<li><%= link_to "Round #{round}" , "/tournaments/#{@tournament.id}/bout_sheets?round=#{round}&print=true" , target: :_blank %></li>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<li><%= link_to "All Rounds" , "/tournaments/#{@tournament.id}/bout_sheets?round=All&print=true" , target: :_blank %></li>
|
||||
</ul>
|
||||
<br><%= link_to "Deduct Team Points" , "/tournaments/#{@tournament.id}/teampointadjust" %>
|
||||
<% if can? :destroy, @tournament %>
|
||||
<br><%= link_to "Tournament Delegation" , "/tournaments/#{@tournament.id}/delegate" %>
|
||||
<% end %>
|
||||
<br><%= link_to "School Delegation" , "/tournaments/#{@tournament.id}/school_delegate"%>
|
||||
|
||||
<br><br><strong>Time Savers</strong><br>
|
||||
<br><%= link_to "Create High School Weights" , "/tournaments/#{@tournament.id}/create_custom_weights?customValue=hs",data: { confirm: 'Are you sure? This will delete all current weights.' } %>
|
||||
|
||||
<br><br><strong>Tournament Actions</strong><br>
|
||||
<br><%= link_to "Generate Brackets" , "/tournaments/#{@tournament.id}/generate_matches", data: { confirm: 'Are you sure? This will delete all current matches.' } %>
|
||||
|
||||
</div>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<br>
|
||||
<% if Rails.env.production? %>
|
||||
<div class="adLNav">
|
||||
<script type="text/javascript">
|
||||
if(WURFL.is_mobile){
|
||||
//Mobile and tablet ad
|
||||
(function (){
|
||||
if(window.CHITIKA===undefined) {window.CHITIKA = {'units' :[]};};
|
||||
var unit = {"calltype":"async[2]","publisher":"cwimer","width":468,"height":60,"sid":"Chitika Default"};
|
||||
var placement_id = window.CHITIKA.units.length;
|
||||
window.CHITIKA.units.push(unit);
|
||||
document.write('<div id="chitikaAdBlock-' + placement_id + '"></div>');
|
||||
}());
|
||||
} else {
|
||||
//Desktop ad
|
||||
(function (){
|
||||
if(window.CHITIKA===undefined) {window.CHITIKA = {'units' :[]};};
|
||||
var unit = {"calltype":"async[2]","publisher":"cwimer","width":160,"height":160,"sid":"Chitika Default"};
|
||||
var placement_id = window.CHITIKA.units.length;
|
||||
window.CHITIKA.units.push(unit);
|
||||
document.write('<div id="chitikaAdBlock-' + placement_id + '"></div>');
|
||||
}());
|
||||
}
|
||||
</script>
|
||||
<script type="text/javascript" src="//cdn.chitika.net/getads.js" async></script>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
|
||||
|
||||
|
||||
49
app/views/layouts/_tournament-navbar.html.erb
Normal file
49
app/views/layouts/_tournament-navbar.html.erb
Normal file
@@ -0,0 +1,49 @@
|
||||
<% if @tournament %>
|
||||
<nav class="navbar navbar-default navbar-lower" role="navigation">
|
||||
<div class="container">
|
||||
<div class="collapse navbar-collapse">
|
||||
<ul class="nav navbar-nav">
|
||||
<li><%= link_to "#{@tournament.name} Home" , "/tournaments/#{@tournament.id}/" %></li>
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle" data-toggle="dropdown" href="#">Brackets
|
||||
<span class="caret"></span></a>
|
||||
<ul class="dropdown-menu">
|
||||
<% @tournament.weights.sort_by{|weight| weight.max }.each do |weight| %>
|
||||
<li><%= link_to "#{weight.max}" , "/tournaments/#{@tournament.id}/brackets/#{weight.id}" %></li>
|
||||
<% end %>
|
||||
<li><%= link_to "All Brackets (Printable)", "/tournaments/#{@tournament.id}/all_brackets?print=true", target: :_blank %></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><%= link_to "Bout Board" , "/tournaments/#{@tournament.id}/up_matches" %></li>
|
||||
<li><%= link_to "Team Scores" , "/tournaments/#{@tournament.id}/team_scores" %></li>
|
||||
<% if can? :manage, @tournament %>
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle" data-toggle="dropdown" href="#director">Tournament Director Links
|
||||
<span class="caret"></span></a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><strong>Pages</strong></li>
|
||||
<li><%= link_to "Weigh In Page" , "/tournaments/#{@tournament.id}/weigh_in" %></li>
|
||||
<li><%= link_to "All Matches" , "/tournaments/#{@tournament.id}/matches" %></li>
|
||||
<li><%= link_to "Full Screen Bout Board" , "/tournaments/#{@tournament.id}/up_matches?print=true" , target: :_blank %></li>
|
||||
<li><%= link_to "Deduct Team Points" , "/tournaments/#{@tournament.id}/teampointadjust" %></li>
|
||||
<% if can? :destroy, @tournament %>
|
||||
<li><%= link_to "Tournament Delegation" , "/tournaments/#{@tournament.id}/delegate" %></li>
|
||||
<% end %>
|
||||
<li><%= link_to "School Delegation" , "/tournaments/#{@tournament.id}/school_delegate"%></li>
|
||||
<% if @tournament.total_rounds > 0 %>
|
||||
<li><strong>Printable Bout Sheets</strong></li>
|
||||
<% 1.upto(@tournament.total_rounds) do |round| %>
|
||||
<li><%= link_to "Print Round #{round}" , "/tournaments/#{@tournament.id}/bout_sheets?round=#{round}&print=true" , target: :_blank %></li>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<li><strong>Time Savers</strong></li>
|
||||
<li><%= link_to "Create High School Weights (106-285)" , "/tournaments/#{@tournament.id}/create_custom_weights?customValue=hs",data: { confirm: 'Are you sure? This will delete all current weights.' } %></li>
|
||||
<li><strong>Tournament Actions</strong></li>
|
||||
<li><%= link_to "Generate Brackets" , "/tournaments/#{@tournament.id}/generate_matches", data: { confirm: 'Are you sure? This will delete all current matches.' } %></li>
|
||||
</ul>
|
||||
<% end %>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
<% end %>
|
||||
@@ -1,27 +1,6 @@
|
||||
<% if Rails.env.production? %>
|
||||
<div class="adRnav">
|
||||
<script type="text/javascript">
|
||||
if(WURFL.is_mobile){
|
||||
//Mobile and tablet ad
|
||||
(function (){
|
||||
if(window.CHITIKA===undefined) {window.CHITIKA = {'units' :[]};};
|
||||
var unit = {"calltype":"async[2]","publisher":"cwimer","width":468,"height":60,"sid":"Chitika Default"};
|
||||
var placement_id = window.CHITIKA.units.length;
|
||||
window.CHITIKA.units.push(unit);
|
||||
document.write('<div id="chitikaAdBlock-' + placement_id + '"></div>');
|
||||
}());
|
||||
} else {
|
||||
//Desktop ad
|
||||
(function (){
|
||||
if(window.CHITIKA===undefined) {window.CHITIKA = {'units' :[]};};
|
||||
var unit = {"calltype":"async[2]","publisher":"cwimer","width":120,"height":600,"sid":"Chitika Default"};
|
||||
var placement_id = window.CHITIKA.units.length;
|
||||
window.CHITIKA.units.push(unit);
|
||||
document.write('<div id="chitikaAdBlock-' + placement_id + '"></div>');
|
||||
}());
|
||||
}
|
||||
</script>
|
||||
<script type="text/javascript" src="//cdn.chitika.net/getads.js" async></script>
|
||||
|
||||
</div>
|
||||
<% end %>
|
||||
<div class="afs_ads"> </div>
|
||||
@@ -14,16 +14,7 @@
|
||||
<head>
|
||||
<title>WrestlingDev</title>
|
||||
<% if Rails.env.production? %>
|
||||
<script>
|
||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||||
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
||||
|
||||
ga('create', 'UA-64366913-2', 'auto');
|
||||
ga('send', 'pageview');
|
||||
|
||||
</script>
|
||||
<%= render layouts/analytics %>
|
||||
<% end %>
|
||||
<%= stylesheet_link_tag "application", media: "all",
|
||||
"data-turbolinks-track" => true %>
|
||||
@@ -38,23 +29,22 @@
|
||||
<%= render 'layouts/header' %>
|
||||
|
||||
<div id="page-content">
|
||||
<div class="row">
|
||||
<%= render 'layouts/tournament-navbar' %>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12"><%= render 'layouts/underheader' %></div>
|
||||
</div>
|
||||
<div class="row no-margin">
|
||||
<div class="col-md-2">
|
||||
<%= render 'layouts/lsidebar' %>
|
||||
</div>
|
||||
<div class="col-md-8" style="padding-left: 2%;">
|
||||
<div class="col-md-12" style="padding-left: 2%;">
|
||||
<p id="notice"><%= notice %></p>
|
||||
<div id="view"><%= yield %></div>
|
||||
</div>
|
||||
<div class="col-md-2" >
|
||||
<%= render 'layouts/rsidebar' %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<%= render 'layouts/footer' %>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
<% end %>
|
||||
</html>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user