_list.html.haml revision c1d8e2d429e199cfca7964aedbdb16c6b170f9ee
132N/A%table.entities
132N/A %thead
132N/A %tr
132N/A %th{style:"border:0"}
132N/A %th Text
132N/A - if @show_name_column
132N/A %th Name
132N/A %tbody
132N/A - collection.each do |entity|
132N/A %tr
132N/A %td
132N/A - unless false #entity.oops_responses.empty?
132N/A = link_to "javascript:$('.pitfall#entity_" + entity.id.to_s + "').toggle();void(0)" do
132N/A %i.icon-warning-sign
132N/A = entity.oops_responses.count
132N/A - if @show_name_column
132N/A %td= entity.text
132N/A %td= entity.name
132N/A - else
132N/A - if entity.display_name
1149N/A %td= iri_tooltip(entity, entity.display_name)
132N/A - else
132N/A %td= name_highlighter(entity)
215N/A %tr{:class => "pitfall", :id => "entity_" + entity.id.to_s, :style => "display:none"}
132N/A %td
1215N/A %td{colspan:2, style:"box-shadow:inset 0 0 5px grey"}
1215N/A %ul
1215N/A - entity.oops_responses.each do |response|
1215N/A %li= response
1176N/A