about summary refs log tree commit diff
path: root/app/views
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-01-17 20:11:16 +0100
committerEugen Rochko <eugen@zeonfederated.com>2017-01-17 20:11:16 +0100
commitcde0476ca2d3338a0e4a9a480d978d0d61b61998 (patch)
tree4121a68455a88cb7b0d10ed3714682a42cc005da /app/views
parentfcb5a85cdd21b8a48c16cd02885933bcbdb07ec2 (diff)
Fix #487
Diffstat (limited to 'app/views')
-rw-r--r--app/views/about/more.html.haml20
1 files changed, 11 insertions, 9 deletions
diff --git a/app/views/about/more.html.haml b/app/views/about/more.html.haml
index 28300900c..2de3bf986 100644
--- a/app/views/about/more.html.haml
+++ b/app/views/about/more.html.haml
@@ -31,16 +31,18 @@
       .panel
         .panel-header= t 'about.contact'
         .panel-body
-          .owner
-            .avatar= image_tag @contact_account.avatar.url
-            .name
-              = link_to TagManager.instance.url_for(@contact_account) do
-                %span.display_name.emojify= display_name(@contact_account)
-                %span.username= "@#{@contact_account.acct}"
+          - if @contact_account
+            .owner
+              .avatar= image_tag @contact_account.avatar.url
+              .name
+                = link_to TagManager.instance.url_for(@contact_account) do
+                  %span.display_name.emojify= display_name(@contact_account)
+                  %span.username= "@#{@contact_account.acct}"
 
-          .contact-email
-            = t 'about.business_email'
-            %strong= @contact_email
+          - unless @contact_email.blank?
+            .contact-email
+              = t 'about.business_email'
+              %strong= @contact_email
       .panel
         .panel-header= t 'about.links'
         .panel-list