.widget header> h5 ' Lista de span.fw-semi-bold Legislações .widget-body - if @decretos.empty? h6 Nenhum registro encontrado. - else .table-responsive table.table.table-hover thead tr th Data da legislação th Tipo de legislação th Número - if !params[:contigenciamento].present? && !params[:rpps].present? th Tipo de crédito th Classificação th Status th width="150" tbody - @decretos.each do |decreto| tr td = decreto.data_da_legislacao td = decreto.localizar(:tipo_de_legislacao) td = decreto.numero - if !decreto.contigenciamento? && !decreto.rpps? td = decreto.localizar(:tipo_de_credito) td = decreto.localizar(:classificacao) td.bold - if decreto.data_da_revogacao.present? = "Revogado".html_safe - else = decreto.status.humanize td = link_to rota_decreto(decreto), class: "btn btn-default btn-sm mb-xs", title: "Ver Detalhes" do i.icone-detalhar - if !decreto.enviado_para_o_sim? && !decreto.data_da_revogacao.present? && exercicio_em_vigor? = botao_com_permissao rota_decreto_edit(decreto), {acao: :update}, { \ class_icone:'icone-editar', params: {class: 'btn btn-default btn-sm mb-xs', title: "Editar"}, } - if esta_autorizado?(:destroy) && !decreto.data_da_revogacao.present? && !decreto.solicitacao_de_alteracao_orcamentarias.any? = botao_com_permissao decreto, {acao: :destroy}, { \ class_icone:'icone-excluir', params: { \ method: :delete, data: { confirm: 'Tem certeza?' }, class: 'btn btn-default btn-sm mb-xs', title: "Apagar", }, } = will_paginate @decretos, :params=> { @action_decretos => true }, previous_label: "<", next_label: ">"