diff options
author | Jason Lenny <jlenny@gitlab.com> | 2019-01-29 11:25:52 +0300 |
---|---|---|
committer | Lukas Eipert <leipert@gitlab.com> | 2019-02-07 19:05:33 +0300 |
commit | 37410a9ddf2eb90361974fd676bd0558dcad3ffa (patch) | |
tree | 4140ec69dd7681f3f14392641e3727df5877e7a8 /app | |
parent | 232ae06a829ba1a7e795564f711e730bd839be41 (diff) |
Add Pages templates
Adds templates for the 5 most popular Pages templates to the new project
menu. This does not add unique icons for the templates because that
turned out more complicated than expected, and this feature is valuable
without them.
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/projects/project_new.js | 20 | ||||
-rw-r--r-- | app/views/projects/new.html.haml | 3 |
2 files changed, 23 insertions, 0 deletions
diff --git a/app/assets/javascripts/projects/project_new.js b/app/assets/javascripts/projects/project_new.js index 998554d1be5..9ca1a26b3ac 100644 --- a/app/assets/javascripts/projects/project_new.js +++ b/app/assets/javascripts/projects/project_new.js @@ -125,6 +125,26 @@ const bindEvents = () => { text: 'Spring', icon: '.template-option svg.icon-java-spring', }, + hugo: { + text: 'Pages/Hugo', + icon: '.template-option svg.icon-pages-hugo', + }, + jekyll: { + text: 'Pages/Jekyll', + icon: '.template-option svg.icon-pages-jekyll', + }, + plainhtml: { + text: 'Pages/Plain HTML', + icon: '.template-option svg.icon-pages-plainhtml', + }, + gitbook: { + text: 'Pages/GitBook', + icon: '.template-option svg.icon-pages-gitbook', + }, + hexo: { + text: 'Pages/Hexo', + icon: '.template-option svg.icon-pages-hexo', + }, }; const selectedTemplate = templates[value]; diff --git a/app/views/projects/new.html.haml b/app/views/projects/new.html.haml index 8275996b522..ff7c36c2d5b 100644 --- a/app/views/projects/new.html.haml +++ b/app/views/projects/new.html.haml @@ -16,6 +16,9 @@ = _('A project is where you house your files (repository), plan your work (issues), and publish your documentation (wiki), %{among_other_things_link}.').html_safe % { among_other_things_link: among_other_things_link } %p = _('All features are enabled for blank projects, from templates, or when importing, but you can disable them afterward in the project settings.') + %p + - pages_getting_started_guide = link_to _('Pages getting started guide'), help_page_path("user/project/pages/getting_started_part_two", anchor: "fork-a-project-to-get-started-from"), target: '_blank' + = _('Information about additional Pages templates and how to install them can be found in our %{pages_getting_started_guide}.').html_safe % { pages_getting_started_guide: pages_getting_started_guide } .md = brand_new_project_guidelines %p |