Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZ.J. van de Weg <git@zjvandeweg.nl>2017-07-26 15:21:53 +0300
committerZ.J. van de Weg <git@zjvandeweg.nl>2017-07-28 12:32:46 +0300
commit1d3815f89b9b9f5ecfd6dd15158a2988603b9ed8 (patch)
treea694e1e05f58fc3fe5ae00135d4a439eef7c8150 /app/views/projects/_project_templates.html.haml
parentd964816b9fe56679ffc0b331e701f7b24db5c6a9 (diff)
Allow projects to be started from a template
Started implementation for the first iteration of gitlab-org/gitlab-ce#32420. This will allow users to select a template to start with, instead of an empty repository in the project just created. Internally this is basically a small extension of the ImportExport GitLab projects we already support. We just import a certain import tar archive. This commits includes the first one: Ruby on Rails. In the future more will be added.
Diffstat (limited to 'app/views/projects/_project_templates.html.haml')
-rw-r--r--app/views/projects/_project_templates.html.haml8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/views/projects/_project_templates.html.haml b/app/views/projects/_project_templates.html.haml
new file mode 100644
index 00000000000..bef64ca7433
--- /dev/null
+++ b/app/views/projects/_project_templates.html.haml
@@ -0,0 +1,8 @@
+.col-sm-12.template-buttons
+ - 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
+ = template.title
+ = image_tag(template.logo_path)
+
+ = f.text_field :template_title, placeholder: "rails", class: "form-control", tabindex: 2, autofocus: true, required: true