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">
|
<a href="<%= @event.path %>" class="tile is-child box backgroundimg">
|
||||||
<% end %>
|
<% end %>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="columns">
|
<div class="columns events-tile">
|
||||||
<div class="column">
|
<div class="column">
|
||||||
<h2>
|
<h2>
|
||||||
<%= @event[:title] %>
|
<%= @event[:title] %>
|
||||||
|
@ -16,9 +16,9 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="column is-narrow">
|
<div class="column is-narrow">
|
||||||
<small>
|
<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>
|
<br>
|
||||||
<%= @event[:location] %>
|
<%= fa :'map-marker', fw: true %><%= @event[:location] %>
|
||||||
</small>
|
</small>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -6,6 +6,7 @@ module FontAwesomeHelper
|
||||||
classes << 'fa-li' if opts[:li]
|
classes << 'fa-li' if opts[:li]
|
||||||
classes << "fa-stack-#{opts[:stack]}" if opts[:stack]
|
classes << "fa-stack-#{opts[:stack]}" if opts[:stack]
|
||||||
classes << 'fa-inverse' if opts[:inverse]
|
classes << 'fa-inverse' if opts[:inverse]
|
||||||
|
classes << 'fa-fw' if opts[:fw]
|
||||||
classes << opts[:class]
|
classes << opts[:class]
|
||||||
|
|
||||||
"<i class='#{classes.reject(&:nil?).join(' ')}'></i>"
|
"<i class='#{classes.reject(&:nil?).join(' ')}'></i>"
|
||||||
|
|
Loading…
Reference in a new issue