add author-photo css class to author avatar

This commit is contained in:
David Gil
2015-08-12 18:58:48 +02:00
parent d870706a26
commit 2b16716ee1
2 changed files with 1 additions and 6 deletions

View File

@@ -371,13 +371,8 @@
} }
.author-photo { .author-photo {
border-radius: 2px;
display: inline-block;
height: 32px;
line-height: $line-height*2; line-height: $line-height*2;
margin-right: $line-height/4; margin-right: $line-height/4;
vertical-align: middle;
width: 32px;
} }
.author { .author {

View File

@@ -14,7 +14,7 @@
<h1><%= @debate.title %></h1> <h1><%= @debate.title %></h1>
<div class="debate-info"> <div class="debate-info">
<%= avatar_image(@debate.author, size: 32) %> <%= avatar_image(@debate.author, size: 32, class: 'author-photo') %>
<span class="author"> <span class="author">
<%= @debate.author.name %> <%= @debate.author.name %>
</span> </span>