#sheet_person.line_sheet_block{:id => person.id} %table{:style => "width:100%;"} %tr %td{:style => "width:16%;"}= "Oui" if person.newsletter %td{:style => "width:16%;"}= person.surname %td{:style => "width:16%;"}= person.firstname %td{:style => "width:16%;"}= person.email %td{:style => "width:16%;"}= person.phone %td{:style => "width:16%;"}= person.job %tr %td{:colspan => 5} -person.newsgroups.each do |ng| ="| "+ng.name+" |" %td{:style => "width:16%;text-align:right;"} -if has_permission?('adherent.edit') -if person == person.sheet.person -img = image_tag("/images/style/quartz-admin/principal_active.png") -else -img = image_tag("/images/style/quartz-admin/principal.png") = link_to img, :url => principal_admin_person_path(person), :method => :get, :remote => true -else =image_tag("/images/style/quartz-admin/principal_active.png") if person == person.sheet.person