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| %> <% @calendar.calentries.each do |entry| %>
<%= render entry %> <%= render entry %>
<% end %> <% end %>
END:VCALENDAR

View File

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