calender ics format hinzugefügt

This commit is contained in:
Andreas Stephanides
2013-08-18 17:25:21 +02:00
parent 35b4f3998a
commit c01df9148b
3 changed files with 28 additions and 30 deletions

View File

@@ -1,3 +1,9 @@
BEGIN:VCALENDAR
VERSION:2.0
PRODID:http://www.example.com/calendarapplication/
METHOD:PUBLISH
<% @calendar.calentries.each do |entry| %>
<%= render entry %>
<% end %>
END:VCALENDAR

View File

@@ -1,5 +1,11 @@
<%= calentry.start %>
<%= calentry.ende %>
<%= calentry.summary %>
<%= calentry.typ %>
BEGIN:VEVENT
UID:4610<%= calentry.id %>@fet.at
ORGANIZER;CN="Peter Schlechter, Example Inc.":MAILTO:peter@fet.at
LOCATION:Vienna
SUMMARY:<%= calentry.summary%>
DESCRIPTION:<%= calentry.summary%>
CLASS:PUBLIC
DTSTART:<%= calentry.start.strftime "%Y%m%dT%H%M%S" %>
DTEND:<%= calentry.ende.strftime "%Y%m%dT%H%M%S" %>
DTSTAMP:<%= calentry.start.strftime "%Y%m%dT%H%M%S" %>
END:VEVENT

View File

@@ -1,25 +1,11 @@
<p id="notice"><%= notice %></p>
<p>
<b>Start:</b>
<%= @calentry.start %>
</p>
<p>
<b>Ende:</b>
<%= @calentry.ende %>
</p>
<p>
<b>Summary:</b>
<%= @calentry.summary %>
</p>
<p>
<b>Typ:</b>
<%= @calentry.typ %>
</p>
<%= link_to 'Edit', edit_calentry_path(@calentry) %> |
<%= link_to 'Back', calentries_path %>
BEGIN:VEVENT
UID:4610<%= calentry.id $>@fet.at
ORGANIZER;CN="Peter Schlechter, Example Inc.":MAILTO:peter@fet.at
LOCATION:Vienna
SUMMARY:<%= calentry.summary%>
DESCRIPTION:<%= calentry.summary%>
CLASS:PUBLIC
DTSTART:<%= calentry.start.strftime "%Y%m%dT%H%M%S" %>
DTEND:<%= calentry.ende.strftime "%Y%m%dT%H%M%S" %>
DTSTAMP:<%= calentry.start.strftime "%Y%m%dT%H%M%S" %>
END:VEVENT