0
0

Pull out full li element into admin/status_edits/status_edit partial (#29499)

This commit is contained in:
Matt Jankowski 2024-03-19 12:11:10 -04:00 committed by GitHub
parent ffc5be4820
commit 4c84891453
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 30 additions and 31 deletions

View File

@ -1,3 +1,13 @@
%li
.history__entry
%h5
- if status_edit_iteration.first?
= t('admin.statuses.original_status')
- else
= t('admin.statuses.status_changed')
·
%time.formatted{ datetime: status_edit.created_at.iso8601, title: l(status_edit.created_at) }= l(status_edit.created_at)
.status .status
.status__content>< .status__content><
- if status_edit.spoiler_text.blank? - if status_edit.spoiler_text.blank?

View File

@ -47,15 +47,4 @@
%h3= t('admin.statuses.history') %h3= t('admin.statuses.history')
%ol.history %ol.history
- batched_ordered_status_edits.with_index do |status_edit, i| = render partial: 'admin/status_edits/status_edit', collection: batched_ordered_status_edits
%li
.history__entry
%h5
- if i.zero?
= t('admin.statuses.original_status')
- else
= t('admin.statuses.status_changed')
·
%time.formatted{ datetime: status_edit.created_at.iso8601, title: l(status_edit.created_at) }= l(status_edit.created_at)
= render status_edit