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

18 lines
649 B
Text
Raw Permalink Normal View History

<div class="tile box highlighted"
<% if event[:color] %>
style="background-image: linear-gradient(to top right,rgba(255,255,255,0),rgba(0,0,0,.60)); background-color:<%= event[:color] %>;"
<% else %>
style="background-image: linear-gradient(to top right,rgba(255,255,255,0),rgba(0,0,0,.60)); background-color: lightgrey;"
<% end %>
>
2019-12-06 20:37:33 +01:00
<div class="content event-content">
<% if @event[:image] %>
2019-12-06 20:37:33 +01:00
<img class="event-tile-image" src="<%= @event[:image] %>" alt="">
<% end %>
<div class="has-text-centered">
<h3><%= @event[:title] %></h3>
<p><%= @event[:description] %></p>
2019-12-06 20:37:33 +01:00
</div>
</div>
</div>