podemos-info/census

View on GitHub
app/views/orders_batches/_downloads.arb

Summary

Maintainability
Test Coverage
# frozen_string_literal: true

table_for orders_batch.last_downloads do
  column do |download|
    span link_to download.name, url_for([orders_batch, download])
  end
  column do |download|
    span download.created_at.to_date.to_s(:db)
  end
end
ul do
  li link_to t("census.people.view_downloads"), orders_batch_downloads_path(orders_batch_id: orders_batch.id)
end