summaryrefslogtreecommitdiff
path: root/app/views/projects/tags
diff options
context:
space:
mode:
authorRobert Schilling <rschilling@student.tugraz.at>2014-07-27 19:56:33 +0200
committerRobert Schilling <rschilling@student.tugraz.at>2014-09-03 13:08:36 +0200
commit392113919adc75ba1537d89a0de8d0641e24d5b8 (patch)
tree79c4e5a802592024b3d6621afe4c052bea77ad4e /app/views/projects/tags
parent551145bc98e257280b615e305d531a44d7aa4131 (diff)
downloadgitlab-ce-392113919adc75ba1537d89a0de8d0641e24d5b8.tar.gz
Validate tag-names and references in WebUI, API
Diffstat (limited to 'app/views/projects/tags')
-rw-r--r--app/views/projects/tags/new.html.haml8
1 files changed, 6 insertions, 2 deletions
diff --git a/app/views/projects/tags/new.html.haml b/app/views/projects/tags/new.html.haml
index a9fd97f8915..f3a34d37df5 100644
--- a/app/views/projects/tags/new.html.haml
+++ b/app/views/projects/tags/new.html.haml
@@ -1,3 +1,7 @@
+- if @error
+ .alert.alert-danger
+ %button{ type: "button", class: "close", "data-dismiss" => "alert"} &times;
+ = @error
%h3.page-title
%i.icon-code-fork
New tag
@@ -5,11 +9,11 @@
.form-group
= label_tag :tag_name, 'Name for new tag', class: 'control-label'
.col-sm-10
- = text_field_tag :tag_name, nil, placeholder: 'v3.0.1', required: true, tabindex: 1, class: 'form-control'
+ = text_field_tag :tag_name, params[:tag_name], placeholder: 'v3.0.1', required: true, tabindex: 1, class: 'form-control'
.form-group
= label_tag :ref, 'Create from', class: 'control-label'
.col-sm-10
- = text_field_tag :ref, nil, placeholder: 'master', required: true, tabindex: 2, class: 'form-control'
+ = text_field_tag :ref, params[:ref], placeholder: 'master', required: true, tabindex: 2, class: 'form-control'
.light Branch name or commit SHA
.form-actions
= submit_tag 'Create tag', class: 'btn btn-create', tabindex: 3