Files
growstuff/app/views/updates/_single.html.haml
2013-01-02 13:21:11 +00:00

25 lines
713 B
Plaintext

.well
.update
.row
.span1
= render :partial => "shared/avatar", :locals => { :member => update.user }
.span7
- if subject
%h3= link_to strip_tags(update.subject), update
.update-meta
Posted by
= link_to update.user.username, member_path(update.user)
at
= update.created_at
.update-body
:markdown
#{ strip_tags update.body }
- if current_user == update.user
.update-actions
= link_to 'Edit', edit_update_path(update), :class => 'btn'
= link_to 'Delete', update, method: :delete, |
data: { confirm: 'Are you sure?' }, :class => 'btn'