From efe4036a5e17424bb08654fa1c1107e2731a5260 Mon Sep 17 00:00:00 2001 From: jcwimer Date: Tue, 29 Dec 2015 15:12:21 +0000 Subject: [PATCH] Moved director links to the left sidebar --- app/views/layouts/_lsidebar.html.erb | 14 ++++++++++++++ app/views/tournaments/show.html.erb | 9 --------- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/app/views/layouts/_lsidebar.html.erb b/app/views/layouts/_lsidebar.html.erb index 90e8a23..156119d 100644 --- a/app/views/layouts/_lsidebar.html.erb +++ b/app/views/layouts/_lsidebar.html.erb @@ -11,6 +11,20 @@
  • <%= link_to "Team Scores" , "/tournaments/#{@tournament.id}/team_scores" %>
  • + <% if tournament_permissions(@tournament) %> +

    +
    + +
    + <% end %> <% end %> +

    + + \ No newline at end of file diff --git a/app/views/tournaments/show.html.erb b/app/views/tournaments/show.html.erb index 6a83049..4464b42 100644 --- a/app/views/tournaments/show.html.erb +++ b/app/views/tournaments/show.html.erb @@ -31,13 +31,6 @@ <%= @tournament.tournament_type %>


    -<% if tournament_permissions(@tournament) %> -<%= link_to "Generate Brackets" , "/tournaments/#{@tournament.id}/generate_matches", data: { confirm: 'Are you sure? This will delete all current matches.' }, :class=>"btn btn-success" %> -

    -<%= link_to "Weigh In Page" , "/tournaments/#{@tournament.id}/weigh_in", :class=>"btn btn-primary" %> -
    -
    -<% end %>

    School Lineups


    @@ -77,8 +70,6 @@
    <% if tournament_permissions(@tournament) %> <%= link_to "New #{@tournament.name} Weight" , "/weights/new?tournament=#{@tournament.id}", :class=>"btn btn-success" %> -

    - <%= link_to "Create HS Weights" , "/tournaments/#{@tournament.id}/create_custom_weights?customValue=hs",data: { confirm: 'Are you sure? This will delete all current weights.' }, :class=>"btn btn-success" %>

    <% end %>