adding initial.js to show Gmail-like user avatars; adding avatar_image helper to abstract from plugin options adding the two currently used styles, profile and small

This commit is contained in:
David Gil
2015-08-12 17:25:13 +02:00
parent 2397344597
commit 925921d605
12 changed files with 104 additions and 17 deletions

View File

@@ -1,7 +1,7 @@
<div class="row">
<div id="comment-<%= comment.id %>" class="comment small-12 column">
<%= image_tag('user_default_2.jpg', class: 'user-photo left', size: '32x32') %>
<%= avatar_image(comment.user, style: :small, class: 'left') %>
<div class="comment-body">
<span class="comment-info">