paulfioravanti/sample_app

View on GitHub
app/views/shared/_feed_item.html.haml

Summary

Maintainability
Test Coverage
%li{ id: feed_item.id }
  = link_to gravatar_for(feed_item.user), feed_item.user
  %span.user= link_to feed_item.user.name, feed_item.user
  %span.content= wrap(feed_item.content)
  %span.timestamp
    = t('.time_posted_prefix')
    %time<
      = timeago_tag(feed_item.created_at)
      = t('.time_posted_suffix')
  - if current_user?(feed_item.user)
    = render 'shared/delete_micropost', micropost: feed_item