Refactor /calendars into it's own controller

Spec it out too
This commit is contained in:
Henne Vogelsang 2021-03-08 13:18:03 +01:00
parent 6e276b2787
commit f23d1f04b5
No known key found for this signature in database
GPG key ID: 97DDB66BDAF8D4D6
7 changed files with 128 additions and 74 deletions

View file

@ -21,8 +21,8 @@
%p
Add the events to your calendar:
%span.btn-group
= link_to("Days only", calendar_url(protocol: 'webcal', format: 'ics'), class: 'btn btn-default')
= link_to("Detailed", calendar_url(protocol: 'webcal', format: 'ics', full: true), class: 'btn btn-default')
= link_to("Days only", calendars_url(protocol: 'webcal', format: 'ics'), class: 'btn btn-default')
= link_to("Detailed", calendars_url(protocol: 'webcal', format: 'ics', full: true), class: 'btn btn-default')
-content_for :script_body do
:javascript