debian-mirror-gitlab/app/views/users/terms/index.html.haml

19 lines
817 B
Text
Raw Normal View History

2018-10-15 14:42:47 +05:30
- redirect_params = { redirect: @redirect } if @redirect
2020-04-22 19:07:51 +05:30
.card-body.rendered-terms{ data: { qa_selector: 'terms_content' } }
2018-10-15 14:42:47 +05:30
= markdown_field(@term, :terms)
2018-11-08 19:23:39 +05:30
- if current_user
.card-footer.footer-block.clearfix
- if can?(current_user, :accept_terms, @term)
.float-right
2021-01-29 00:20:46 +05:30
= button_to accept_term_path(@term, redirect_params), class: 'gl-button btn btn-success gl-ml-3', data: { qa_selector: 'accept_terms_button' } do
2018-11-08 19:23:39 +05:30
= _('Accept terms')
- else
2020-10-24 23:57:45 +05:30
.float-right
2021-01-29 00:20:46 +05:30
= link_to root_path, class: 'gl-button btn btn-success gl-ml-3' do
2018-11-08 19:23:39 +05:30
= _('Continue')
- if can?(current_user, :decline_terms, @term)
.float-right
2021-01-29 00:20:46 +05:30
= button_to decline_term_path(@term, redirect_params), class: 'gl-button btn btn-default gl-ml-3' do
2018-11-08 19:23:39 +05:30
= _('Decline and sign out')