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

14 lines
1.8 KiB
Text
Raw Normal View History

2019-12-21 20:55:43 +05:30
.template-selectors-menu.gl-pl-2
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-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) } } )
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) } } )