2017-02-14 14:57:40 +01:00
|
|
|
<% if @article[:banner] %>
|
2017-02-14 15:03:38 +01:00
|
|
|
<a href="<%= @article.path %>" class="tile is-child box backgroundimg highlighted"
|
2017-02-14 14:57:40 +01:00
|
|
|
style="background-image:url('<%= @article[:banner] %>');">
|
|
|
|
<% elsif @article[:color] %>
|
2017-02-13 19:07:49 +01:00
|
|
|
<a href="<%= @article.path %>" class="tile is-child box backgroundimg highlighted"
|
2017-02-14 15:03:38 +01:00
|
|
|
style="background-image: linear-gradient(to top right,rgba(255,255,255,0),rgba(0,0,0,.60)); background-color:<%= @article[:color] %>;">
|
2017-02-14 14:57:40 +01:00
|
|
|
<% else %>
|
|
|
|
<a href="<%= @article.path %>" class="tile is-child box backgroundimg">
|
|
|
|
<% end %>
|
|
|
|
<div class="content">
|
2017-02-09 16:55:30 +01:00
|
|
|
<div class="columns">
|
|
|
|
<div class="column">
|
|
|
|
<h2>
|
|
|
|
<%= @article[:title] %>
|
|
|
|
</h2>
|
|
|
|
</div>
|
|
|
|
<div class="column is-narrow">
|
|
|
|
<small>
|
|
|
|
<%= @small_text %>
|
|
|
|
<br>
|
|
|
|
<%= @location %>
|
|
|
|
</small>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="column is-narrow">
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
<%= @article[:description] %>
|
|
|
|
</div>
|
|
|
|
<div class="teaser">
|
|
|
|
<%= get_teaser(@article) %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</a>
|