Implement tootsuite-style account fields
glitch-soc-style still in backup, both sharing the same SCSS style
This commit is contained in:
@ -21,20 +21,19 @@
|
||||
= t 'accounts.roles.moderator'
|
||||
.bio
|
||||
.account__header__content.p-note.emojify!=processed_bio[:text]
|
||||
- if processed_bio[:metadata].length > 0
|
||||
%table.metadata<
|
||||
- processed_bio[:metadata].each do |i|
|
||||
%tr.metadata-item><
|
||||
%th.emojify>!=i[0]
|
||||
%td.emojify>!=i[1]
|
||||
|
||||
- unless account.fields.empty?
|
||||
- if !account.fields.empty?
|
||||
%table.account__header__fields
|
||||
%tbody
|
||||
- account.fields.each do |field|
|
||||
%tr
|
||||
%th.emojify= field.name
|
||||
%td.emojify= Formatter.instance.format_field(account, field.value)
|
||||
- elsif processed_bio[:metadata].length > 0
|
||||
%table.account__header__fields<
|
||||
- processed_bio[:metadata].each do |i|
|
||||
%tr
|
||||
%th.emojify>!=i[0]
|
||||
%td.emojify>!=i[1]
|
||||
|
||||
.details-counters
|
||||
.counter{ class: active_nav_class(short_account_url(account)) }
|
||||
|
Reference in New Issue
Block a user