2018-04-27 12:56:50 +00:00
|
|
|
- redirect_params = { redirect: @redirect } if @redirect
|
2018-04-27 14:50:33 +00:00
|
|
|
|
2018-06-04 15:02:49 +00:00
|
|
|
.card-body.rendered-terms
|
2018-04-27 12:56:50 +00:00
|
|
|
= markdown_field(@term, :terms)
|
2018-06-04 15:02:49 +00:00
|
|
|
.card-footer.footer-block.clearfix
|
2018-04-27 12:56:50 +00:00
|
|
|
- if can?(current_user, :accept_terms, @term)
|
2018-05-29 23:54:05 +00:00
|
|
|
.float-right
|
2018-04-27 12:56:50 +00:00
|
|
|
= button_to accept_term_path(@term, redirect_params), class: 'btn btn-success prepend-left-8' do
|
|
|
|
= _('Accept terms')
|
2018-05-25 23:17:57 +00:00
|
|
|
- else
|
|
|
|
.pull-right
|
|
|
|
= link_to root_path, class: 'btn btn-success prepend-left-8' do
|
|
|
|
= _('Continue')
|
2018-04-27 12:56:50 +00:00
|
|
|
- if can?(current_user, :decline_terms, @term)
|
2018-05-29 23:54:05 +00:00
|
|
|
.float-right
|
2018-04-27 12:56:50 +00:00
|
|
|
= button_to decline_term_path(@term, redirect_params), class: 'btn btn-default prepend-left-8' do
|
|
|
|
= _('Decline and sign out')
|