1
0
Fork 0

Add glyphicon

This commit is contained in:
Andrew Tomaka 2014-10-27 11:16:10 -04:00
parent 846d6e6465
commit ed72967007
2 changed files with 6 additions and 1 deletions

View File

@ -3,6 +3,10 @@ module ApplicationHelper
bootstrap_classes[flash_type] || flash_type.to_s
end
def glyph(icon)
content_tag(:i, class: "glyphicon glyphicon-#{icon}") {}
end
private
def bootstrap_classes

View File

@ -16,7 +16,8 @@
<td><%= user.created_at %></td>
<td><%= user.updated_at %></td>
<td>
<%= link_to '+', friendships_path(:friend_id => user), :method => :post %>
<%= link_to glyph('plus'), friendships_path(:friend_id => user),
:method => :post %>
</td>
</tr>
<% end %>