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 Claire
parent 1e19242134
commit 97db4bd4dd
3 changed files with 9 additions and 3 deletions

View File

@ -61,7 +61,8 @@
%tbody
- @backups.each do |backup|
%tr
%td= l backup.created_at
%td
%time.formatted{ datetime: backup.created_at.iso8601, title: l(backup.created_at) }= l backup.created_at
- if backup.processed?
%td= number_to_human_size backup.dump_file_size
%td= table_link_to 'download', t('exports.archive_takeout.download'), download_backup_url(backup)

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?

View File

@ -15,7 +15,9 @@
%tbody
- @events.each do |event|
%tr
%td= l event.created_at
%td
%time.formatted{ datetime: event.created_at.iso8601, title: l(event.created_at) }
= l(event.created_at)
%td= t("severed_relationships.event_type.#{event.type}", target_name: event.target_name)
- if event.purged?
%td{ rowspan: 2 }= t('severed_relationships.purged')