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

@@ -14,7 +14,7 @@
<h1><%= @debate.title %></h1>
<div class="debate-info">
<%= image_tag('user_default.jpg', class: 'author-photo', size: '32x32') %>
<%= avatar_image(@debate.author, style: :small) %>
<span class="author">
<%= @debate.author.name %>
</span>
@@ -62,4 +62,4 @@
<%= render @debate.root_comments.recent %>
</div>
</div>
</section>
</section>