Wrap datetime in time element with attrs (#32177)

This commit is contained in:
Matt Jankowski 2024-10-01 08:45:58 -04:00 committed by GitHub
parent ec16ed37c3
commit 44071fdbae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 9 additions and 3 deletions

View file

@ -55,7 +55,10 @@
= t("imports.states.#{import.state}")
%td
#{import.imported_items} / #{import.total_items}
%td= l(import.created_at)
%td
%time.formatted{ datetime: import.created_at.iso8601, title: l(import.created_at) }
= l(import.created_at)
%td
- num_failed = import.processed_items - import.imported_items
- if num_failed.positive?