mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-05-07 06:43:14 +00:00
Trying to make sidebar look better and make it harder to accidentally mess up a tournament in progress
This commit is contained in:
@@ -4,8 +4,9 @@
|
|||||||
<!-- sidebar -->
|
<!-- sidebar -->
|
||||||
<% if @tournament %>
|
<% if @tournament %>
|
||||||
<div class="" style="padding-right: 1%;">
|
<div class="" style="padding-right: 1%;">
|
||||||
|
<h4>Tournament Links</h4>
|
||||||
<ul class="">
|
<ul class="">
|
||||||
<h4>Tournament Links</h4>
|
|
||||||
<li><%= link_to "Brackets" , "/tournaments/#{@tournament.id}/brackets" %></li>
|
<li><%= link_to "Brackets" , "/tournaments/#{@tournament.id}/brackets" %></li>
|
||||||
<li><%= link_to "Upcoming Matches" , "/tournaments/#{@tournament.id}/up_matches" %></li>
|
<li><%= link_to "Upcoming Matches" , "/tournaments/#{@tournament.id}/up_matches" %></li>
|
||||||
<li><%= link_to "Team Scores" , "/tournaments/#{@tournament.id}/team_scores" %></li>
|
<li><%= link_to "Team Scores" , "/tournaments/#{@tournament.id}/team_scores" %></li>
|
||||||
@@ -14,12 +15,17 @@
|
|||||||
<% if tournament_permissions(@tournament) %>
|
<% if tournament_permissions(@tournament) %>
|
||||||
<br><br>
|
<br><br>
|
||||||
<div class="" style="padding-right: 1%;">
|
<div class="" style="padding-right: 1%;">
|
||||||
<ul class="">
|
|
||||||
<h4>Tournament Director Links</h4>
|
<h4>Tournament Director Links</h4>
|
||||||
<li><%= link_to "Generate Brackets" , "/tournaments/#{@tournament.id}/generate_matches", data: { confirm: 'Are you sure? This will delete all current matches.' } %></li>
|
|
||||||
<li><%= link_to "Weigh In Page" , "/tournaments/#{@tournament.id}/weigh_in" %></li>
|
<br><strong>Pages</strong><br>
|
||||||
<li><%= 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.' } %></li>
|
<br><%= link_to "Weigh In Page" , "/tournaments/#{@tournament.id}/weigh_in", class: "btn btn-primary btn-sm" %>
|
||||||
</ul>
|
|
||||||
|
<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.' }, class: "btn btn-success btn-sm" %>
|
||||||
|
|
||||||
|
<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.' }, class: "btn btn-success btn-sm" %>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
Reference in New Issue
Block a user