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

This commit is contained in:
Andreas Stephanides
2015-06-25 16:35:14 +02:00
4 changed files with 5 additions and 2 deletions

View File

@@ -12,7 +12,7 @@
<% end %>
</div>
<div class="span6">
<%= f.file_field :beispieldatei, :label => "Neue Datei hochladen:"%>
<% f.file_field :beispieldatei, :label => "Neue Datei hochladen:"%>
</div>
<%=f.input :datum , :as => :datetimepicker %>

View File

@@ -86,7 +86,7 @@
</p>
<%= link_to t("beispiel.zip") , beispiel_sammlung_lva_path(@lva), class: :linkbox %>
<% @beispiele_all.each do |b| %>
<% cache("beispiel_" +I18n.locale.to_s+b.id.to_s+can?(:delete,b).to_s+"_"+can?(:edit,b).to_s + "_" + can?(:flag, b).to_s + "_" + can?(:like, b).to_s + "_" + b.updated_at.try(:utc).try(:to_s) + get_theme.to_s) do %>
<% cache("beispiel_" +I18n.locale.to_s+b.id.to_s+can?(:delete,b).to_s+"_"+can?(:edit,b).to_s + "_" + can?(:flag, b).to_s + "_" + can?(:like, b).to_s + "_" + b.updated_at.try(:utc).try(:to_s) + get_theme_help(current_user).to_s) do %>
<%= render b%>
<% end %>
<% end %>