summaryrefslogtreecommitdiff
path: root/app/views/users/terms/index.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/users/terms/index.html.haml')
-rw-r--r--app/views/users/terms/index.html.haml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/users/terms/index.html.haml b/app/views/users/terms/index.html.haml
index a869cf9cdee..4fa04402a1c 100644
--- a/app/views/users/terms/index.html.haml
+++ b/app/views/users/terms/index.html.haml
@@ -1,12 +1,12 @@
- redirect_params = { redirect: @redirect } if @redirect
-.card-body.rendered-terms
+.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 prepend-left-8' do
+ = button_to accept_term_path(@term, redirect_params), class: 'btn btn-success prepend-left-8', data: { qa_selector: 'accept_terms_button' } do
= _('Accept terms')
- else
.pull-right