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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user