_list.html.haml revision d327eb79653cf7820fe583473ab35816d44cd757
%table.symbols
- if @show_name_column
%thead
%tr
%th{style:"border:0"}
%th Text
%th Name
%tbody
- collection.each do |symbol|
%tr
%td
- if symbol.oops_responses.any?
= link_to "#" do
= oops_icons symbol.oops_responses
- if @show_name_column
%td= symbol.text
%td= link_to symbol.name, url_for(symbol)
- else
- if symbol.display_name
%td= link_to symbol.display_name, url_for(symbol)
- else
%td= name_highlighter(symbol)
- if symbol.oops_responses.any?
%tr{:style => "display:none"}
%tr.pitfall{:style => "display:none"}
%td
%td{colspan:2, style:"box-shadow:inset 0 0 5px grey"}
%dl.oops-responses
- symbol.oops_responses.each do |response|
%dt{ title: response.element_type }
%i{ class: oops_icon(response.element_type) }
%dd
%strong
= response.name
%p= response.description