Wrap datetime in time
element with attrs (#32177)
This commit is contained in:
parent
1e19242134
commit
97db4bd4dd
3 changed files with 9 additions and 3 deletions
|
@ -61,7 +61,8 @@
|
||||||
%tbody
|
%tbody
|
||||||
- @backups.each do |backup|
|
- @backups.each do |backup|
|
||||||
%tr
|
%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?
|
- if backup.processed?
|
||||||
%td= number_to_human_size backup.dump_file_size
|
%td= number_to_human_size backup.dump_file_size
|
||||||
%td= table_link_to 'download', t('exports.archive_takeout.download'), download_backup_url(backup)
|
%td= table_link_to 'download', t('exports.archive_takeout.download'), download_backup_url(backup)
|
||||||
|
|
|
@ -55,7 +55,10 @@
|
||||||
= t("imports.states.#{import.state}")
|
= t("imports.states.#{import.state}")
|
||||||
%td
|
%td
|
||||||
#{import.imported_items} / #{import.total_items}
|
#{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
|
%td
|
||||||
- num_failed = import.processed_items - import.imported_items
|
- num_failed = import.processed_items - import.imported_items
|
||||||
- if num_failed.positive?
|
- if num_failed.positive?
|
||||||
|
|
|
@ -15,7 +15,9 @@
|
||||||
%tbody
|
%tbody
|
||||||
- @events.each do |event|
|
- @events.each do |event|
|
||||||
%tr
|
%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)
|
%td= t("severed_relationships.event_type.#{event.type}", target_name: event.target_name)
|
||||||
- if event.purged?
|
- if event.purged?
|
||||||
%td{ rowspan: 2 }= t('severed_relationships.purged')
|
%td{ rowspan: 2 }= t('severed_relationships.purged')
|
||||||
|
|
Loading…
Reference in a new issue