50 lines
2.3 KiB
Plaintext
50 lines
2.3 KiB
Plaintext
.detailed-status.detailed-status--flex{ class: "detailed-status-#{status.visibility}" }
|
|
= render 'statuses/author', author: status.account, autoplay: autoplay, detailed: true
|
|
|
|
= account_action_button(status.account)
|
|
|
|
= render 'statuses/text', status: status, autoplay: autoplay
|
|
|
|
- if status.quote?
|
|
= render 'statuses/quote', status: status.quote, autoplay: autoplay
|
|
|
|
= render 'statuses/media', status: status, autoplay: autoplay, detailed: true
|
|
|
|
.detailed-status__meta
|
|
%data.dt-published{ value: status.created_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)
|
|
·
|
|
%span.detailed-status__visibility-icon
|
|
= visibility_icon status
|
|
·
|
|
- if status.application && @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'
|
|
·
|
|
= link_to remote_interaction_path(status, type: :reply), class: 'modal-button detailed-status__link' do
|
|
- if status.in_reply_to_id.nil?
|
|
= fa_icon('reply')
|
|
- else
|
|
= fa_icon('reply-all')
|
|
%span.detailed-status__reblogs>= number_to_human status.replies_count, strip_insignificant_zeros: true
|
|
= " "
|
|
·
|
|
- if status.public_visibility? || status.unlisted_visibility?
|
|
= link_to remote_interaction_path(status, type: :reblog), class: 'modal-button detailed-status__link' do
|
|
= fa_icon('retweet')
|
|
%span.detailed-status__reblogs>= number_to_human status.reblogs_count, strip_insignificant_zeros: true
|
|
= " "
|
|
·
|
|
= link_to remote_interaction_path(status, type: :favourite), class: 'modal-button detailed-status__link' do
|
|
= fa_icon('star')
|
|
%span.detailed-status__favorites>= number_to_human status.favourites_count, strip_insignificant_zeros: true
|
|
= " "
|
|
|
|
- if user_signed_in?
|
|
·
|
|
= link_to t('statuses.open_in_web'), web_url("statuses/#{status.id}"), class: 'detailed-status__application', target: '_blank'
|