Add card with who invited you to join when displaying rules on sign-up (#23475)

This commit is contained in:
Claire
2023-06-02 18:35:37 +02:00
committed by GitHub
parent 94329f28e1
commit 0766c9a631
5 changed files with 21 additions and 16 deletions

View File

@ -1,9 +1,11 @@
- account_url = local_assigns[:admin] ? admin_account_path(account.id) : ActivityPub::TagManager.instance.url_for(account)
- compact ||= false
.card.h-card
= link_to account_url, target: '_blank', rel: 'noopener noreferrer' do
.card__img
= image_tag account.header.url, alt: ''
- unless compact
.card__img
= image_tag account.header.url, alt: ''
.card__bar
.avatar
= image_tag account.avatar.url, alt: '', width: 48, height: 48, class: 'u-photo'