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">
|
|
|
|
<%= 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>
|