mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-09 09:04:21 +01:00
Added iCal subscription links.
The feeds page now lists iCal links alongside each RSS and TXT feed link. Copying your chosen link and pasting it in to the text box that appears in iCal when you choose Calendar > Subscribe.. Name your calendar as you wish, but make sure that you get it to refresh periodically and that the 'Remove Todo items' checkbox is UNCHECKED (obviously ;-) ). Then your Tracks next actions should appear as todo items in iCal, with proper due dates assigned, and notes in the notes field. The todos should update periodically in iCal as you add, delete or complete items in Tracks, but the subscription is read-only from iCal's end. However, it does allow you read access on the move if you sync iCal with your Palm or mobile phone. I don't have Sunbird or any other iCal compatible calendar, but it should work with any of those too, as it follows the [http://www.ietf.org/rfc/rfc2445.txt iCalendar] standard format. git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@221 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
parent
a2120f6ee1
commit
e1cb2b0f29
5 changed files with 63 additions and 2 deletions
|
|
@ -34,6 +34,20 @@ class FeedController < ApplicationController
|
|||
end
|
||||
@headers["Content-Type"] = "text/plain; charset=utf-8"
|
||||
end
|
||||
|
||||
# Builds an iCal compatible export of uncompleted todos
|
||||
# so that each action forms a VTODO in your iCal calendar.
|
||||
# Due dates are supported, and notes are included.
|
||||
#
|
||||
def ical
|
||||
prepare_for_feed
|
||||
if @params.key?('context')
|
||||
@contexts = [ @user.contexts.find(@params['context']) ]
|
||||
else
|
||||
@contexts = @user.contexts.find_all_by_hide(false, "position ASC")
|
||||
end
|
||||
@headers["Content-Type"] = "text/plain; charset=utf-8"
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue