From 3d8a77defa6a89cce48171eff2a99aac18821fa4 Mon Sep 17 00:00:00 2001 From: Stefan Schlott Date: Tue, 27 Aug 2013 19:24:13 +0200 Subject: [PATCH] Link to events in calendar --- content/sidebar.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/content/sidebar.html b/content/sidebar.html index ed26171f..46417c24 100644 --- a/content/sidebar.html +++ b/content/sidebar.html @@ -18,7 +18,13 @@ if (upcomingEvents.size>0) <% else %> <%= e[:startdate].strftime("%d.%m., %H:%M") %>: <% end %> - <% if e[:url] %><%= e[:title] %><% else %><%= e[:title] %><% end %> + <% if e[:url] %> + <%= e[:title] %> + <% elsif e.identifier.start_with?("/events") %> + <%= e[:title] %> + <% else %> + <%= e[:title] %> + <% end %> <% end %>