summaryrefslogtreecommitdiff
path: root/app/views/projects/tags/new.html.haml
diff options
context:
space:
mode:
authorTim Zallmann <tzallmann@gitlab.com>2017-07-25 11:45:08 +0200
committerTim Zallmann <tzallmann@gitlab.com>2017-07-27 15:03:04 +0200
commit395e34bd0fd32e6f8d8145f14d71ea3c1350b46f (patch)
tree955ce22828524125266d34271b163463fd015ec1 /app/views/projects/tags/new.html.haml
parent24d9142cabcf8b09a9954c2ccd9b429c86ba683d (diff)
downloadgitlab-ce-395e34bd0fd32e6f8d8145f14d71ea3c1350b46f.tar.gz
Changed the data for New Tag to a script block
Diffstat (limited to 'app/views/projects/tags/new.html.haml')
-rw-r--r--app/views/projects/tags/new.html.haml6
1 files changed, 1 insertions, 5 deletions
diff --git a/app/views/projects/tags/new.html.haml b/app/views/projects/tags/new.html.haml
index ceb2547034a..521b4d927bc 100644
--- a/app/views/projects/tags/new.html.haml
+++ b/app/views/projects/tags/new.html.haml
@@ -40,8 +40,4 @@
.form-actions
= button_tag 'Create tag', class: 'btn btn-create', tabindex: 3
= link_to 'Cancel', project_tags_path(@project), class: 'btn btn-cancel'
-
--# haml-lint:disable InlineJavaScript
-:javascript
- window.gl = window.gl || { };
- window.gl.availableRefs = #{@project.repository.ref_names.to_json};
+%script#availableRefs{ type: "application/json" }= @project.repository.ref_names.to_json.html_safe