gitlab-org--gitlab-foss/app/views/projects/_project_templates.html.haml

14 lines
580 B
Text
Raw Normal View History

2017-07-30 06:56:40 -04:00
2017-07-31 12:33:10 -04:00
.project-templates-buttons.import-buttons{ data: { toggle: "buttons" }}
%div.btn.btn-default.active
%input{ type: "radio", autocomplete: "off", name: "project_templates", id: "blank", checked: "true" }
2017-07-30 06:56:40 -04:00
= icon('file-o')
Blank
- Gitlab::ProjectTemplate.all.each do |template|
-# The title should be the value posted to the controller, a pretty name to print would be
-# template.name
2017-07-31 12:33:10 -04:00
%div.btn
%input{ type: "radio", autocomplete: "off", name: "project_templates", id: template.name }
2017-07-30 06:56:40 -04:00
= image_tag(template.logo_path)
= template.title