[#277] fix showing edit user link

This commit is contained in:
Alexander Machehin 2013-08-26 15:54:47 +06:00
parent 234b0a2075
commit 57fd79e17c
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@
%p{:title => user.try(:name)}
- if user
= short_message(user.name, 28)
= link_to image_tag('gears.png'), edit_url
= link_to image_tag('gears.png'), edit_url if can?(:edit, user)
.both
- if user
%p.info.first