2017-01-09 13:43:53 -05:00
- content_for :header_tags do
= javascript_include_tag 'application_public'
2016-10-13 19:03:12 -04:00
- content_for :page_title do
= Rails.configuration.x.local_domain
2016-12-14 18:59:49 -05:00
- content_for :header_tags do
%meta{ property: 'og:site_name', content: 'Mastodon' }/
%meta{ property: 'og:type', content: 'website' }/
%meta{ property: 'og:title', content: Rails.configuration.x.local_domain }/
2017-01-12 14:46:24 -05:00
%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) }/
2016-12-14 19:07:58 -05:00
%meta{ property: 'og:image', content: asset_url('mastodon_small.jpg') }/
%meta{ property: 'og:image:width', content: '400' }/
%meta{ property: 'og:image:height', content: '400' }/
2017-01-05 17:47:40 -05:00
%meta{ property: 'twitter:card', content: 'summary' }/
2016-12-14 18:59:49 -05:00
2016-09-27 17:12:33 -04:00
.wrapper
%h1
= image_tag 'logo.png'
Mastodon
2016-11-15 17:56:03 -05:00
%p= t('about.about_mastodon').html_safe
2016-09-27 17:12:33 -04:00
2017-03-21 14:18:37 -04:00
.screenshot-with-signup
.mascot= image_tag 'fluffy-elephant-friend.png'
2017-04-04 09:26:57 -04:00
- 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') }
2017-03-21 14:18:37 -04:00
2017-04-04 09:26:57 -04:00
= 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') }
2017-03-21 14:18:37 -04:00
2017-04-04 09:26:57 -04:00
.actions
= f.button :button, t('about.get_started'), type: :submit
2017-03-21 14:18:37 -04:00
2017-04-04 09:26:57 -04:00
.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
2017-03-21 14:18:37 -04:00
%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'
2016-11-01 11:58:13 -04:00
2017-01-12 14:46:24 -05:00
- unless @description.blank?
2017-03-21 14:18:37 -04:00
%h3= t('about.description_headline', domain: Rails.configuration.x.local_domain)
2017-01-12 14:46:24 -05:00
%p= @description.html_safe
2016-09-27 17:12:33 -04:00
.actions
2016-11-01 11:58:13 -04:00
.info
2016-11-15 17:56:03 -05:00
= link_to t('about.terms'), terms_path
2017-03-17 15:49:34 -04:00
·
2017-03-26 07:22:38 -04:00
= link_to t('about.apps'), 'https://github.com/tootsuite/mastodon/blob/master/docs/Using-Mastodon/Apps.md'
2017-03-17 15:49:34 -04:00
·
2017-01-10 21:24:14 -05:00
= link_to t('about.source_code'), 'https://github.com/tootsuite/mastodon'
2017-03-17 15:49:34 -04:00
·
2017-02-10 13:06:38 -05:00
= link_to t('about.other_instances'), 'https://github.com/tootsuite/mastodon/blob/master/docs/Using-Mastodon/List-of-Mastodon-instances.md'