From 029f2c4545de617f82c1dfaea3543a9bd75ebcab Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Mon, 24 Jul 2017 17:15:15 +0200 Subject: Redesign /terms page (#4338) * Redesign /terms page * Fix tests * Remove unused keys --- app/views/about/terms.html.haml | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) (limited to 'app/views/about/terms.html.haml') diff --git a/app/views/about/terms.html.haml b/app/views/about/terms.html.haml index 58064f0be..7004cb0b1 100644 --- a/app/views/about/terms.html.haml +++ b/app/views/about/terms.html.haml @@ -1,8 +1,23 @@ - content_for :page_title do = t('terms.title', instance: site_hostname) -.wrapper - - if @instance_presenter.site_terms.present? - = raw @instance_presenter.site_terms - - else - = t('terms.body_html') +.landing-page + .header-wrapper.compact + .header + .container.links + .brand + = link_to root_url do + = image_tag asset_pack_path('logo_full.svg'), alt: 'Mastodon' + + %ul.nav + %li + - if user_signed_in? + = link_to t('settings.back'), root_url, class: 'webapp-btn' + - else + = link_to t('auth.login'), new_user_session_path, class: 'webapp-btn' + %li= link_to t('about.about_this'), about_more_path + %li= link_to t('about.other_instances'), 'https://joinmastodon.org/' + + .extended-description + .container + = @instance_presenter.site_terms.html_safe.presence || t('terms.body_html') -- cgit