forked from bofh/fetsite
AutoCommit Mon Jun 8 22:03:14 CEST 2015
This commit is contained in:
24
app/views/calendars/index.ics.erb
Normal file
24
app/views/calendars/index.ics.erb
Normal file
@@ -0,0 +1,24 @@
|
||||
BEGIN:VCALENDAR
|
||||
VERSION:2.0
|
||||
PRODID:http://www.example.com/calendarapplication/
|
||||
METHOD:PUBLISH
|
||||
X-WR-TIMEZONE:Europe/Vienna
|
||||
BEGIN:VTIMEZONE
|
||||
TZID:Europe/Vienna
|
||||
BEGIN:DAYLIGHT
|
||||
TZOFFSETFROM:+0100
|
||||
DTSTART:19810329T020000
|
||||
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU
|
||||
TZNAME:MESZ
|
||||
END:DAYLIGHT
|
||||
BEGIN:STANDARD
|
||||
TZOFFSETFROM:+0200
|
||||
DTSTART:19961027T030000
|
||||
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU
|
||||
TZNAME:MEZ
|
||||
END:STANDARD
|
||||
END:VTIMEZONE
|
||||
<% @calentries.each do |entry| %>
|
||||
<%= render entry %>
|
||||
<% end %>
|
||||
END:VCALENDAR
|
||||
@@ -52,7 +52,7 @@
|
||||
<%= render 'calendars/calentries', :object=>@calentries %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<%= link_to "ics-format", calendar_path(@rubrik.calendar,:format=>:ics) %>
|
||||
<%= link_to "ics-format", calendar_path(@rubrik.calendar,:format=>:ics,:key=>current_user.nil? ? nil : Key.where(typ: 1, user_id: current_user.id,is_valid: true).last.try(:uuid)) %>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user