forked from bofh/fetsite
Merge branch 'master' of https://github.com/HausdorffHimself/fetsite
This commit is contained in:
@@ -15,7 +15,7 @@ class ThemenController < ApplicationController
|
||||
def show
|
||||
@thema = Thema.find(params[:id])
|
||||
@toolbar_elements = [{:icon=>:pencil, :hicon=>'icon-pencil', :text=>I18n.t('thema.edit'), :path=>edit_thema_path(@thema)}]
|
||||
@toolbar_elements << {:hicon=>'icon-remove-circle', :text=>I18n.t('thema.remove'), :path=>themengruppe_thema_path(@thema), :method=>:delete, :confirm=>I18n.t('thema.sure')}
|
||||
@toolbar_elements << {:hicon=>'icon-remove-circle', :text=>I18n.t('thema.remove'), :path=>thema_path(@thema), :method=>:delete, :confirm=>I18n.t('thema.sure')}
|
||||
|
||||
respond_to do |format|
|
||||
format.html # show.html.erb
|
||||
@@ -78,7 +78,7 @@ class ThemenController < ApplicationController
|
||||
@thema.destroy
|
||||
|
||||
respond_to do |format|
|
||||
format.html { redirect_to themen_url }
|
||||
format.html { redirect_to themengruppe_path(@thema.themengruppe) }
|
||||
format.json { head :no_content }
|
||||
end
|
||||
end
|
||||
|
||||
@@ -23,10 +23,9 @@
|
||||
</div>
|
||||
</br>
|
||||
|
||||
<% unless @thema.id.nil? %>
|
||||
<% @att_elements = [{:icon=>:plus, :hicon=>'icon-plus', :text=>I18n.t('attachment.add'), :path=>new_thema_attachment_path(@thema)}] %>
|
||||
|
||||
<%= render :partial=>'layouts/pretty_toolbar', :object=>@att_elements %>
|
||||
<!--
|
||||
<%= link_to 'Neues Attachment', new_thema_attachment_path(@thema) %>
|
||||
-->
|
||||
<% end %>
|
||||
<br/>
|
||||
|
||||
Reference in New Issue
Block a user