forked from bofh/fetsite
themen fix + remote form für themen
This commit is contained in:
@@ -10,6 +10,8 @@
|
||||
</p>
|
||||
<br/>
|
||||
<% end %>
|
||||
<% @small_elements = [{:icon=>:pencil, :hicon=>'icon-pencil', :text=>I18n.t('thema.edit'), :path=>small}]
|
||||
@small_elements << {:hicon=>'icon-remove-circle',:text=>I18n.t('thema.remove'), :path=>small, :method=>:delete,:confirm=>I18n.t('thema.sure')}%>
|
||||
<%= render :partial=>'layouts/pretty_toolbar', :object=>@small_elements %>
|
||||
<%
|
||||
@small_elements = []
|
||||
@small_elements << {:icon=>:pencil, :hicon=>'icon-pencil', :text=>I18n.t('thema.edit'), :path=>small} if can? :edit, small
|
||||
@small_elements << {:hicon=>'icon-remove-circle',:text=>I18n.t('thema.remove'), :path=>small, :method=>:delete,:confirm=>I18n.t('thema.sure')} if can? :delete, small %>
|
||||
<%= render :partial=>'layouts/pretty_toolbar', :object=>@small_elements unless @small_elements.empty? %>
|
||||
|
||||
Reference in New Issue
Block a user