mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-23 13:22:00 +01:00
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
|
||||
- @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)
|
||||
|
|
|
@ -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?
|
||||
|
|
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue