Browse Source

Fix wrong number of arguments error in icon in Masquerade (#52)

Fixes the wrong number of arguments error (gem font-awesome now requires the syntax to be <%= icon('fas','nameOfIcon') %>)
flprben 6 years ago
parent
commit
59a8d26073
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/views/shared/_navbar.html.erb

+ 1 - 1
app/views/shared/_navbar.html.erb

@@ -1,7 +1,7 @@
 <% if user_masquerade? %>
   <div class="alert alert-warning text-center">
     You're logged in as <b><%= current_user.name %> (<%= current_user.email %>)</b>
-    <%= link_to back_masquerade_path(current_user) do %><%= icon("times") %> Logout <% end %>
+    <%= link_to back_masquerade_path(current_user) do %><%= icon("fas", "times") %> Logout <% end %>
   </div>
 <% end %>