Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-05-18 21:02:10 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2016-05-18 21:02:10 +0300
commitef60b8e1685a8761477e822b3190a3a0cf4b0cfa (patch)
treebb81f3b0af997244ce01a6ee403b677686ad7a35 /app/views/projects/pipelines
parent379dc6fbccc84858a392226111a0abadb54f0c04 (diff)
Use pipelines.errors when communicating the error
Diffstat (limited to 'app/views/projects/pipelines')
-rw-r--r--app/views/projects/pipelines/new.html.haml7
1 files changed, 2 insertions, 5 deletions
diff --git a/app/views/projects/pipelines/new.html.haml b/app/views/projects/pipelines/new.html.haml
index 534a495dd85..1050b28b381 100644
--- a/app/views/projects/pipelines/new.html.haml
+++ b/app/views/projects/pipelines/new.html.haml
@@ -1,15 +1,12 @@
- page_title "New Pipeline"
= render "header_title"
-- if @error
- .alert.alert-danger
- %button{ type: "button", class: "close", "data-dismiss" => "alert"} &times;
- = @error
%h3.page-title
New Pipeline
%hr
-= form_tag namespace_project_pipelines_path, method: :post, id: "new-pipeline-form", class: "form-horizontal js-new-pipeline-form js-requires-input" do
+= form_for @pipeline, url: namespace_project_pipelines_path(@project.namespace, @project), html: { id: "new-pipeline-form", class: "form-horizontal js-new-pipeline-form js-requires-input" } do
+ = form_errors(@pipeline)
.form-group
= label_tag :ref, 'Create for', class: 'control-label'
.col-sm-10