2018-04-27 08:56:50 -04:00
|
|
|
- redirect_params = { redirect: @redirect } if @redirect
|
2018-04-27 10:50:33 -04:00
|
|
|
|
2020-04-09 05:10:17 -04:00
|
|
|
.card-body.rendered-terms{ data: { qa_selector: 'terms_content' } }
|
2018-04-27 08:56:50 -04:00
|
|
|
= markdown_field(@term, :terms)
|
2018-06-08 07:20:44 -04:00
|
|
|
- if current_user
|
|
|
|
.card-footer.footer-block.clearfix
|
|
|
|
- if can?(current_user, :accept_terms, @term)
|
|
|
|
.float-right
|
2020-10-20 11:08:57 -04:00
|
|
|
= 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-06-08 07:20:44 -04:00
|
|
|
= _('Accept terms')
|
|
|
|
- else
|
2020-07-29 08:09:45 -04:00
|
|
|
.float-right
|
2020-10-20 11:08:57 -04:00
|
|
|
= link_to root_path, class: 'gl-button btn btn-success gl-ml-3' do
|
2018-06-08 07:20:44 -04:00
|
|
|
= _('Continue')
|
|
|
|
- if can?(current_user, :decline_terms, @term)
|
|
|
|
.float-right
|
2020-10-20 11:08:57 -04:00
|
|
|
= button_to decline_term_path(@term, redirect_params), class: 'gl-button btn btn-default gl-ml-3' do
|
2018-06-08 07:20:44 -04:00
|
|
|
= _('Decline and sign out')
|