File: _template.html.haml

package info (click to toggle)
gitlab 17.6.5-19
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 629,368 kB
  • sloc: ruby: 1,915,304; javascript: 557,307; sql: 60,639; xml: 6,509; sh: 4,567; makefile: 1,239; python: 406
file content (17 lines) | stat: -rw-r--r-- 1,112 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
.template-option.gl-items-center{ class: '!gl-flex', data: { testid: 'template-option-container' } }
  .logo.gl-mr-3.px-1
    = image_tag template.logo, size: 32, class: "btn-template-icon icon-#{template.name}"
  .description
    %strong
      = template.title
    %br
    .gl-text-subtle
      = template.description
  .controls.gl-items-center{ class: '!gl-flex' }
    = render Pajamas::ButtonComponent.new(button_options: { class: 'gl-mr-3', data: { track_label: "template_preview", track_property: template.name, track_action: "click_button", track_value: "" } }, href: template.preview, target: '_blank') do
      = _("Preview")
    %label.btn.gl-button.btn-confirm.template-button.choose-template.gl-mb-0{ for: template.name,
      'data-testid': "use_template_#{template.name}" }
      %input{ type: "radio", autocomplete: "off", name: "project[template_name]", id: template.name, value: template.name, data: { track_label: "template_use", track_property: template.name, track_action: "click_button", track_value: "" } }
      %span{ data: { testid: 'use-template-button' } }
        = _("Use template")