diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-01-20 13:37:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-20 13:37:31 +0100 |
commit | 6eea3f8f9c41114002782d7a44993004bdd64832 (patch) | |
tree | 61908857e416abfd74e7a5487c583fa1984f8946 /app/views/statuses | |
parent | 9eb775a9d1fd39bc2d255679bb12b2ff6f98080d (diff) |
Add post edited notice in admin and public UIs (#17335)
* Add edited toot flag on public pages * Add toot edit flag to admin pages
Diffstat (limited to 'app/views/statuses')
-rw-r--r-- | app/views/statuses/_detailed_status.html.haml | 5 | ||||
-rw-r--r-- | app/views/statuses/_simple_status.html.haml | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/app/views/statuses/_detailed_status.html.haml b/app/views/statuses/_detailed_status.html.haml index 6b3b81306..cd5ed52af 100644 --- a/app/views/statuses/_detailed_status.html.haml +++ b/app/views/statuses/_detailed_status.html.haml @@ -37,10 +37,15 @@ .detailed-status__meta %data.dt-published{ value: status.created_at.to_time.iso8601 } + - if status.edited? + %data.dt-updated{ value: status.edited_at.to_time.iso8601 } = link_to ActivityPub::TagManager.instance.url_for(status), class: 'detailed-status__datetime u-url u-uid', target: stream_link_target, rel: 'noopener noreferrer' do %time.formatted{ datetime: status.created_at.iso8601, title: l(status.created_at) }= l(status.created_at) · + - if status.edited? + = t('statuses.edited_at', date: l(status.edited_at)) + · %span.detailed-status__visibility-icon = visibility_icon status · diff --git a/app/views/statuses/_simple_status.html.haml b/app/views/statuses/_simple_status.html.haml index 728e6b9b0..0139d2016 100644 --- a/app/views/statuses/_simple_status.html.haml +++ b/app/views/statuses/_simple_status.html.haml @@ -7,6 +7,9 @@ %span.status__visibility-icon>< = visibility_icon status %time.time-ago{ datetime: status.created_at.iso8601, title: l(status.created_at) }= l(status.created_at) + - if status.edited? + %abbr{ title: t('statuses.edited_at', date: l(status.edited_at.to_date)) } + * %data.dt-published{ value: status.created_at.to_time.iso8601 } .p-author.h-card |