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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
2.2 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'
2022-11-25 23:54:43 +05:30
= dropdown_tag(_(toggle_text), options: { toggle_class: 'js-template-type-selector', dropdown_class: 'dropdown-menu-selectable', data: { qa_selector: 'template_type_dropdown' } })
2017-08-17 22:00:37 +05:30
.license-selector.js-license-selector-wrap.js-template-selector-wrap.hidden
2022-11-25 23:54:43 +05:30
= dropdown_tag(_("Apply a template"), options: { toggle_class: 'js-license-selector', dropdown_class: 'dropdown-menu-selectable', filter: true, placeholder: "Filter", data: { data: licenses_for_select(@project), project: @project.name, fullname: @project.namespace.human_name, qa_selector: 'license_dropdown' } } )
2017-08-17 22:00:37 +05:30
.gitignore-selector.js-gitignore-selector-wrap.js-template-selector-wrap.hidden
2022-11-25 23:54:43 +05:30
= dropdown_tag(_("Apply a template"), options: { toggle_class: 'js-gitignore-selector', dropdown_class: 'dropdown-menu-selectable', filter: true, placeholder: "Filter", data: { data: gitignore_names(@project), qa_selector: 'gitignore_dropdown' } } )
2020-10-24 23:57:45 +05:30
.metrics-dashboard-selector.js-metrics-dashboard-selector-wrap.js-template-selector-wrap.hidden
2022-11-25 23:54:43 +05:30
= dropdown_tag(_("Apply a template"), options: { toggle_class: 'js-metrics-dashboard-selector', dropdown_class: 'dropdown-menu-selectable', filter: true, placeholder: "Filter", data: { data: metrics_dashboard_ymls(@project), qa_selector: 'metrics_dashboard_dropdown' } } )
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
2022-11-25 23:54:43 +05:30
= dropdown_tag(_("Apply a template"), options: { toggle_class: 'js-gitlab-ci-yml-selector', dropdown_class: 'dropdown-menu-selectable', filter: true, placeholder: "Filter", data: { data: gitlab_ci_ymls(@project), selected: params[:template], qa_selector: 'gitlab_ci_yml_dropdown' } } )
2017-08-17 22:00:37 +05:30
.dockerfile-selector.js-dockerfile-selector-wrap.js-template-selector-wrap.hidden
2022-11-25 23:54:43 +05:30
= dropdown_tag(_("Apply a template"), options: { toggle_class: 'js-dockerfile-selector', dropdown_class: 'dropdown-menu-selectable', filter: true, placeholder: "Filter", data: { data: dockerfile_names(@project), qa_selector: 'dockerfile_dropdown' } } )