summaryrefslogtreecommitdiff
path: root/app/views/users/terms/index.html.haml
blob: bc4861d6ae8729c42d69662b800b1bbba5f37853 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
- redirect_params = { redirect: @redirect } if @redirect

.card-body.rendered-terms{ data: { qa_selector: 'terms_content' } }
  = 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 gl-ml-3', data: { qa_selector: 'accept_terms_button' } do
          = _('Accept terms')
    - else
      .pull-right
        = link_to root_path, class: 'btn btn-success gl-ml-3' do
          = _('Continue')
    - if can?(current_user, :decline_terms, @term)
      .float-right
        = button_to decline_term_path(@term, redirect_params), class: 'btn btn-default gl-ml-3' do
          =  _('Decline and sign out')