little tweaks

This commit is contained in:
Brecht 2017-02-14 15:03:38 +01:00 committed by Lorin Werthen
parent fa7bdde3e9
commit 324d064e64
No known key found for this signature in database
GPG key ID: F11FFC921E0E08E0
3 changed files with 3 additions and 5 deletions

View file

@ -20,7 +20,6 @@ order: 20
article: event, article: event,
small_text: event[:time].strftime('%A %d %B %Y %H:%M'), small_text: event[:time].strftime('%A %d %B %Y %H:%M'),
location: event[:location], location: event[:location],
htmlclass: event[:banner].nil? ? "" : "highlighted",
color: event[:color] %> color: event[:color] %>
</div> </div>
<!-- Render old event_preview when using subevent, for now not used <!-- Render old event_preview when using subevent, for now not used
@ -51,7 +50,6 @@ order: 20
article: event, article: event,
small_text: event[:time].strftime('%A %d %B %Y %H:%M'), small_text: event[:time].strftime('%A %d %B %Y %H:%M'),
location: event[:location], location: event[:location],
htmlclass: event[:banner].nil? ? "" : "highlighted",
color: event[:color] %> color: event[:color] %>
</div> </div>
<!-- Render old event_preview when using subevent, for now not used <!-- Render old event_preview when using subevent, for now not used

View file

@ -15,7 +15,7 @@
<% if item[:banner] %> <% if item[:banner] %>
<section class="hero is-medium is-primary is-bold" style="background-image:url('<%= item[:banner] %>');background-position:center;"> <section class="hero is-medium is-primary is-bold" style="background-image:url('<%= item[:banner] %>');background-position:center;">
<% elsif item[:color] %> <% elsif item[:color] %>
<section class="hero is-medium is-primary is-bold" style="background-image: linear-gradient(to top right,rgba(255,255,255,0),rgba(0,0,0,.75)); background-color:<%= item[:color] %>;"> <section class="hero is-medium is-primary is-bold" style="background-image: linear-gradient(to top right,rgba(255,255,255,0),rgba(0,0,0,.60)); background-color:<%= item[:color] %>;">
<% else %> <% else %>
<section class="hero is-medium is-primary is-bold"> <section class="hero is-medium is-primary is-bold">
<% end %> <% end %>

View file

@ -1,9 +1,9 @@
<% if @article[:banner] %> <% if @article[:banner] %>
<a href="<%= @article.path %>" class="tile is-child box backgroundimg <%= @htmlclass %>" <a href="<%= @article.path %>" class="tile is-child box backgroundimg highlighted"
style="background-image:url('<%= @article[:banner] %>');"> style="background-image:url('<%= @article[:banner] %>');">
<% elsif @article[:color] %> <% elsif @article[:color] %>
<a href="<%= @article.path %>" class="tile is-child box backgroundimg highlighted" <a href="<%= @article.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,.75)); background-color:<%= @article[:color] %>;"> style="background-image: linear-gradient(to top right,rgba(255,255,255,0),rgba(0,0,0,.60)); background-color:<%= @article[:color] %>;">
<% else %> <% else %>
<a href="<%= @article.path %>" class="tile is-child box backgroundimg"> <a href="<%= @article.path %>" class="tile is-child box backgroundimg">
<% end %> <% end %>