about summary refs log tree commit diff
path: root/app/views
diff options
context:
space:
mode:
authorDavid Yip <yipdw@member.fsf.org>2018-04-04 13:56:58 -0500
committerDavid Yip <yipdw@member.fsf.org>2018-04-04 13:56:58 -0500
commit3ab6a8b8bed37d048909b178693af8411325eb38 (patch)
treedb371121cbfb240d1338e803dff136f3023c2b87 /app/views
parentbda1782cd864ed3aabb5a4d87359a1cb7595f4a6 (diff)
parent1c1042556d21e4c2eb22b7c5cbc11aa88087ca60 (diff)
Merge remote-tracking branch 'origin/master' into gs-master
  Conflicts:
 	spec/views/about/show.html.haml_spec.rb
Diffstat (limited to 'app/views')
-rw-r--r--app/views/about/show.html.haml22
1 files changed, 22 insertions, 0 deletions
diff --git a/app/views/about/show.html.haml b/app/views/about/show.html.haml
index 5594abecb..674771cbc 100644
--- a/app/views/about/show.html.haml
+++ b/app/views/about/show.html.haml
@@ -107,6 +107,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'