Advertisement
Guest User

index.html.haml

a guest
Jun 5th, 2013
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rails 0.47 KB | None | 0 0
  1. %h2 List of all statuses
  2.  
  3. %br
  4. - @statuses.reverse_each do |status|
  5.   - if can_display_status?(status)
  6.     .status
  7.       .row
  8.         .span1
  9.           .avatar= link_to image_tag(status.user.gravatar_url), profile_path(status.user)
  10.         .span11
  11.           .content
  12.             %strong= status.user.full_name
  13.             %p= status.content
  14.             = status_document_link(status)
  15.             .meta
  16.               = time_ago_in_words(status.created_at) + " ago"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement