.widget header> - if params[:reconhecimento_de_divida].present? h5 ' Lista de span.fw-semi-bold Reconhecimentos de Dívida #{exercicio_atual} - elsif params[:confirmados].present? h5 ' Lista de span.fw-semi-bold Empenhos #{exercicio_atual} - else h5 ' Lista de span.fw-semi-bold Solicitações de Empenho #{exercicio_atual} .widget-body - if empenhos.empty? h6 Nenhum registro encontrado. - else .table-responsive.font-small table.table.table-hover thead tr th Número th.center Data th Modalidade th Proj/Ativ th Elem. Despesa th Sub. Elem th Fornecedor th UO th Fonte th width="80" Valor - unless params[:anulados].present? th width="80" Saldo th Status th - unless logado_na_licitacao? th width="40" tbody - empenhos.each do |empenho| tr td style="font-weight: 600" / Esse modo comentado era como o Edson havia solicitado, mas a Eduarda pediu de outra forma /- if params[:confirmados].present? || params[:reconhecimento_de_divida].present? - if empenho.confirmado_ou_superior? && empenho.numero_do_empenho.present? = empenho.numero_do_empenho - else = empenho.numero_da_solicitacao_do_empenho - if empenho.confirmado_ou_superior? && empenho.data_do_empenho.present? td.center style="font-weight: 600" = empenho.try(:data_do_empenho) - else td.center style="font-weight: 600" = empenho.try(:data_de_solicitacao) td.center =< modalidade_label empenho.localizar(:modalidade), empenho.modalidade td.center = empenho.try(:orcamento_da_despesa).try(:elemento_de_despesa_por_subacao).try(:subacao).try(:acao).try(:codigo_completo) td.center title="#{empenho.try(:elemento_de_despesa).try(:codigo_e_descricao)}" = empenho.try(:elemento_de_despesa).try(:codigo_formatado) td.center title="#{empenho.try(:sub_elemento_de_despesa).try(:codigo_e_descricao)}" = empenho.try(:sub_elemento_de_despesa).try(:codigo) td = empenho.try(:pessoa).try(:nome_e_cpf_ou_cnpj) td = empenho.unidade_orcamentaria.try(:sigla) td.center span.fa.fa-question-circle data-toggle="tooltip" data-placement="bottom" title="#{empenho.try(:orcamento_da_despesa).try(:codigo_e_descricao_fonte)}" td class="#{'text-danger bold' if empenho.definir_valor_do_empenho.to_f == 0}" = empenho.definir_valor_do_empenho.to_f.real_contabil - unless params[:anulados].present? td = empenho.saldo.to_d.real_contabil td =< status_empenho_label empenho.localizar(:status), empenho.status - if empenho.possui_anulacoes_confirmadas? td.center span.label.label-danger data-toggle="tooltip" data-placement="bottom" title="Empenho possui um valor de #{empenho.valor_anulado.real_contabil} em anulações confirmadas" A - else td - unless logado_na_licitacao? td width="120" = link_to empenho_path(empenho), class: "btn btn-default btn-sm mb-xs", title: "Ver Detalhes" do i.icone-detalhar - if (!empenho.enviado_ao_sim? && !empenho.possui_anulacoes?) || Configuracao.last.implantacao? - if (empenho.solicitado? || empenho.aguardando_alteracao_do_orcamento?) || Configuracao.last.implantacao = botao_com_permissao edit_empenho_path(empenho), {acao: :update}, { \ class_icone:'icone-editar', params: {class: 'btn btn-default btn-sm mb-xs', title: "Editar"}, } - if !empenho.existe_liquidacoes? || Configuracao.last.implantacao = botao_com_permissao empenho_path(empenho, index: true), {acao: :destroy}, { \ class_icone:'icone-excluir', params: { \ method: :delete, data: { confirm: 'Tem certeza?' }, class: 'btn btn-default btn-sm mb-xs', title: "Excluir", }, } - if controller.class.name.demodulize == "EmpenhosController" = will_paginate empenhos, :params => { @action_empenhos => true }, previous_label: "<", next_label: ">"