_built_in_templates.html.haml 974 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
- Gitlab::ProjectTemplate.all.each do |template|
  .template-option.d-flex.align-items-center
    .logo.append-right-10
      = custom_icon(template.logo, size: 40)
    .description
      %strong
        = template.title
      %br
      .text-muted
        = template.description
    .controls.d-flex.align-items-center
      %label.btn.btn-success.template-button.choose-template.append-right-10.append-bottom-0{ for: template.name }
13
        %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" } }
14 15
        %span
          = _("Use template")
16
      %a.btn.btn-default{ 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 } }
17
        = _("Preview")