diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 23d9f2f..7d6fae6 100755
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -1,4 +1,8 @@
module ApplicationHelper
+ def cache_array_key(array)
+ array.map{|c| c.id}.join('')+"_"+array.max{|c|c.updated_at.to_i}.updated_at.to_i.to_s+"_"+I18n.locale.to_s
+ end
+
def clean_calendar(cal)
cal.rubrik.meetingtyps.each do |mt|
mt.meetings.each do |m|
diff --git a/app/views/home/_beispiele.html.erb b/app/views/home/_beispiele.html.erb
index 042288c..0cb337c 100644
--- a/app/views/home/_beispiele.html.erb
+++ b/app/views/home/_beispiele.html.erb
@@ -19,7 +19,7 @@
<%= b.updated_at.to_s%>
- <%end%>
+ <% end %>
<% end %>
diff --git a/app/views/home/index.html.erb b/app/views/home/index.html.erb
index fc9b0cc..61a4ff1 100755
--- a/app/views/home/index.html.erb
+++ b/app/views/home/index.html.erb
@@ -24,45 +24,19 @@
<%= link_to ffi1_icon("quiz")+ I18n.t("themengruppe.faqs"), faqs_themengruppen_path,class: :linkbox %>
-
-
<%= link_to ffi1_icon("books19")+"Beispielsammlung", studium_path(Studium.first, {:ansicht=>'semesteransicht'}) ,class: :btn ,class: :linkbox %>
-
<%= link_to "Alte Beispielsammlung", "http://www.fet.at/alt/bin/view/Beispielsammlung/WebHome" ,class: :btn ,class: :linkbox %>
-
-
- <% @stickythemen.each do |t1| %>
-
- <%= link_to t1 do %>
- <%= render partial: "themen/nlink", object: t %>
- <%= end %>
-
- <% end %>
-
-
-
-
+
+ <% @stickythemen.each do |t1| %>
+ -
+ <%= link_to t1 do %>
+ <%= render partial: "themen/nlink", object: t %>
+ <%= end %>
+
+ <% end %>
+
<%= render 'beispiele' %>
diff --git a/app/views/themes/blue1/home/index.html.erb b/app/views/themes/blue1/home/index.html.erb
index 9e1a460..53778b6 100644
--- a/app/views/themes/blue1/home/index.html.erb
+++ b/app/views/themes/blue1/home/index.html.erb
@@ -23,31 +23,28 @@
<%= link_to ffi1_icon("academic") + I18n.t('home.login'), user_omniauth_authorize_path(:ldap) ,class: :linkbox %>
-
<%= link_to ffi1_icon("quiz")+ I18n.t("themengruppe.faqs"), faqs_themengruppen_path,class: :linkbox %>
-
-
<%= link_to ffi1_icon("books19")+"Beispielsammlung", studium_path(Studium.first, {:ansicht=>'semesteransicht'}) ,class: :btn ,class: :linkbox %>
-
<%= link_to "Alte Beispielsammlung", "http://www.fet.at/alt/bin/view/Beispielsammlung/WebHome" ,class: :btn ,class: :linkbox %>
-
-
+
+<% cache("stickytopics_startpage_"+cache_array_key(@stickythemen)) do %>
<% @stickythemen.each do |t1| %>
-
- <%= link_to t1,:class=>:linkbox do %>
- <%= render partial: "themen/nlink", object: t1 %>
- <% end %>
+ <%= link_to t1,:class=>:linkbox do %>
+ <%= render partial: "themen/nlink", object: t1 %>
+ <% end %>
<% end %>
-
+<% end %>
<%= render 'beispiele' %>
+<% cache("neuigkeiten_startpage_"+ cache_array_key(@neuigkeiten)) do %>
<% @neuigkeiten.each do |n| %>
@@ -55,8 +52,9 @@
<% end %>
+<% end %>
-<% cache("calendar_" + @calentries.map{|c| c.id}.join('') + @calentries.max{|c|c.updated_at.to_i}.updated_at.to_i.to_s+"_"+I18n.locale.to_s+params[:month].to_s+params[:year].to_s) do %>
+<% cache("calendar_" + cache_array_key(@calentries)+params[:month].to_s+params[:year].to_s) do %>
<%= render 'calendars/calentries', :object=>@calentries %>
<% end %>