debian-mirror-gitlab/app/views/projects/pipelines/new.html.haml

36 lines
1.8 KiB
Text
Raw Normal View History

2019-05-18 00:54:41 +05:30
- breadcrumb_title _('Pipelines')
- page_title s_('Pipeline|Run Pipeline')
2018-10-15 14:42:47 +05:30
- settings_link = link_to _('CI/CD settings'), project_settings_ci_cd_path(@project)
2016-06-02 11:05:42 +05:30
%h3.page-title
2019-05-18 00:54:41 +05:30
= s_('Pipeline|Run Pipeline')
2016-06-02 11:05:42 +05:30
%hr
2018-11-08 19:23:39 +05:30
= form_for @pipeline, as: :pipeline, url: project_pipelines_path(@project), html: { id: "new-pipeline-form", class: "js-new-pipeline-form js-requires-input" } do |f|
2016-06-02 11:05:42 +05:30
= form_errors(@pipeline)
2018-11-08 19:23:39 +05:30
.form-group.row
2018-10-15 14:42:47 +05:30
.col-sm-12
2019-05-18 00:54:41 +05:30
= f.label :ref, s_('Pipeline|Run for'), class: 'col-form-label'
2017-08-17 22:00:37 +05:30
= hidden_field_tag 'pipeline[ref]', params[:ref] || @project.default_branch
= dropdown_tag(params[:ref] || @project.default_branch,
2019-02-15 15:39:39 +05:30
options: { toggle_class: 'js-branch-select wide monospace',
2018-10-15 14:42:47 +05:30
filter: true, dropdown_class: "dropdown-menu-selectable git-revision-dropdown", placeholder: s_("Pipeline|Search branches"),
2017-08-17 22:00:37 +05:30
data: { selected: params[:ref] || @project.default_branch, field_name: 'pipeline[ref]' } })
2018-11-08 19:23:39 +05:30
.form-text.text-muted
2018-10-15 14:42:47 +05:30
= s_("Pipeline|Existing branch name or tag")
.col-sm-12.prepend-top-10.js-ci-variable-list-section
%label
= s_('Pipeline|Variables')
%ul.ci-variable-list
= render 'ci/variables/variable_row', form_field: 'pipeline', only_key_value: true
2018-11-08 19:23:39 +05:30
.form-text.text-muted
2018-10-15 14:42:47 +05:30
= (s_("Pipeline|Specify variable values to be used in this run. The values specified in %{settings_link} will be used by default.") % {settings_link: settings_link}).html_safe
2016-06-02 11:05:42 +05:30
.form-actions
2019-05-18 00:54:41 +05:30
= f.submit s_('Pipeline|Run Pipeline'), class: 'btn btn-success js-variables-save-button', tabindex: 3
= link_to _('Cancel'), project_pipelines_path(@project), class: 'btn btn-default float-right'
2016-06-02 11:05:42 +05:30
2018-03-27 19:54:05 +05:30
-# haml-lint:disable InlineJavaScript
2017-09-10 17:25:29 +05:30
%script#availableRefs{ type: "application/json" }= @project.repository.ref_names.to_json.html_safe