make batch show a lil' better

This commit is contained in:
24c02 2025-06-30 15:30:42 -04:00
parent a04605d666
commit 2f7d25f9de
2 changed files with 6 additions and 2 deletions

View file

@ -13,7 +13,7 @@
</div>
<div class="text-sm mb-3">
<span class="text-gray-500">Letters:</span>
<%= @batch.addresses.count %>
<%= @batch.letters.count %>
</div>
<% if @batch.user_facing_title.present? %>
<div class="text-sm mb-3">
@ -21,6 +21,10 @@
<%= @batch.user_facing_title %>
</div>
<% end %>
<div class="text-sm mb-3">
<span class="text-gray-500">Total postage cost:</span>
<%= @batch.postage_cost %>
</div>
</div>
<div class="col-md-6">

View file

@ -3,7 +3,7 @@
<div class="page-header">
<h1 class="page-title">
Letter Batch #<%= @batch.id %>
<small>(<%= pluralize(@batch.addresses.count, 'letter') %>)</small>
<small>(<%= pluralize(@batch.letters.count, 'letter') %>)</small>
</h1>
<div class="actions">
<%= secondary_link_to "Back to batches", letter_batches_path do %>