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
path: root/config
diff options
context:
space:
mode:
authorJosep Llaneras <pepmanuel@gmail.com>2016-10-12 02:22:09 +0300
committerJosep Llaneras <pepmanuel@gmail.com>2016-11-11 22:59:54 +0300
commit0803a350b09d2c80a7ff1c2d1e17712989b7a0c2 (patch)
tree42a6fb389abb4417c1dbacae1caf0a1b16a92ef1 /config
parent0e1e42885a792145dafc6aa28165d069b1cb5c03 (diff)
Issue #13823: random message when all Todos are Done
Diffstat (limited to 'config')
-rw-r--r--config/initializers/1_settings.rb1
-rw-r--r--config/no_todos_messages.yml16
2 files changed, 17 insertions, 0 deletions
diff --git a/config/initializers/1_settings.rb b/config/initializers/1_settings.rb
index 9fec2ad6bf7..9ddd1554811 100644
--- a/config/initializers/1_settings.rb
+++ b/config/initializers/1_settings.rb
@@ -215,6 +215,7 @@ Settings.gitlab.default_projects_features['visibility_level'] = Settings.send(
Settings.gitlab['domain_whitelist'] ||= []
Settings.gitlab['import_sources'] ||= %w[github bitbucket gitlab google_code fogbugz git gitlab_project]
Settings.gitlab['trusted_proxies'] ||= []
+Settings.gitlab['no_todos_messages'] ||= YAML.load_file(Rails.root.join('config', 'no_todos_messages.yml'))
#
# CI
diff --git a/config/no_todos_messages.yml b/config/no_todos_messages.yml
new file mode 100644
index 00000000000..92182d100e8
--- /dev/null
+++ b/config/no_todos_messages.yml
@@ -0,0 +1,16 @@
+# When the Todos list on the user's dashboard is empty, one of the messages below shows up randomly.
+#
+# If you come up with a fun one, please feel free to contribute it to GitLab!
+# https://about.gitlab.com/contributing/
+
+---
+-
+ message: "Good job! Looks like you don't have any todos left."
+-
+ message: "You're all done!"
+-
+ message: "Coffee really tastes better without any todos left."
+ author: "Josep Llaneras"
+-
+ message: "Isn't an empty To Do list beautiful?"
+ author: "Josep Llaneras"