diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2018-04-04 01:11:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-04 01:11:26 +0200 |
commit | 07176fed374b0ef94aacd1f3ea95b6dec2eb79dd (patch) | |
tree | 5167220be2abfb3cc45c1f7879152bf7db475ae7 /app/views/about | |
parent | d8d42179590db772cc5b1873385cba7e5afe20df (diff) |
Add contact account to landing page ("Administered by") (#6984)
Diffstat (limited to 'app/views/about')
-rw-r--r-- | app/views/about/show.html.haml | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/app/views/about/show.html.haml b/app/views/about/show.html.haml index 85e5442af..12213cda2 100644 --- a/app/views/about/show.html.haml +++ b/app/views/about/show.html.haml @@ -108,6 +108,28 @@ %div %h3= t 'about.what_is_mastodon' %p= t 'about.about_mastodon_html' + %div.contact + %h3= t 'about.administered_by' + + .account + .account__wrapper + - if @instance_presenter.contact_account + = link_to TagManager.instance.url_for(@instance_presenter.contact_account), class: 'account__display-name' do + .account__avatar-wrapper + .account__avatar{ style: "background-image: url(#{@instance_presenter.contact_account.avatar.url})" } + %span.display-name + %bdi + %strong.display-name__html.emojify= display_name(@instance_presenter.contact_account) + %span.display-name__account @#{@instance_presenter.contact_account.acct} + - else + .account__display-name + .account__avatar-wrapper + .account__avatar{ style: "background-image: url(#{full_asset_url('avatars/original/missing.png', skip_pipeline: true)})" } + %span.display-name + %strong= t 'about.contact_missing' + %span.display-name__account= t 'about.contact_unavailable' + + = link_to t('about.learn_more'), about_more_path, class: 'button button-alternative' = render 'features' |