diff options
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/layouts/terms.html.haml | 11 | ||||
-rw-r--r-- | app/views/users/terms/index.html.haml | 12 |
2 files changed, 20 insertions, 3 deletions
diff --git a/app/views/layouts/terms.html.haml b/app/views/layouts/terms.html.haml index 09c4567a362..b04dbc595a5 100644 --- a/app/views/layouts/terms.html.haml +++ b/app/views/layouts/terms.html.haml @@ -3,11 +3,18 @@ %html{ lang: I18n.locale, class: page_class } = render "layouts/head" - %body{ class: "#{user_application_theme} #{@body_class}", data: { page: body_data_page } } + %body{ data: { page: body_data_page } } = render 'peek/bar' .layout-page.terms .content-wrapper - %div{ class: "#{(container_class unless @no_container)} #{@content_class}" } + .mobile-overlay + .alert-wrapper + = render "layouts/broadcast" + = render 'layouts/header/read_only_banner' + = yield :flash_message + = render "layouts/flash" + + %div{ class: "#{container_class}" } .content{ id: "content-body" } .panel.panel-default .panel-heading diff --git a/app/views/users/terms/index.html.haml b/app/views/users/terms/index.html.haml index 49fdab84069..614dab57331 100644 --- a/app/views/users/terms/index.html.haml +++ b/app/views/users/terms/index.html.haml @@ -1,2 +1,12 @@ +- redirect_params = { redirect: @redirect } if @redirect .panel-content.rendered-terms - = markdown_field(@terms, :terms) + = markdown_field(@term, :terms) +.row-content-block.footer-block.clearfix + - if can?(current_user, :accept_terms, @term) + .pull-right + = button_to accept_term_path(@term, redirect_params), class: 'btn btn-success prepend-left-8' do + = _('Accept terms') + - if can?(current_user, :decline_terms, @term) + .pull-right + = button_to decline_term_path(@term, redirect_params), class: 'btn btn-default prepend-left-8' do + = _('Decline and sign out') |