<%= nested_structures_site structure.new_structure.hash_tree %>
<%= link_to "Redação dada pela #{structure.new_structure.first.law.law_type.name} n° #{structure.new_structure.first.law.number}/#{structure.new_structure.first.law.year}", law_details_path(structure.new_structure.first.law, :type_view => :consolidada) %>
<% end %>
<% else %>
<%= nested_structures_site structure.new_structure.hash_tree %>
<%= link_to "Redação dada pela #{structure.new_structure.first.law.law_type.name} n° #{structure.new_structure.first.law.number}/#{structure.new_structure.first.law.year}", law_details_path(structure.new_structure.first.law, :type_view => :consolidada) %>
<% end %>
<% end %>
<% else %>
<% if structure.centraliza? %>
<%=structure.order %>
<%= raw structure.content %>
<%= link_to "Redação adicionada pela #{structure.new_law.law_type.name} n° #{structure.new_law.number}/#{structure.new_law.year}", law_details_path(structure.new_law, :type_view => :consolidada) if structure.new_law_id.present? %>
<% if !structure.versions.empty? %>
<%= nested_structures_site structure.new_structure.hash_tree %>
<%= link_to "Redação dada pela #{structure.new_structure.first.law.law_type.name} n° #{structure.new_structure.first.law.number}/#{structure.new_structure.first.law.year}", law_details_path(structure.new_structure.first.law, :type_view => :consolidada) %>
<% end %>
<% else %>
<%=structure.order %>
<%= raw structure.content %>
<%= link_to "Redação adicionada pela #{structure.new_law.law_type.name} n° #{structure.new_law.number}/#{structure.new_law.year}", law_details_path(structure.new_law, :type_view => :consolidada) if structure.new_law_id.present? %>
<% if !structure.versions.empty? %>
<%= nested_structures_site structure.new_structure.hash_tree %>
<%= link_to "Redação dada pela #{structure.new_structure.first.law.law_type.name} n° #{structure.new_structure.first.law.number}/#{structure.new_structure.first.law.year}", law_details_path(structure.new_structure.first.law, :type_view => :consolidada) %>
<% end %>
<% end %>
<% end %>