debian-mirror-gitlab/app/views/projects/_project_templates.html.haml

17 lines
782 B
Text
Raw Normal View History

2018-11-18 11:00:15 +05:30
- f ||= local_assigns[:f]
2018-03-17 18:26:18 +05:30
2021-01-03 14:25:43 +05:30
.project-templates-buttons.col-sm-12
%ul.nav-tabs.nav-links.nav.scrolling-tabs
%li.built-in-tab
%a.nav-link.active{ href: "#built-in", data: { toggle: 'tab'} }
= _('Built-in')
2021-02-22 17:27:13 +05:30
%span.badge.badge-pill= Gitlab::SampleDataTemplate.all.count + Gitlab::ProjectTemplate.all.count
2021-01-03 14:25:43 +05:30
.tab-content
.project-templates-buttons.import-buttons.tab-pane.active#built-in
2021-02-22 17:27:13 +05:30
= render partial: 'projects/project_templates/template', collection: Gitlab::SampleDataTemplate.all + Gitlab::ProjectTemplate.all
2018-03-17 18:26:18 +05:30
2018-11-18 11:00:15 +05:30
.project-fields-form
= render 'projects/project_templates/project_fields_form'
2018-12-05 23:21:45 +05:30
= render 'projects/new_project_fields', f: f, project_name_id: "template-project-name", hide_init_with_readme: true, track_label: "create_from_template"