Merge pull request #193 from ZeusWPI/iconify

Add icons to events preview
This commit is contained in:
lorin 2017-10-11 17:58:34 +02:00 committed by GitHub
commit 9a7fb313c3
2 changed files with 4 additions and 3 deletions

View file

@ -8,7 +8,7 @@
<a href="<%= @event.path %>" class="tile is-child box backgroundimg">
<% end %>
<div class="content">
<div class="columns">
<div class="columns events-tile">
<div class="column">
<h2>
<%= @event[:title] %>
@ -16,9 +16,9 @@
</div>
<div class="column is-narrow">
<small>
<%= @event[:time].strftime('%A %d %B %Y %H:%M') %>
<%= fa :'clock-o' , fw: true %><%= @event[:time].strftime('%A %d %B %Y %H:%M') %>
<br>
<%= @event[:location] %>
<%= fa :'map-marker', fw: true %><%= @event[:location] %>
</small>
</div>
</div>

View file

@ -6,6 +6,7 @@ module FontAwesomeHelper
classes << 'fa-li' if opts[:li]
classes << "fa-stack-#{opts[:stack]}" if opts[:stack]
classes << 'fa-inverse' if opts[:inverse]
classes << 'fa-fw' if opts[:fw]
classes << opts[:class]
"<i class='#{classes.reject(&:nil?).join(' ')}'></i>"