diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb index 3d49f08..2cd2a4a 100755 --- a/app/controllers/home_controller.rb +++ b/app/controllers/home_controller.rb @@ -4,6 +4,9 @@ class HomeController < ApplicationController @neuigkeiten = Neuigkeit.recent if Thema.count>0 t=YAML.load_file("#{::Rails.root.to_s}/config/start_topic.yml") + @rubriken= Rubrik.accessible_by(current_ability, :show) + @calentries= (@rubriken.map {|r| r.calendar}).collect(&:calentries).flatten.select {|c| c.object !=nil} + @starttopic= @themen = Thema.where(:id=>t).first else @starttopic=@themen = nil diff --git a/app/views/themes/blue1/home/index.html.erb b/app/views/themes/blue1/home/index.html.erb index 90d43c1..da7f89c 100644 --- a/app/views/themes/blue1/home/index.html.erb +++ b/app/views/themes/blue1/home/index.html.erb @@ -14,7 +14,7 @@