diff options
author | Clement Ho <ClemMakesApps@gmail.com> | 2018-04-16 21:46:30 +0300 |
---|---|---|
committer | Clement Ho <ClemMakesApps@gmail.com> | 2018-04-16 21:46:30 +0300 |
commit | d2f8a4810fd48633945b21a0f81abfed75da5d07 (patch) | |
tree | 755bcf0df225ceeaab819fd2079f9dd74a5391ed /app/views | |
parent | 95eb0ced5d5bd86d1c6ddf82bc727dbeff4dcfa3 (diff) |
Fix karma specs
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/ci/variables/_index.html.haml | 4 | ||||
-rw-r--r-- | app/views/ci/variables/_variable_row.html.haml | 4 | ||||
-rw-r--r-- | app/views/projects/settings/ci_cd/_form.html.haml | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/app/views/ci/variables/_index.html.haml b/app/views/ci/variables/_index.html.haml index 30a7c805246..60a6a9d2d22 100644 --- a/app/views/ci/variables/_index.html.haml +++ b/app/views/ci/variables/_index.html.haml @@ -2,7 +2,7 @@ .row .col-lg-12.js-ci-variable-list-section{ data: { save_endpoint: save_endpoint } } - .d-none.alert.alert-danger.js-ci-variable-error-box + .hidden.alert.alert-danger.js-ci-variable-error-box %ul.ci-variable-list - @variables.each.each do |variable| @@ -10,7 +10,7 @@ = render 'ci/variables/variable_row', form_field: 'variables' .prepend-top-20 %button.btn.btn-success.js-secret-variables-save-button{ type: 'button' } - %span.d-none.js-secret-variables-save-loading-icon + %span.hidden.js-secret-variables-save-loading-icon = icon('spinner spin') = _('Save variables') %button.btn.btn-info.btn-inverted.prepend-left-10.js-secret-value-reveal-button{ type: 'button', data: { secret_reveal_status: "#{@variables.size == 0}" } } diff --git a/app/views/ci/variables/_variable_row.html.haml b/app/views/ci/variables/_variable_row.html.haml index 440623b34f5..316b433c5cd 100644 --- a/app/views/ci/variables/_variable_row.html.haml +++ b/app/views/ci/variables/_variable_row.html.haml @@ -22,9 +22,9 @@ value: key, placeholder: s_('CiVariables|Input variable key') } .ci-variable-body-item - .form-control.js-secret-value-placeholder{ class: ('hide' unless id) } + .form-control.js-secret-value-placeholder{ class: ('hidden' unless id) } = '*' * 20 - %textarea.js-ci-variable-input-value.js-secret-value.form-control{ class: ('hide' if id), + %textarea.js-ci-variable-input-value.js-secret-value.form-control{ class: ('hidden' if id), rows: 1, name: value_input_name, placeholder: s_('CiVariables|Input variable value') } diff --git a/app/views/projects/settings/ci_cd/_form.html.haml b/app/views/projects/settings/ci_cd/_form.html.haml index ca242755704..4dd6dc7a872 100644 --- a/app/views/projects/settings/ci_cd/_form.html.haml +++ b/app/views/projects/settings/ci_cd/_form.html.haml @@ -45,7 +45,7 @@ = f.label :runners_token, "Runner token", class: 'label-light' .form-control.js-secret-value-placeholder = '*' * 20 - = f.text_field :runners_token, class: "form-control hide js-secret-value", placeholder: 'xEeFCaDAB89' + = f.text_field :runners_token, class: "form-control hidden js-secret-value", placeholder: 'xEeFCaDAB89' %p.form-text.text-muted The secure token used by the Runner to checkout the project %button.btn.btn-info.prepend-top-10.js-secret-value-reveal-button{ type: 'button', data: { secret_reveal_status: 'false' } } = _('Reveal value') |