Added the verleihkalender view

This commit is contained in:
Pet
2018-05-15 20:59:29 +02:00
parent c7267f9299
commit df3b771048
2 changed files with 8 additions and 3 deletions

View File

@@ -1,4 +1,5 @@
class HomeController < ApplicationController class HomeController < ApplicationController
after_action :allow_iframe, only: :verleihkalender
def index def index
@beispiele = Beispiel.last([Beispiel.count, 3].min) @beispiele = Beispiel.last([Beispiel.count, 3].min)
@neuigkeiten = Neuigkeit.accessible_by(current_ability, :show).limit(10) @neuigkeiten = Neuigkeit.accessible_by(current_ability, :show).limit(10)
@@ -122,4 +123,10 @@ class HomeController < ApplicationController
redirect_to admin_home_index_path redirect_to admin_home_index_path
end end
private
def allow_iframe
response.headers.except! 'X-Frame-Options'
end
end end

View File

@@ -10,9 +10,7 @@
</head> </head>
<body> <body>
<iframe style="border-width: 1;"
<%= content_tag(:iframe,'', width: "100%", height: "100%", name: "targetframe", allowTransparency:"true", scrolling:"no", frameborder:"0", src: "/iframe/infoscreenframe.html") %> <%#header picture/animation %>
<iframe style="border-width: 0;"
src="https://calendar.google.com/calendar/embed?height=480&amp;wkst=1&amp;bgcolor=%23FFFFFF&amp; src="https://calendar.google.com/calendar/embed?height=480&amp;wkst=1&amp;bgcolor=%23FFFFFF&amp;
src=f7i0qj89nelp59lq8panbqr2ek%40group.calendar.google.com&amp;color=%238C500B&amp; src=f7i0qj89nelp59lq8panbqr2ek%40group.calendar.google.com&amp;color=%238C500B&amp;
src=8gec92r2kpn59jqm4gclg06nrg%40group.calendar.google.com&amp;color=%23853104&amp; src=8gec92r2kpn59jqm4gclg06nrg%40group.calendar.google.com&amp;color=%23853104&amp;