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

34 lines
1.2 KiB
Text
Raw Permalink 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-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] %>;">
<% 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">
<% if @event[:image] %>
<img class="event-tile-image" src="<%= @event[:image] %>" alt="">
<% end %>
2017-10-11 22:31:19 +02:00
<div class="event-text">
<h2 class="is-size-4-mobile has-text-centered">
2017-10-11 22:31:19 +02:00
<%= @event[:title] %>
</h2>
2017-10-11 22:31:19 +02:00
<div class="is-size-6-mobile description has-text-centered">
2017-10-11 22:31:19 +02:00
<%= @event[:description] %>
</div>
2017-10-11 22:31:19 +02:00
<hr/>
2017-10-11 22:31:19 +02:00
<div class="is-size-7-mobile 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] %>
</div>
</div>
2017-10-11 22:31:19 +02:00
</div>
</a>