From e5282e4ec0e9dab62dde9481284b0cfd30690fb9 Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Sun, 9 Apr 2017 08:47:25 -0400 Subject: Clean up about page (#1282) * Add InstancePresenter to expose site details * Clean up about controller, use instance presenter --- app/views/about/index.html.haml | 100 ---------------------------------------- 1 file changed, 100 deletions(-) delete mode 100644 app/views/about/index.html.haml (limited to 'app/views/about/index.html.haml') diff --git a/app/views/about/index.html.haml b/app/views/about/index.html.haml deleted file mode 100644 index f6b0c1668..000000000 --- a/app/views/about/index.html.haml +++ /dev/null @@ -1,100 +0,0 @@ -- content_for :header_tags do - = javascript_include_tag 'application_public' - -- content_for :page_title do - = Rails.configuration.x.local_domain - -- content_for :header_tags do - %meta{ property: 'og:site_name', content: site_title }/ - %meta{ property: 'og:type', content: 'website' }/ - %meta{ property: 'og:title', content: Rails.configuration.x.local_domain }/ - %meta{ property: 'og:description', content: @description.blank? ? "Mastodon is a free, open-source social network server. A decentralized alternative to commercial platforms, it avoids the risks of a single company monopolizing your communication. Anyone can run Mastodon and participate in the social network seamlessly" : strip_tags(@description) }/ - %meta{ property: 'og:image', content: asset_url('mastodon_small.jpg') }/ - %meta{ property: 'og:image:width', content: '400' }/ - %meta{ property: 'og:image:height', content: '400' }/ - %meta{ property: 'twitter:card', content: 'summary' }/ - -.wrapper - %h1 - = image_tag 'logo.png' - Mastodon - - %p= t('about.about_mastodon').html_safe - - .screenshot-with-signup - .mascot= image_tag 'fluffy-elephant-friend.png' - - - if @open_registrations - = simple_form_for(@user, url: user_registration_path) do |f| - = f.simple_fields_for :account do |ff| - = ff.input :username, autofocus: true, placeholder: t('simple_form.labels.defaults.username'), required: true, input_html: { 'aria-label' => t('simple_form.labels.defaults.username') } - - = f.input :email, placeholder: t('simple_form.labels.defaults.email'), required: true, input_html: { 'aria-label' => t('simple_form.labels.defaults.email') } - = f.input :password, autocomplete: "off", placeholder: t('simple_form.labels.defaults.password'), required: true, input_html: { 'aria-label' => t('simple_form.labels.defaults.password') } - = f.input :password_confirmation, autocomplete: "off", placeholder: t('simple_form.labels.defaults.confirm_password'), required: true, input_html: { 'aria-label' => t('simple_form.labels.defaults.confirm_password') } - - .actions - = f.button :button, t('about.get_started'), type: :submit - - .info - = link_to t('auth.login'), new_user_session_path, class: 'webapp-btn' - · - = link_to t('about.about_this'), about_more_path - - else - .closed-registrations-message - - if @closed_registrations_message.blank? - %p= t('about.closed_registrations') - - else - = @closed_registrations_message.html_safe - .info - = link_to t('auth.login'), new_user_session_path, class: 'webapp-btn' - · - = link_to t('about.other_instances'), 'https://github.com/tootsuite/mastodon/blob/master/docs/Using-Mastodon/List-of-Mastodon-instances.md' - · - = link_to t('about.about_this'), about_more_path - - %h3= t('about.features_headline') - - .features-list - .features-list__column - %ul.fa-ul - %li - = fa_icon('li check-square') - = t 'about.features.chronology' - %li - = fa_icon('li check-square') - = t 'about.features.public' - %li - = fa_icon('li check-square') - = t 'about.features.characters' - %li - = fa_icon('li check-square') - = t 'about.features.gifv' - .features-list__column - %ul.fa-ul - %li - = fa_icon('li check-square') - = t 'about.features.privacy' - %li - = fa_icon('li check-square') - = t 'about.features.blocks' - %li - = fa_icon('li check-square') - = t 'about.features.ethics' - %li - = fa_icon('li check-square') - = t 'about.features.api' - - - unless @description.blank? - %h3= t('about.description_headline', domain: Rails.configuration.x.local_domain) - %p= @description.html_safe - - .actions - .info - = link_to t('about.terms'), terms_path - · - = link_to t('about.apps'), 'https://github.com/tootsuite/mastodon/blob/master/docs/Using-Mastodon/Apps.md' - · - = link_to t('about.source_code'), 'https://github.com/tootsuite/mastodon' - · - = link_to t('about.other_instances'), 'https://github.com/tootsuite/mastodon/blob/master/docs/Using-Mastodon/List-of-Mastodon-instances.md' -- cgit