Merge branch 'master' of github.com:fetsite/fetsite

This commit is contained in:
Andreas Stephanides
2015-03-30 11:20:54 +02:00
2 changed files with 10 additions and 4 deletions

View File

@@ -74,6 +74,7 @@
</div>
</div>
<div class="row-fluid">
<div class="span12">
@@ -82,11 +83,12 @@
</p>
<%= link_to t("beispiel.zip") , beispiel_sammlung_lva_path(@lva), class: :linkbox %>
<% @lva.beispiele.order(:datum).each do |b| %>
<% cache("beispiel_" +I18n.locale.to_s+b.id.to_s+can?(:delete,b)+"_"+can?(:edit,b) + "_" + b.updated_at.try(:utc).try(:to_s)) do %>
<% cache("beispiel_" +I18n.locale.to_s+b.id.to_s+can?(:delete,b).to_s+"_"+can?(:edit,b).to_s + "_" + b.updated_at.try(:utc).try(:to_s)) do %>
<%= render b%>
<% end %>
<% end %>
</div>
</div>
<div class="row-fluid">