Added the verleihkalender view
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
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,11 +121,4 @@ class HomeController < ApplicationController
|
|||||||
File.open("config/contact_topic.yml",'w'){|f| f.write(t.to_yaml)}
|
File.open("config/contact_topic.yml",'w'){|f| f.write(t.to_yaml)}
|
||||||
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
|
||||||
|
|||||||
@@ -10,10 +10,7 @@
|
|||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<iframe style="border-width: 1;"
|
<iframe style="border-width: 0;"
|
||||||
src="https://calendar.google.com/calendar/embed?height=480&wkst=1&bgcolor=%23FFFFFF&
|
src="https://calendar.google.com/calendar/embed?src=f7i0qj89nelp59lq8panbqr2ek%40group.calendar.google.com&src=8gec92r2kpn59jqm4gclg06nrg%40group.calendar.google.com&color=%23853104" width="100%" height="100%" frameborder="0" scrolling="no">
|
||||||
src=f7i0qj89nelp59lq8panbqr2ek%40group.calendar.google.com&color=%238C500B&
|
|
||||||
src=8gec92r2kpn59jqm4gclg06nrg%40group.calendar.google.com&color=%23853104&
|
|
||||||
ctz=Europe%2FVienna" width="800" height="480" frameborder="0" scrolling="no">
|
|
||||||
</iframe>
|
</iframe>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
Reference in New Issue
Block a user