debian-mirror-gitlab/app/views/projects/blob/_template_selectors.html.haml

19 lines
2.6 KiB
Text
Raw Normal View History

2020-11-24 15:15:51 +05:30
.template-selectors-menu.gl-pl-3
2017-08-17 22:00:37 +05:30
.template-selector-dropdowns-wrap
.template-type-selector.js-template-type-selector-wrap.hidden
2020-04-08 14:13:33 +05:30
- toggle_text = should_suggest_gitlab_ci_yml? ? '.gitlab-ci.yml' : 'Select a template type'
= dropdown_tag(_(toggle_text), options: { toggle_class: 'js-template-type-selector qa-template-type-dropdown', dropdown_class: 'dropdown-menu-selectable' })
2017-08-17 22:00:37 +05:30
.license-selector.js-license-selector-wrap.js-template-selector-wrap.hidden
2019-12-21 20:55:43 +05:30
= dropdown_tag(_("Apply a template"), options: { toggle_class: 'js-license-selector qa-license-dropdown', dropdown_class: 'dropdown-menu-selectable', filter: true, placeholder: "Filter", data: { data: licenses_for_select(@project), project: @project.name, fullname: @project.namespace.human_name } } )
2017-08-17 22:00:37 +05:30
.gitignore-selector.js-gitignore-selector-wrap.js-template-selector-wrap.hidden
2019-12-21 20:55:43 +05:30
= dropdown_tag(_("Apply a template"), options: { toggle_class: 'js-gitignore-selector qa-gitignore-dropdown', dropdown_class: 'dropdown-menu-selectable', filter: true, placeholder: "Filter", data: { data: gitignore_names(@project) } } )
2020-10-24 23:57:45 +05:30
.metrics-dashboard-selector.js-metrics-dashboard-selector-wrap.js-template-selector-wrap.hidden
= dropdown_tag(_("Apply a template"), options: { toggle_class: 'js-metrics-dashboard-selector qa-metrics-dashboard-dropdown', dropdown_class: 'dropdown-menu-selectable', filter: true, placeholder: "Filter", data: { data: metrics_dashboard_ymls(@project) } } )
2020-04-08 14:13:33 +05:30
#gitlab-ci-yml-selector.gitlab-ci-yml-selector.js-gitlab-ci-yml-selector-wrap.js-template-selector-wrap.hidden
2019-12-21 20:55:43 +05:30
= dropdown_tag(_("Apply a template"), options: { toggle_class: 'js-gitlab-ci-yml-selector qa-gitlab-ci-yml-dropdown', dropdown_class: 'dropdown-menu-selectable', filter: true, placeholder: "Filter", data: { data: gitlab_ci_ymls(@project) } } )
2021-03-08 18:12:59 +05:30
- if experiment_enabled?(:ci_syntax_templates, subject: current_user)
.gitlab-ci-syntax-yml-selector.js-gitlab-ci-syntax-yml-selector-wrap.js-template-selector-wrap.hidden
= dropdown_tag(_("Learn CI/CD syntax"), options: { toggle_class: 'js-gitlab-ci-syntax-yml-selector qa-gitlab-ci-syntax-yml-dropdown', dropdown_class: 'dropdown-menu-selectable', filter: true, placeholder: "Filter", data: { data: gitlab_ci_syntax_ymls(@project) } } )
2017-08-17 22:00:37 +05:30
.dockerfile-selector.js-dockerfile-selector-wrap.js-template-selector-wrap.hidden
2019-12-21 20:55:43 +05:30
= dropdown_tag(_("Apply a template"), options: { toggle_class: 'js-dockerfile-selector qa-dockerfile-dropdown', dropdown_class: 'dropdown-menu-selectable', filter: true, placeholder: "Filter", data: { data: dockerfile_names(@project) } } )