Add links activity posts in calendars
This commit is contained in:
parent
a7dbaea298
commit
86cafa7e94
2 changed files with 2 additions and 2 deletions
|
|
@ -24,7 +24,7 @@ cal = RiCal.Calendar do |cal|
|
||||||
end
|
end
|
||||||
if e[:url]
|
if e[:url]
|
||||||
event.url = 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}"
|
event.url = "#{@config[:base_url]}#{e.path}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ filter: erb
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if e[:url] %>
|
<% if e[:url] %>
|
||||||
<a href="<%= e[:url] %>"><%= e[:title] %></a>
|
<a href="<%= e[:url] %>"><%= e[:title] %></a>
|
||||||
<% elsif e.identifier.start_with?("/events") %>
|
<% elsif e.identifier.start_with?("/events") or e.identifier.start_with?("/activities") %>
|
||||||
<a href="<%= e.path %>"><%= e[:title] %></a>
|
<a href="<%= e.path %>"><%= e[:title] %></a>
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= e[:title] %>
|
<%= e[:title] %>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue