Sha256: b39b6fb28e16fb45b5dea6f2871153b6e0fd9184186bf99a021375fab6239f30

Contents?: true

Size: 819 Bytes

Versions: 15

Compression:

Stored size: 819 Bytes

Contents

- if table.comment 
  %h3 Comentarios
  <br> 
  #comments
    = render :partial =>'comments/post', :locals=>{:@post=>table.comment.posts}


  %br
     
  
  - if !table.comment.open 
    comentario cerrados
    -if can? :abrir, table.comment
      = link_to 'Abrir',{:controller=>'comments',:id=> table.comment.id, :action =>'open'}  
      %br
      = link_to 'Quitar comentarios',{:controller=>'comments',:id=> table.comment.id, :action =>'remove'}     
  - else 
    -if can? :cerrar,table.comment 
      = link_to 'Cerrar',{:controller=>'comments',:id=> table.comment.id, :action =>'close'} 
    -if can? :new, Post 
      = render :partial => "comments/form", :locals=>{:table=>table} 
   
     
- else 
  no hay comentarios
  = link_to 'Habilitar comentarios', "/comments/new?type=#{table.class}&id=#{table.id}" 

Version data entries

15 entries across 8 versions & 1 rubygems

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