diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-05-18 13:02:10 -0500 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-05-18 13:02:10 -0500 |
commit | ef60b8e1685a8761477e822b3190a3a0cf4b0cfa (patch) | |
tree | bb81f3b0af997244ce01a6ee403b677686ad7a35 /app/views/projects/pipelines | |
parent | 379dc6fbccc84858a392226111a0abadb54f0c04 (diff) | |
download | gitlab-ce-ef60b8e1685a8761477e822b3190a3a0cf4b0cfa.tar.gz |
Use pipelines.errors when communicating the error
Diffstat (limited to 'app/views/projects/pipelines')
-rw-r--r-- | app/views/projects/pipelines/new.html.haml | 7 |
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"} × - = @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 |