From 822ae2db4912e9cd2710c2faa33c27aba45ff041 Mon Sep 17 00:00:00 2001 From: Wout Schellaert Date: Wed, 11 Oct 2017 00:33:37 +0200 Subject: [PATCH] Add icons to events preview --- layouts/partials/_events_tile.erb | 6 +++--- lib/helpers/font_awesome.rb | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/layouts/partials/_events_tile.erb b/layouts/partials/_events_tile.erb index e19d22c..6047772 100644 --- a/layouts/partials/_events_tile.erb +++ b/layouts/partials/_events_tile.erb @@ -8,7 +8,7 @@ <% end %>
-
+

<%= @event[:title] %> @@ -16,9 +16,9 @@

- <%= @event[:time].strftime('%A %d %B %Y %H:%M') %> + <%= fa :'clock-o' , fw: true %><%= @event[:time].strftime('%A %d %B %Y %H:%M') %>
- <%= @event[:location] %> + <%= fa :'map-marker', fw: true %><%= @event[:location] %>
diff --git a/lib/helpers/font_awesome.rb b/lib/helpers/font_awesome.rb index 293b304..563e408 100644 --- a/lib/helpers/font_awesome.rb +++ b/lib/helpers/font_awesome.rb @@ -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] ""