1
0
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:
2015-12-24 21:38:33 +00:00
parent a8bb011bfe
commit 308090f330
2 changed files with 4 additions and 2 deletions

View File

@@ -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>

View File

@@ -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>