Fix loading avatar image

This commit is contained in:
Kasia Jarmołkowicz 2018-05-18 17:18:57 +02:00 committed by Eric Schultz
parent d888be0242
commit bb0bebe8f7

View file

@ -4,7 +4,7 @@
<section class='sideNav-section'> <section class='sideNav-section'>
<a class='sideNav-link' href='<%= profile_url(current_user.profile) %>'> <a class='sideNav-link' href='<%= profile_url(current_user.profile) %>'>
<% if current_user.profile.picture? %> <% if current_user.profile.picture? %>
<img class='sideNav-profile'src="<%= current_user.profile.get_profile_picture(:tiny) %>')"> <img class='sideNav-profile' src="<%= current_user.profile.get_profile_picture(:tiny) %>">
<% else %> <% else %>
<i class="sideNav-icon icon-user-1"></i> <i class="sideNav-icon icon-user-1"></i>
<% end %> <% end %>
@ -46,4 +46,3 @@
</section> </section>
<% end %> <% end %>