about summary refs log tree commit diff
path: root/app/views/about/more.html.haml
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-01-13 20:14:21 +0100
committerEugen Rochko <eugen@zeonfederated.com>2017-01-13 20:16:38 +0100
commitc01dd089ff3149ce6b5bf539143b335a84c08eee (patch)
tree00e23e23befc3e0a783126bb687c70602cc11e02 /app/views/about/more.html.haml
parente25170f960bdc890e4f8a6b1373ab55192669629 (diff)
Adding about/more page with extended information that can be set up by an admin
Diffstat (limited to 'app/views/about/more.html.haml')
-rw-r--r--app/views/about/more.html.haml49
1 files changed, 46 insertions, 3 deletions
diff --git a/app/views/about/more.html.haml b/app/views/about/more.html.haml
index 49a3a0c95..c3ffe195c 100644
--- a/app/views/about/more.html.haml
+++ b/app/views/about/more.html.haml
@@ -2,7 +2,50 @@
   #{Rails.configuration.x.local_domain}
 
 .wrapper
-  = @extended_description.html_safe
+  .sidebar-layout
+    .main
+      .panel
+        %h2= Rails.configuration.x.local_domain
 
-  - if @contact_account
-    = render partial: 'authorize_follow/card', locals: { account: @contact_account }
\ No newline at end of file
+        - unless @description.blank?
+          %p= @description.html_safe
+
+      .information-board
+        .section
+          %span= t 'about.user_count_before'
+          %strong= number_with_delimiter @user_count
+          %span= t 'about.user_count_after'
+        .section
+          %span= t 'about.status_count_before'
+          %strong= number_with_delimiter @status_count
+          %span= t 'about.status_count_after'
+        .section
+          %span= t 'about.domain_count_before'
+          %strong= number_with_delimiter @domain_count
+          %span= t 'about.domain_count_after'
+
+      - unless @extended_description.blank?
+        .panel= @extended_description.html_safe
+
+    .sidebar
+      .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}"
+
+          .contact-email
+            = t 'about.business_email'
+            %strong= @contact_email
+      .panel
+        .panel-header= t 'about.links'
+        .panel-list
+          %ul
+            %li= link_to t('about.get_started'), new_user_registration_path
+            %li= link_to t('auth.login'), new_user_session_path
+            %li= link_to t('about.terms'), terms_path
+            %li= link_to t('about.source_code'), 'https://github.com/tootsuite/mastodon'