mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
Do not cache edit button on school and wrestler show pages
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
<% cache ["schools", @school] do %>
|
||||
|
||||
<p id="notice"><%= notice %></p>
|
||||
<%= link_to "Back to #{@tournament.name}", "/tournaments/#{@tournament.id}",:class=>"btn btn-default" %>
|
||||
<% if tournament_permissions(@school.tournament) %>
|
||||
| <%= link_to "Edit #{@school.name}", edit_school_path(@school),:class=>"btn btn-primary" %>
|
||||
<% end %>
|
||||
<% cache ["schools", @school] do %>
|
||||
<br>
|
||||
<br>
|
||||
<p>
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
<% cache ["wrestlers", @wrestler] do %>
|
||||
|
||||
<p id="notice"><%= notice %></p>
|
||||
|
||||
<%= link_to "Back to #{@school.name}", "/schools/#{@school.id}", :class=>"btn btn-default" %>
|
||||
<% if tournament_permissions(@wrestler.tournament) %>
|
||||
| <%= link_to "Edit #{@wrestler.name}", edit_wrestler_path(@wrestler), :class=>"btn btn-primary" %>
|
||||
<% end %>
|
||||
<% cache ["wrestlers", @wrestler] do %>
|
||||
<br>
|
||||
<br>
|
||||
<p>
|
||||
|
||||
Reference in New Issue
Block a user