2018-04-27 08:56:50 -04:00
|
|
|
- redirect_params = { redirect: @redirect } if @redirect
|
2018-04-27 10:50:33 -04:00
|
|
|
|
2018-04-26 07:28:24 -04:00
|
|
|
.panel-content.rendered-terms
|
2018-04-27 08:56:50 -04:00
|
|
|
= markdown_field(@term, :terms)
|
|
|
|
.row-content-block.footer-block.clearfix
|
|
|
|
- if can?(current_user, :accept_terms, @term)
|
2018-05-29 19:54:05 -04:00
|
|
|
.float-right
|
2018-04-27 08:56:50 -04:00
|
|
|
= button_to accept_term_path(@term, redirect_params), class: 'btn btn-success prepend-left-8' do
|
|
|
|
= _('Accept terms')
|
|
|
|
- if can?(current_user, :decline_terms, @term)
|
2018-05-29 19:54:05 -04:00
|
|
|
.float-right
|
2018-04-27 08:56:50 -04:00
|
|
|
= button_to decline_term_path(@term, redirect_params), class: 'btn btn-default prepend-left-8' do
|
|
|
|
= _('Decline and sign out')
|