瀏覽代碼

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 年之前
父節點
當前提交
59a8d26073
共有 1 個文件被更改,包括 1 次插入1 次删除
  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 %>