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/assets/javascripts/projects | |
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/assets/javascripts/projects')
-rw-r--r-- | app/assets/javascripts/projects/project_new.js | 20 |
1 files changed, 20 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]; |