55 lines
2.3 KiB
Plaintext
55 lines
2.3 KiB
Plaintext
.detailed-status.detailed-status--flex{ class: "detailed-status-#{status.visibility}" }
|
|
= render 'statuses/author', author: status.account, detailed: true
|
|
|
|
= account_action_button(status.account)
|
|
|
|
= render 'statuses/text', status: status
|
|
|
|
- if status.quote?
|
|
= render 'statuses/quote', status: status.quote
|
|
|
|
= render 'statuses/media', status: status, detailed: true
|
|
|
|
.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_html', date: content_tag(:time, l(status.edited_at), datetime: status.edited_at.iso8601, title: l(status.edited_at), class: 'formatted'))
|
|
·
|
|
%span.detailed-status__visibility-icon
|
|
= visibility_icon status
|
|
·
|
|
- if status.application && status.account.user&.setting_show_application
|
|
- if status.application.website.blank?
|
|
%strong.detailed-status__application= status.application.name
|
|
- else
|
|
= link_to status.application.name, status.application.website, class: 'detailed-status__application', target: '_blank', rel: 'noopener noreferrer'
|
|
·
|
|
%span.detailed-status__link
|
|
- if status.in_reply_to_id.nil?
|
|
= fa_icon('reply')
|
|
- else
|
|
= fa_icon('reply-all')
|
|
%span.detailed-status__reblogs>= friendly_number_to_human status.replies_count
|
|
|
|
·
|
|
- if status.public_visibility? || status.unlisted_visibility?
|
|
%span.detailed-status__link
|
|
= fa_icon('retweet')
|
|
%span.detailed-status__reblogs>= friendly_number_to_human status.reblogs_count
|
|
|
|
·
|
|
%span.detailed-status__link
|
|
= fa_icon('star')
|
|
%span.detailed-status__favorites>= friendly_number_to_human status.favourites_count
|
|
|
|
|
|
- if user_signed_in?
|
|
·
|
|
= link_to t('statuses.open_in_web'), web_url("@#{status.account.pretty_acct}/#{status.id}"), class: 'detailed-status__application', target: '_blank', rel: 'noopener noreferrer'
|