2016-08-27 03:50:40 +02:00
|
|
|
<div class="box event-preview">
|
|
|
|
<div class="image-holder">
|
|
|
|
<img src="https://placehold.it/150x150" alt="" class="image" />
|
|
|
|
</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">
|
|
|
|
<%= event[:time] %>
|
|
|
|
</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>
|