zeus.ugent.be/layouts/partials/_event_preview.erb

40 lines
922 B
Text
Raw Normal View History

2016-08-27 03:50:40 +02:00
<div class="box event-preview">
<div class="image-holder">
2016-10-09 12:08:25 +02:00
<img src="<%= event[:image]%>" alt="" class="image" />
2016-08-27 03:50:40 +02:00
</div>
<div class="box info">
<div class="title">
2016-08-27 04:26:18 +02:00
<a href="<%= relative_path_to(event) %>">
<%= event[:title] %>
2016-08-27 03:50:40 +02:00
</a>
</div>
<div class="location">
<a href="#">
<%= event[:location] %>
</a>
</div>
<div class="description">
<%= event[:description] %>
</div>
<div class="time">
2016-10-10 13:54:08 +02:00
<%= event[:time].strftime '%A %d %B %Y %H:%M' %>
2016-08-27 03:50:40 +02:00
</div>
</div>
2016-08-27 04:26:18 +02:00
<% if @main_event %>
<div class="box main-event">
<p>
<%= main_event[:title] %>
</p>
<ul>
<% sub_events(main_event).each do |sub_event| %>
2016-08-27 04:31:55 +02:00
<li class="<%= "active" if sub_event[:title] == (event[:title])%>" >
<%= sub_event[:title] %>
</li>
2016-08-27 04:26:18 +02:00
<% end %>
</ul>
</div>
<% end %>
2016-08-27 03:50:40 +02:00
</div>