calendar ics format summary fix
This commit is contained in:
@@ -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 }
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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" %>
|
||||||
|
|||||||
@@ -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" %>
|
||||||
|
|||||||
Reference in New Issue
Block a user