summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean McGivern <sean@gitlab.com>2019-03-08 08:19:38 +0000
committerSean McGivern <sean@gitlab.com>2019-03-08 08:19:38 +0000
commit207d31002ea980ced4e106a3ab79fa2a6fd21047 (patch)
treeafa20d5c6b6edf298dae204a7d0b1c1187292ac1
parent9f6e60d7f709e106df6aa511305ee783094173af (diff)
parent773b0d499caec644760152852fbc7558e1bf9b1a (diff)
downloadgitlab-ce-207d31002ea980ced4e106a3ab79fa2a6fd21047.tar.gz
Merge branch '58649-project-template-for-android' into 'master'
Resolve "Project template for Android" Closes #58649 See merge request gitlab-org/gitlab-ce!25870
-rw-r--r--app/assets/javascripts/projects/project_new.js4
-rw-r--r--changelogs/unreleased/58649-project-template-for-android.yml5
-rw-r--r--lib/gitlab/project_template.rb1
-rw-r--r--locale/gitlab.pot3
-rw-r--r--spec/lib/gitlab/project_template_spec.rb1
-rw-r--r--vendor/project_templates/android.tar.gzbin0 -> 132152 bytes
6 files changed, 14 insertions, 0 deletions
diff --git a/app/assets/javascripts/projects/project_new.js b/app/assets/javascripts/projects/project_new.js
index 796ecbccde7..784eec1ea55 100644
--- a/app/assets/javascripts/projects/project_new.js
+++ b/app/assets/javascripts/projects/project_new.js
@@ -133,6 +133,10 @@ const bindEvents = () => {
text: '.NET Core',
icon: '.template-option .icon-dotnet',
},
+ android: {
+ text: 'Android',
+ icon: '.template-option svg.icon-android',
+ },
gomicro: {
text: 'Go Micro',
icon: '.template-option .icon-gomicro',
diff --git a/changelogs/unreleased/58649-project-template-for-android.yml b/changelogs/unreleased/58649-project-template-for-android.yml
new file mode 100644
index 00000000000..130992272ec
--- /dev/null
+++ b/changelogs/unreleased/58649-project-template-for-android.yml
@@ -0,0 +1,5 @@
+---
+title: Add project template for Android
+merge_request: 25870
+author:
+type: changed
diff --git a/lib/gitlab/project_template.rb b/lib/gitlab/project_template.rb
index 8a908291637..99885be8755 100644
--- a/lib/gitlab/project_template.rb
+++ b/lib/gitlab/project_template.rb
@@ -30,6 +30,7 @@ module Gitlab
ProjectTemplate.new('express', 'NodeJS Express', _('Includes an MVC structure to help you get started.'), 'https://gitlab.com/gitlab-org/project-templates/express', 'illustrations/logos/express.svg'),
ProjectTemplate.new('iosswift', 'iOS (Swift)', _('A ready-to-go template for use with iOS Swift apps.'), 'https://gitlab.com/gitlab-org/project-templates/iosswift'),
ProjectTemplate.new('dotnetcore', '.NET Core', _('A .NET Core console application template, customizable for any .NET Core project'), 'https://gitlab.com/gitlab-org/project-templates/dotnetcore', 'illustrations/logos/dotnet.svg'),
+ ProjectTemplate.new('android', 'Android', _('A ready-to-go template for use with Android apps.'), 'https://gitlab.com/gitlab-org/project-templates/android', 'illustrations/logos/android.svg'),
ProjectTemplate.new('gomicro', 'Go Micro', _('Go Micro is a framework for micro service development.'), 'https://gitlab.com/gitlab-org/project-templates/go-micro'),
ProjectTemplate.new('hugo', 'Pages/Hugo', _('Everything you need to create a GitLab Pages site using Hugo.'), 'https://gitlab.com/pages/hugo'),
ProjectTemplate.new('jekyll', 'Pages/Jekyll', _('Everything you need to create a GitLab Pages site using Jekyll.'), 'https://gitlab.com/pages/jekyll'),
diff --git a/locale/gitlab.pot b/locale/gitlab.pot
index abca0256726..fe16c268938 100644
--- a/locale/gitlab.pot
+++ b/locale/gitlab.pot
@@ -321,6 +321,9 @@ msgstr ""
msgid "A project is where you house your files (repository), plan your work (issues), and publish your documentation (wiki), %{among_other_things_link}."
msgstr ""
+msgid "A ready-to-go template for use with Android apps."
+msgstr ""
+
msgid "A ready-to-go template for use with iOS Swift apps."
msgstr ""
diff --git a/spec/lib/gitlab/project_template_spec.rb b/spec/lib/gitlab/project_template_spec.rb
index c9b93a84aef..8c2fc048a54 100644
--- a/spec/lib/gitlab/project_template_spec.rb
+++ b/spec/lib/gitlab/project_template_spec.rb
@@ -9,6 +9,7 @@ describe Gitlab::ProjectTemplate do
described_class.new('express', 'NodeJS Express', 'Includes an MVC structure, .gitignore, Gemfile, and more great stuff', 'https://gitlab.com/gitlab-org/project-templates/express'),
described_class.new('iosswift', 'iOS (Swift)', 'A ready-to-go template for use with iOS Swift apps.', 'https://gitlab.com/gitlab-org/project-templates/iosswift'),
described_class.new('dotnetcore', '.NET Core', 'A .NET Core console application template, customizable for any .NET Core project', 'https://gitlab.com/gitlab-org/project-templates/dotnetcore'),
+ described_class.new('android', 'Android', 'A ready-to-go template for use with Android apps.', 'https://gitlab.com/gitlab-org/project-templates/android'),
described_class.new('gomicro', 'Go Micro', 'Go Micro is a framework for micro service development.', 'https://gitlab.com/gitlab-org/project-templates/go-micro'),
described_class.new('hugo', 'Pages/Hugo', 'Everything you need to get started using a Hugo Pages site.', 'https://gitlab.com/pages/hugo'),
described_class.new('jekyll', 'Pages/Jekyll', 'Everything you need to get started using a Jekyll Pages site.', 'https://gitlab.com/pages/jekyll'),
diff --git a/vendor/project_templates/android.tar.gz b/vendor/project_templates/android.tar.gz
new file mode 100644
index 00000000000..3df17a0d9a6
--- /dev/null
+++ b/vendor/project_templates/android.tar.gz
Binary files differ