forked from bofh/fetsite
calendar ics format summary fix
This commit is contained in:
@@ -4,6 +4,8 @@ class CalendarsController < ApplicationController
|
||||
load_and_authorize_resource
|
||||
def index
|
||||
@calendars = Calendar.all
|
||||
@calentries = Calentry.all
|
||||
|
||||
respond_to do |format|
|
||||
format.html # index.html.erb
|
||||
format.json { render json: @calendars }
|
||||
|
||||
@@ -5,5 +5,6 @@ format=:timeonly
|
||||
else
|
||||
format =:default
|
||||
end%>
|
||||
<%= link_to calentry.name, calentry_path(calentry) %>
|
||||
<%= link_to calentry.text, calentry_path(calentry) %>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
BEGIN:VEVENT
|
||||
UID:4610<%= calentry.id %>@fet.at
|
||||
UID:4610<%= calentry.id.to_s %>
|
||||
ORGANIZER;CN="Peter Schlechter, Example Inc.":MAILTO:peter@fet.at
|
||||
LOCATION:Vienna
|
||||
SUMMARY:<%= calentry.summary%>
|
||||
DESCRIPTION:<%= calentry.summary%>
|
||||
SUMMARY:<%= calentry.name %>
|
||||
DESCRIPTION: <%= link_to calentry.name.to_s, polymorphic_path(calentry.object) %><%= calentry.summary %>
|
||||
CLASS:PUBLIC
|
||||
DTSTART:<%= calentry.start.strftime "%Y%m%dT%H%M%S" %>
|
||||
DTEND:<%= calentry.ende.strftime "%Y%m%dT%H%M%S" %>
|
||||
|
||||
@@ -2,7 +2,7 @@ BEGIN:VEVENT
|
||||
UID:4610<%= calentry.id $>@fet.at
|
||||
ORGANIZER;CN="Peter Schlechter, Example Inc.":MAILTO:peter@fet.at
|
||||
LOCATION:Vienna
|
||||
SUMMARY:<%= calentry.summary%>
|
||||
SUMMARY:<%= calentry.name %>
|
||||
DESCRIPTION:<%= calentry.summary%>
|
||||
CLASS:PUBLIC
|
||||
DTSTART:<%= calentry.start.strftime "%Y%m%dT%H%M%S" %>
|
||||
|
||||
Reference in New Issue
Block a user