zeus.ugent.be/layouts/partials/_events_tile.erb

31 lines
1 KiB
Text
Raw Normal View History

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-02-16 16:04:00 +01:00
style="background-image:url('<%= @event[:banner] %>');">
<% 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] %>;">
<% else %>
2017-10-11 22:49:18 +02:00
<a href="<%= @event.path %>" class="tile event-tile is-child box backgroundimg">
<% 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] %>
</div>
2017-10-11 22:31:19 +02:00
<div class="is-divider"></div>
<div class="">
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] %>
</div>
</div>
2017-10-11 22:31:19 +02:00
</div>
</a>