.widget header h5 ' Lista de span.fw-semi-bold Lotes Bancários .widget-body - if @lotes_bancarios.empty? h6 Nenhum registro encontrado. - else .table-responsive table.table.table-hover thead tr th width="180" Data do Lote th Número th Tipo th Conta Bancária th Tipo de Envio th Downloads th Status th Qtd. de Registros th width="150" tbody - @lotes_bancarios.each do |lote_bancario| tr td = lote_bancario.try(:data_do_lote) td = lote_bancario.numero td = lote_bancario.tipo_i18n td = lote_bancario.try(:conta_bancaria).to_s td = lote_bancario.envio_ao_banco_i18n td = lote_bancario.quantidade_de_downloads.to_i td - if lote_bancario.gerado? span.label.label-info GERADO - elsif lote_bancario.cancelado? span.label.label-danger CANCELADO - elsif lote_bancario.finalizado? span.label.label-success FINALIZADO td = lote_bancario.pagamentos_do_lote_bancario.size td = link_to lote_bancario, class: "btn btn-default btn-sm mb-xs", title: "Ver Detalhes" do i.icone-detalhar - if lote_bancario.pode_imprimir_arquivo? = link_to download_contabilidade_lote_bancario_path(lote_bancario), class: "btn btn-default btn-sm mb-xs", title: "Download", target: "_blank" do i.icone-baixar = will_paginate@lotes_bancarios, previous_label: "<", next_label: ">"