pretty toolbar Neuigkeiten

This commit is contained in:
Andreas Stephanides
2013-08-27 22:03:05 +02:00
parent e6a1166a2d
commit 108a27e804
6 changed files with 48 additions and 14 deletions

View File

@@ -8,6 +8,6 @@ Verwendung: Aufruf mit
<span class="label"><%= I18n.t("common.actions")%></span>
<div class="btn-group">
<% toolbar_elements.each do |t| %>
<%= link_to '<i class="'.html_safe+ t[:hicon].to_s.html_safe + '"></i>'.html_safe+t[:text], t[:path], :method=>t[:method], :confirm=>t[:confirm].to_s, :data=>t[:data], :class=>"btn" %>
<%= link_to '<i class="'.html_safe+ t[:hicon].to_s.html_safe + '"></i>'.html_safe+t[:text], t[:path], :method=>t[:method], :confirm=>t[:confirm].to_s, :data=>t[:data], :class=>((t[:method].to_s=='delete') ? "btn btn-danger" : "btn") %>
<% end %>
</div>