add a treeview

This commit is contained in:
Andreas Stephanides
2015-04-14 17:56:35 +02:00
parent fdecf48e43
commit b02dcad387
3 changed files with 74 additions and 0 deletions

View File

@@ -24,6 +24,10 @@ class HomeController < ApplicationController
t=YAML.load_file("#{::Rails.root.to_s}/config/contact_topic.yml")
@themen = Thema.where(:id=>t)
end
def treeview
authorize! :doadmin, User
@themengruppen = Themengruppe.intern.order(:priority).reverse
end
def intern
authorize! :seeintern, User
@neuigkeiten = Neuigkeit.intern.recent