Sha256: 23e432bfb0cb27d8dff78b820b29852e9d9afb909b9770e9c92801fb4dad6ab8

Contents?: true

Size: 613 Bytes

Versions: 7

Compression:

Stored size: 613 Bytes

Contents

- @post.each do |post|
  .ui-widget-content{:post_id=>post.id , :data_time=>post.created_at.to_i }
    .user.left{:style=>'width:100px; '}
      -if post.user
        = gravatar_url_for(post.user.email)
      -else
        = gravatar_url_for('aasdasasd')
    .title
      -if post.user
        = link_to post.user.username, post.user
      -else
        %b=post.name
      hace 
      = time_ago_in_words(post.created_at)
      -if can? :edit, post
        = link_to 'Editar', edit_post_path(post)
        = link_to 'Destroy', post, :confirm => 'Are you sure?', :method => :delete
    .entry
      = raw post.body

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
squeezer-0.2.1 lib/generators/squeezer/templates/app/views/comments/_post.html.haml
squeezer-0.2.0 lib/generators/squeezer/templates/app/views/comments/_post.html.haml
squeezer-0.1.11 lib/generators/squeezer/templates/app/views/comments/_post.html.haml
squeezer-0.1.7 lib/generators/squeezer/templates/app/views/comments/_post.html.haml
squeezer-0.1.6 lib/generators/squeezer/templates/app/views/comments/_post.html.haml
squeezer-0.1.5 lib/generators/squeezer/templates/app/views/comments/_post.html.haml
squeezer-0.1.4 lib/generators/squeezer/templates/app/views/comments/_post.html.haml