summaryrefslogtreecommitdiff
path: root/app/views/projects/project_templates/_built_in_templates.html.haml
blob: 6159f1c35421ae82ed5fa2be152fa6e9e9da7a20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
- Gitlab::ProjectTemplate.all.each do |template|
  .template-option.d-flex.align-items-center
    .logo.append-right-10.px-1
      = image_tag template.logo, size: 32, class: "btn-template-icon icon-#{template.name}"
    .description
      %strong
        = template.title
      %br
      .text-muted
        = template.description
    .controls.d-flex.align-items-center
      %a.btn.btn-default.append-right-10{ href: template.preview, rel: 'noopener noreferrer', target: '_blank', data: { track_label: "create_from_template", track_property: "template_preview", track_event: "click_button", track_value: template.name } }
        = _("Preview")
      %label.btn.btn-success.template-button.choose-template.append-bottom-0{ for: template.name }
        %input{ type: "radio", autocomplete: "off", name: "project[template_name]", id: template.name, value: template.name, data: { track_label: "create_from_template", track_property: "template_use", track_event: "click_button" } }
        %span
          = _("Use template")