.widget header> h5 ' Lista de span.fw-semi-bold Centro de Custos por UG .widget-body - if @unidades_gestoras.empty? h6 Nenhum registro encontrado. - else .table-responsive table.table.table-hover thead tr th Unidade gestora th Quantidade de Níveis th Quantidade de Registros th width="100" tbody - @unidades_gestoras.each do |unidade_gestora| tr td = unidade_gestora.codigo_e_nome td = unidade_gestora.try(:centro_de_custo).try(:retorna_ultimo_nivel) td = unidade_gestora.try(:centro_de_custo).try(:centro_de_custos_filhos_todos).try(:size) td - if unidade_gestora.try(:centro_de_custo).try(:centro_de_custos_filhos_todos).try(:size).to_i > 0 = link_to controladoria_centro_de_custo_path(unidade_gestora) + "?flag=unidade_gestora", class: "btn btn-default btn-sm mb-xs", title: "Ver Detalhes" do i.icone-detalhar = botao_com_permissao edit_controladoria_centro_de_custo_path(unidade_gestora)+ "?flag=unidade_gestora", {acao: :update}, { \ class_icone:'icone-cadastrar', params: {class: 'btn btn-default btn-sm mb-xs', title: "Adicionar"}, } = will_paginate@unidades_gestoras, previous_label: "<", next_label: ">"