Add icons to events preview
This commit is contained in:
parent
8407e2195f
commit
822ae2db49
2 changed files with 4 additions and 3 deletions
|
@ -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>
|
||||
|
|
|
@ -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>"
|
||||
|
|
Loading…
Reference in a new issue