Wiki integriert in HP

This commit is contained in:
2014-06-03 18:23:14 +05:30
parent adfec2446e
commit bd073e0835
18 changed files with 309 additions and 30 deletions

View File

@@ -32,6 +32,10 @@ class ThemenController < ApplicationController
end
def verwalten
@thema = Thema.find(params[:id])
unless (@thema.wikiname.empty? || @thema.wikiname.nil?)
redirect_to verwalten_wiki_path(Wiki.find(@thema.id))
end
@fragen=@thema.fragen
@toolbar_elements = [{:icon=>:pencil, :hicon=>'icon-pencil', :text=>"Verwalten", :path=>verwalten_thema_path(@thema)}]
@@ -54,6 +58,7 @@ class ThemenController < ApplicationController
# GET /themen/1/edit
def edit
@thema = Thema.find(params[:id])
respond_to do |format|
format.html
format.js