2020-03-17 17:22:41 -05:00
|
|
|
BEGIN:VCALENDAR
|
|
|
|
VERSION:2.0
|
|
|
|
PRODID:-//Discourse//<%= Discourse.current_hostname %>//<%= Discourse.full_version %>//EN
|
|
|
|
<% @bookmark_reminders.each do |bookmark| %>
|
|
|
|
BEGIN:VEVENT
|
|
|
|
UID:bookmark_reminder_#<%= bookmark.id %>@<%= Discourse.current_hostname %>
|
|
|
|
DTSTAMP:<%= bookmark.updated_at.strftime("%Y%m%dT%H%M%SZ") %>
|
|
|
|
DTSTART:<%= bookmark.reminder_at.strftime("%Y%m%dT%H%M%SZ") %>
|
|
|
|
DTEND:<%= (bookmark.reminder_at + 1.hour).strftime("%Y%m%dT%H%M%SZ") %>
|
|
|
|
SUMMARY:<%= bookmark.name.presence || bookmark.topic.title %>
|
2020-03-17 18:06:15 -05:00
|
|
|
DESCRIPTION:<%= Discourse.base_url %>/t/-/<%= bookmark.topic_id %>
|
2020-03-17 17:22:41 -05:00
|
|
|
URL:<%= Discourse.base_url %>/t/-/<%= bookmark.topic_id %>
|
|
|
|
END:VEVENT
|
|
|
|
<% end %>
|
|
|
|
END:VCALENDAR
|