zeus.ugent.be/layouts/partials/_events_tile.erb
2017-10-11 00:33:37 +02:00

32 lines
1.1 KiB
Text

<% 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] %>;">
<% else %>
<a href="<%= @event.path %>" class="tile is-child box backgroundimg">
<% end %>
<div class="content">
<div class="columns events-tile">
<div class="column">
<h2>
<%= @event[:title] %>
</h2>
</div>
<div class="column is-narrow">
<small>
<%= fa :'clock-o' , fw: true %><%= @event[:time].strftime('%A %d %B %Y %H:%M') %>
<br>
<%= fa :'map-marker', fw: true %><%= @event[:location] %>
</small>
</div>
</div>
<div class="description">
<%= @event[:description] %>
</div>
<div class="teaser">
<%= get_teaser(@event) %>
</div>
</div>
</a>