2018-08-03 15:36:53 +00:00
|
|
|
- f ||= local_assigns[:f]
|
2017-10-11 09:07:19 +00:00
|
|
|
|
2021-02-11 12:08:52 +00:00
|
|
|
.project-templates-buttons
|
2022-02-24 12:12:57 +00:00
|
|
|
= gl_tabs_nav({ class: 'nav-links scrolling-tabs gl-display-flex gl-flex-grow-1 gl-flex-nowrap gl-border-0' }) do
|
|
|
|
= gl_tab_link_to '#built-in', tab_class: 'built-in-tab', class: 'active', data: { toggle: 'tab' } do
|
|
|
|
= _('Built-in')
|
|
|
|
= gl_tab_counter_badge Gitlab::ProjectTemplate.all.count + Gitlab::SampleDataTemplate.all.count
|
2020-10-16 18:09:04 +00:00
|
|
|
|
|
|
|
.tab-content
|
|
|
|
.project-templates-buttons.import-buttons.tab-pane.active#built-in
|
2021-02-14 00:09:38 +00:00
|
|
|
= render partial: 'projects/project_templates/template', collection: Gitlab::ProjectTemplate.all + Gitlab::SampleDataTemplate.all
|
2017-10-11 09:07:19 +00:00
|
|
|
|
2018-08-03 15:36:53 +00:00
|
|
|
.project-fields-form
|
|
|
|
= render 'projects/project_templates/project_fields_form'
|
2018-10-03 18:00:22 +00:00
|
|
|
= render 'projects/new_project_fields', f: f, project_name_id: "template-project-name", hide_init_with_readme: true, track_label: "create_from_template"
|