summaryrefslogtreecommitdiff
path: root/app/views/projects
diff options
context:
space:
mode:
authorkushalpandya <kushal@gitlab.com>2017-07-19 18:15:33 +0530
committerkushalpandya <kushal@gitlab.com>2017-07-19 18:15:33 +0530
commitf0aeccce81b192b058283f1d93a085ad4f5eb0e7 (patch)
tree535060f45ec2a402cc2d0a0327aa6fc58133de8c /app/views/projects
parenteed91391a0c3df652503a561f6117da864c79f5f (diff)
downloadgitlab-ce-f0aeccce81b192b058283f1d93a085ad4f5eb0e7.tar.gz
Add class to use in JS and tests
Diffstat (limited to 'app/views/projects')
-rw-r--r--app/views/projects/protected_branches/shared/_create_protected_branch.html.haml2
-rw-r--r--app/views/projects/protected_tags/shared/_tags_list.html.haml2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/projects/protected_branches/shared/_create_protected_branch.html.haml b/app/views/projects/protected_branches/shared/_create_protected_branch.html.haml
index b619fa57e05..9f0c4f3b3a8 100644
--- a/app/views/projects/protected_branches/shared/_create_protected_branch.html.haml
+++ b/app/views/projects/protected_branches/shared/_create_protected_branch.html.haml
@@ -1,4 +1,4 @@
-= form_for [@project.namespace.becomes(Namespace), @project, @protected_branch] do |f|
+= form_for [@project.namespace.becomes(Namespace), @project, @protected_branch], html: { class: 'new-protected-branch js-new-protected-branch' } do |f|
.panel.panel-default
.panel-heading
%h3.panel-title
diff --git a/app/views/projects/protected_tags/shared/_tags_list.html.haml b/app/views/projects/protected_tags/shared/_tags_list.html.haml
index 6e3cd4ada71..3f42ae58438 100644
--- a/app/views/projects/protected_tags/shared/_tags_list.html.haml
+++ b/app/views/projects/protected_tags/shared/_tags_list.html.haml
@@ -1,4 +1,4 @@
-.panel.panel-default.protected-tags-list
+.panel.panel-default.protected-tags-list.js-protected-tags-list
- if @protected_tags.empty?
.panel-heading
%h3.panel-title