24 lines
696 B
Text
24 lines
696 B
Text
-----
|
|
filter: erb
|
|
-----
|
|
<ul class="no-bullets"><% @events.each do |e| %>
|
|
<li>
|
|
<% if e[:startdate].instance_of?(Date) %>
|
|
<% if e[:startdate]<e[:enddate] %>
|
|
<%= e[:startdate].strftime("%d.%m.") %> - <%= e[:enddate].strftime("%d.%m.") %>:
|
|
<% else %>
|
|
<%= e[:startdate].strftime("%d.%m.") %>:
|
|
<% end %>
|
|
<% else %>
|
|
<%= e[:startdate].strftime("%d.%m., %H:%M") %>:
|
|
<% end %>
|
|
<% if e[:url] %>
|
|
<a href="<%= e[:url] %>"><%= e[:title] %></a>
|
|
<% elsif e.identifier.start_with?("/events") or e.identifier.start_with?("/activities") %>
|
|
<a href="<%= e.path %>"><%= e[:title] %></a>
|
|
<% else %>
|
|
<%= e[:title] %>
|
|
<% end %>
|
|
</li>
|
|
<% end %></ul>
|
|
|