2017-02-16 16:04:00 +01:00
|
|
|
<% if @event[:banner] %>
|
|
|
|
<a href="<%= @event.path %>" class="tile is-child box backgroundimg highlighted"
|
|
|
|
style="background-image:url('<%= @event[:banner] %>');">
|
|
|
|
<% elsif @event[:color] %>
|
|
|
|
<a href="<%= @event.path %>" class="tile is-child box backgroundimg highlighted"
|
|
|
|
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-02-16 16:04:00 +01:00
|
|
|
<a href="<%= @event.path %>" class="tile is-child box backgroundimg">
|
2017-02-14 14:57:40 +01:00
|
|
|
<% end %>
|
|
|
|
<div class="content">
|
2017-02-09 16:55:30 +01:00
|
|
|
<div class="columns">
|
|
|
|
<div class="column">
|
|
|
|
<h2>
|
2017-02-16 16:04:00 +01:00
|
|
|
<%= @event[:title] %>
|
2017-02-09 16:55:30 +01:00
|
|
|
</h2>
|
|
|
|
</div>
|
|
|
|
<div class="column is-narrow">
|
|
|
|
<small>
|
2017-02-16 16:04:00 +01:00
|
|
|
<%= @event[:time].strftime('%A %d %B %Y %H:%M') %>
|
2017-02-09 16:55:30 +01:00
|
|
|
<br>
|
2017-02-16 16:04:00 +01:00
|
|
|
<%= @event[:location] %>
|
2017-02-09 16:55:30 +01:00
|
|
|
</small>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="description">
|
2017-02-16 16:04:00 +01:00
|
|
|
<%= @event[:description] %>
|
2017-02-09 16:55:30 +01:00
|
|
|
</div>
|
|
|
|
<div class="teaser">
|
2017-02-16 16:04:00 +01:00
|
|
|
<%= get_teaser(@event) %>
|
2017-02-09 16:55:30 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</a>
|