simplify emojification on public pages with .emojify class
This commit is contained in:
@ -4,10 +4,10 @@
|
||||
%div.avatar
|
||||
= image_tag status.account.avatar.url(:original), width: 48, height: 48, alt: '', class: 'u-photo'
|
||||
%span.display-name
|
||||
%strong.p-name= display_name(status.account)
|
||||
%strong.p-name.emojify= display_name(status.account)
|
||||
%span.p-nickname= acct(status.account)
|
||||
|
||||
.status__content.e-content.p-name= Formatter.instance.format(status)
|
||||
.status__content.e-content.p-name.emojify= Formatter.instance.format(status)
|
||||
|
||||
- unless status.media_attachments.empty?
|
||||
- if status.media_attachments.first.video?
|
||||
|
@ -1,5 +1,5 @@
|
||||
.entry.entry-favourite
|
||||
.content
|
||||
.content.emojify
|
||||
%strong= favourite.account.acct
|
||||
= t('stream_entries.favourited')
|
||||
%strong= favourite.status.account.acct
|
||||
|
@ -1,5 +1,5 @@
|
||||
.entry.entry-follow
|
||||
.content
|
||||
.content.emojify
|
||||
%strong= link_to follow.account.acct, account_path(follow.account)
|
||||
= t('stream_entries.is_now_following')
|
||||
%strong= link_to follow.target_account.acct, TagManager.instance.url_for(follow.target_account)
|
||||
|
@ -9,10 +9,10 @@
|
||||
%div
|
||||
= image_tag status.account.avatar(:original), width: 48, height: 48, alt: '', class: 'u-photo'
|
||||
%span.display-name
|
||||
%strong.p-name= display_name(status.account)
|
||||
%strong.p-name.emojify= display_name(status.account)
|
||||
%span.p-nickname= acct(status.account)
|
||||
|
||||
.status__content.e-content.p-name= Formatter.instance.format(status)
|
||||
.status__content.e-content.p-name.emojify= Formatter.instance.format(status)
|
||||
|
||||
- unless status.media_attachments.empty?
|
||||
.status__attachments
|
||||
|
Reference in New Issue
Block a user