2017-02-16 16:04:00 +01:00
|
|
|
<% if @event[:banner] %>
|
2017-10-11 22:31:19 +02:00
|
|
|
<a href="<%= @event.path %>" class="tile event-tile is-child box backgroundimg highlighted"
|
2017-12-16 18:20:55 +01:00
|
|
|
style="background-image:linear-gradient(rgba(0,0,0,0.2), rgba(0, 0, 0, 0.65)), url('<%= @event[:banner] %>');">
|
2017-02-16 16:04:00 +01:00
|
|
|
<% elsif @event[:color] %>
|
2017-10-11 22:31:19 +02:00
|
|
|
<a href="<%= @event.path %>" class="tile event-tile is-child box backgroundimg highlighted"
|
2017-02-16 16:04:00 +01:00
|
|
|
style="background-image: linear-gradient(to top right,rgba(255,255,255,0),rgba(0,0,0,.60)); background-color:<%= @event[:color] %>;">
|
2017-02-14 14:57:40 +01:00
|
|
|
<% else %>
|
2017-10-11 22:49:18 +02:00
|
|
|
<a href="<%= @event.path %>" class="tile event-tile is-child box backgroundimg">
|
2017-02-14 14:57:40 +01:00
|
|
|
<% end %>
|
2017-10-11 22:31:19 +02:00
|
|
|
<div class="content event-content">
|
|
|
|
<div class="event-text">
|
|
|
|
<h1 class="has-text-centered">
|
|
|
|
<%= @event[:title] %>
|
|
|
|
</h1>
|
|
|
|
|
|
|
|
<div class="description has-text-centered">
|
|
|
|
<%= @event[:description] %>
|
2017-02-09 16:55:30 +01:00
|
|
|
</div>
|
2017-10-11 22:31:19 +02:00
|
|
|
|
|
|
|
<div class="is-divider"></div>
|
|
|
|
|
2017-10-13 11:24:06 +02:00
|
|
|
<div class="event-time-loc">
|
2017-10-11 22:33:27 +02:00
|
|
|
<%= fa :'clock-o' , fw: true %><%= @event[:time].strftime('%A %d %B, %H:%M') %>
|
2017-10-11 22:31:19 +02:00
|
|
|
<br>
|
|
|
|
<%= fa :'map-marker', fw: true %><%= @event[:location] %>
|
2017-02-09 16:55:30 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2017-10-11 22:31:19 +02:00
|
|
|
|
2017-02-09 16:55:30 +01:00
|
|
|
</div>
|
|
|
|
</a>
|