]> cat aescling's git repositories - mastodon.git/commitdiff
Fix #487
authorEugen Rochko <eugen@zeonfederated.com>
Tue, 17 Jan 2017 19:11:16 +0000 (20:11 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Tue, 17 Jan 2017 19:11:16 +0000 (20:11 +0100)
app/views/about/more.html.haml

index 28300900c2a5586dc5208aac0c800b3508996a2e..2de3bf986f1373793ddff7e0571037b104fab949 100644 (file)
       .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