3d713ac114
When a user checks the `accept` checkbox, we will track that acceptance as usual. That way they don't need to accept again after they complete the registration. When an unauthenticated user visits the `/-/users/terms` page, there is no button to accept, decline or continue. The 'current-user menu' is also hidden from the top bar.
18 lines
719 B
Text
18 lines
719 B
Text
- redirect_params = { redirect: @redirect } if @redirect
|
|
|
|
.card-body.rendered-terms
|
|
= markdown_field(@term, :terms)
|
|
- 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')
|