From 86cafa7e94c993047ffed30dc05467cdc9aaa7b4 Mon Sep 17 00:00:00 2001 From: Stefan Schlott Date: Sun, 19 Jan 2014 10:04:36 +0100 Subject: [PATCH] Add links activity posts in calendars --- content/ical.txt | 2 +- layouts/calendar_list.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/content/ical.txt b/content/ical.txt index a6613268..21bd0381 100644 --- a/content/ical.txt +++ b/content/ical.txt @@ -24,7 +24,7 @@ cal = RiCal.Calendar do |cal| end if e[:url] event.url = e[:url] - elsif e.identifier.start_with?('/events') + elsif e.identifier.start_with?('/events') or e.identifier.start_with?('/activities') event.url = "#{@config[:base_url]}#{e.path}" end end diff --git a/layouts/calendar_list.erb b/layouts/calendar_list.erb index 52978232..50f27ad5 100644 --- a/layouts/calendar_list.erb +++ b/layouts/calendar_list.erb @@ -14,7 +14,7 @@ filter: erb <% end %> <% if e[:url] %> <%= e[:title] %> - <% elsif e.identifier.start_with?("/events") %> + <% elsif e.identifier.start_with?("/events") or e.identifier.start_with?("/activities") %> <%= e[:title] %> <% else %> <%= e[:title] %>