calendar ics format summary fix

This commit is contained in:
Andreas Stephanides
2013-12-16 10:27:46 +01:00
parent 6f27945a01
commit 9747f40b68
4 changed files with 8 additions and 5 deletions

View File

@@ -4,6 +4,8 @@ class CalendarsController < ApplicationController
load_and_authorize_resource load_and_authorize_resource
def index def index
@calendars = Calendar.all @calendars = Calendar.all
@calentries = Calentry.all
respond_to do |format| respond_to do |format|
format.html # index.html.erb format.html # index.html.erb
format.json { render json: @calendars } format.json { render json: @calendars }

View File

@@ -5,5 +5,6 @@ format=:timeonly
else else
format =:default format =:default
end%> end%>
<%= link_to calentry.name, calentry_path(calentry) %> <%= link_to calentry.text, calentry_path(calentry) %>
</div> </div>

View File

@@ -1,9 +1,9 @@
BEGIN:VEVENT BEGIN:VEVENT
UID:4610<%= calentry.id %>@fet.at UID:4610<%= calentry.id.to_s %>
ORGANIZER;CN="Peter Schlechter, Example Inc.":MAILTO:peter@fet.at ORGANIZER;CN="Peter Schlechter, Example Inc.":MAILTO:peter@fet.at
LOCATION:Vienna LOCATION:Vienna
SUMMARY:<%= calentry.summary%> SUMMARY:<%= calentry.name %>
DESCRIPTION:<%= calentry.summary%> DESCRIPTION: <%= link_to calentry.name.to_s, polymorphic_path(calentry.object) %><%= calentry.summary %>
CLASS:PUBLIC CLASS:PUBLIC
DTSTART:<%= calentry.start.strftime "%Y%m%dT%H%M%S" %> DTSTART:<%= calentry.start.strftime "%Y%m%dT%H%M%S" %>
DTEND:<%= calentry.ende.strftime "%Y%m%dT%H%M%S" %> DTEND:<%= calentry.ende.strftime "%Y%m%dT%H%M%S" %>

View File

@@ -2,7 +2,7 @@ BEGIN:VEVENT
UID:4610<%= calentry.id $>@fet.at UID:4610<%= calentry.id $>@fet.at
ORGANIZER;CN="Peter Schlechter, Example Inc.":MAILTO:peter@fet.at ORGANIZER;CN="Peter Schlechter, Example Inc.":MAILTO:peter@fet.at
LOCATION:Vienna LOCATION:Vienna
SUMMARY:<%= calentry.summary%> SUMMARY:<%= calentry.name %>
DESCRIPTION:<%= calentry.summary%> DESCRIPTION:<%= calentry.summary%>
CLASS:PUBLIC CLASS:PUBLIC
DTSTART:<%= calentry.start.strftime "%Y%m%dT%H%M%S" %> DTSTART:<%= calentry.start.strftime "%Y%m%dT%H%M%S" %>