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