1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-06 22:44:14 +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>