Add glyphicon
This commit is contained in:
parent
846d6e6465
commit
ed72967007
2 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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 %>
|
||||
|
|
Loading…
Reference in a new issue