diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb
index 4148aca..297dbd8 100755
--- a/app/controllers/home_controller.rb
+++ b/app/controllers/home_controller.rb
@@ -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
diff --git a/app/views/home/treeview.html.erb b/app/views/home/treeview.html.erb
new file mode 100644
index 0000000..756d17f
--- /dev/null
+++ b/app/views/home/treeview.html.erb
@@ -0,0 +1,69 @@
+Intern
+
+<% @themengruppen.each do |tg| %>
+- <%= tg.title %>
+
+<% tg.themen.each do |t| %>
+- <%= fa_icon("folder-open li")+ t.title %>
+
+<% t.attachments.each do |a| %>
+- <%= fa_icon("file li")+a.name %>
+<% end %>
+<% t.documents.each do |d| %>
+- <%= fa_icon("li file-text-o")+d.name %>
+
+<% d.attachments.each do |a| %>
+- <%= fa_icon("file li")+a.name %>
+<% end %>
+
+
+<% end %>
+
+
+<% t.nlinks.each do |n| %>
+- <%= fa_icon("li newspaper-o")+n.neuigkeit.name %>
+
+<% n.neuigkeit.attachments.each do |a| %>
+- <%= fa_icon("file li")+a.name %>
+<% end %>
+
+
+<% end %>
+
+
+<% t.meetings.each do |m| %>
+- <%= fa_icon("group li")+m.text %>
+
+<% d = m.agenda %>
+<% unless d.nil? %>
+- <%= fa_icon("li file-text-o")+d.name %>
+
+<% d.attachments.each do |a| %>
+- <%= fa_icon("file li")+a.name %>
+<% end %>
+
+
+<% end %>
+<% d = m.protocol %>
+<% unless d.nil? %>
+- <%= fa_icon("li file-text-o")+d.name %>
+
+<% d.attachments.each do |a| %>
+- <%= fa_icon("file li")+a.name %>
+<% end %>
+
+
+<% end %>
+
+
+
+
+<% end %>
+
+
+
+
+<% end %>
+
+<% end %>
+
diff --git a/config/routes.rb b/config/routes.rb
index 7df49cd..8faf2a3 100755
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -129,6 +129,7 @@
get :search, :on => :collection
collection do
get 'intern'
+ get 'treeview'
get 'admin'
get 'dev'
get 'startdev'