summaryrefslogtreecommitdiff
path: root/app/views/projects
diff options
context:
space:
mode:
authorFelipe Artur <felipefac@gmail.com>2016-10-27 19:20:47 -0200
committerFelipe Artur <felipefac@gmail.com>2016-11-04 12:24:17 -0200
commit8c2143a0a7330768211b8a03a6693ac823679339 (patch)
tree7e1cee6db7131856d71e110340ce8ee76c88a42d /app/views/projects
parente4c05de75ccec1b0d64a7a994f05d54bffc903e5 (diff)
downloadgitlab-ce-8c2143a0a7330768211b8a03a6693ac823679339.tar.gz
Allow to test JIRA service when project does not have repositoryissue_23032
Diffstat (limited to 'app/views/projects')
-rw-r--r--app/views/projects/services/_form.html.haml7
1 files changed, 5 insertions, 2 deletions
diff --git a/app/views/projects/services/_form.html.haml b/app/views/projects/services/_form.html.haml
index 752fbc21a11..b41edeb2c7e 100644
--- a/app/views/projects/services/_form.html.haml
+++ b/app/views/projects/services/_form.html.haml
@@ -12,6 +12,9 @@
= form.submit 'Save changes', class: 'btn btn-save'
&nbsp;
- if @service.valid? && @service.activated?
- - disabled = @service.can_test? ? '':'disabled'
- = link_to 'Test settings', test_namespace_project_service_path(@project.namespace, @project, @service), class: "btn #{disabled}", title: @service.disabled_title
+ - unless @service.can_test?
+ - disabled_class = 'disabled'
+ - disabled_title = @service.disabled_title
+
+ = link_to 'Test settings', test_namespace_project_service_path(@project.namespace, @project, @service), class: "btn #{disabled_class}", title: disabled_title
= link_to "Cancel", namespace_project_services_path(@project.namespace, @project), class: "btn btn-cancel"