2018-04-27 08:56:50 -04:00
|
|
|
- redirect_params = { redirect: @redirect } if @redirect
|
2018-04-27 10:50:33 -04:00
|
|
|
|
2018-06-04 11:02:49 -04:00
|
|
|
.card-body.rendered-terms
|
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
|
|
|
|
= button_to accept_term_path(@term, redirect_params), class: 'btn btn-success prepend-left-8' do
|
|
|
|
= _('Accept terms')
|
|
|
|
- else
|
|
|
|
.pull-right
|
|
|
|
= link_to root_path, class: 'btn btn-success prepend-left-8' do
|
|
|
|
= _('Continue')
|
|
|
|
- if can?(current_user, :decline_terms, @term)
|
|
|
|
.float-right
|
|
|
|
= button_to decline_term_path(@term, redirect_params), class: 'btn btn-default prepend-left-8' do
|
|
|
|
= _('Decline and sign out')
|