diaspora/app/views/bookmarks/_bookmark.html.haml

14 lines
431 B
Text

%li.message{:class => ("mine" if mine?(post))}
%span.from
= link_to post.owner, "#"
%b shared a link
%br
= post.title
/- (foo = post.link.to_s)
/- (bar = post.link)
%a{:href => "#{post.link}"}
= post.link
%div.time= link_to "#{time_ago_in_words(post.updated_at)} ago", bookmark_path(post)
- if mine?(post)
= link_to 'Destroy', bookmark_path(post), :confirm => 'Are you sure?', :method => :delete