summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZ.J. van de Weg <git@zjvandeweg.nl>2016-11-18 11:58:29 +0100
committerZ.J. van de Weg <git@zjvandeweg.nl>2016-11-21 13:43:36 +0100
commit34d1d1676d9771fc03524a75b7bd027f56962f1f (patch)
tree31dbae25b589e1c43389b6f8e91976335ee57272
parent220c258c68c8f2e4f0315153c443c036c3ace90c (diff)
downloadgitlab-ce-34d1d1676d9771fc03524a75b7bd027f56962f1f.tar.gz
Add framework for rendering partials
[ci skip]
-rw-r--r--app/views/projects/services/_mattermost_command_service.html.haml1
-rw-r--r--app/views/shared/_service_settings.html.haml6
2 files changed, 6 insertions, 1 deletions
diff --git a/app/views/projects/services/_mattermost_command_service.html.haml b/app/views/projects/services/_mattermost_command_service.html.haml
new file mode 100644
index 00000000000..1ed62fbfa5b
--- /dev/null
+++ b/app/views/projects/services/_mattermost_command_service.html.haml
@@ -0,0 +1 @@
+Hello Jared!
diff --git a/app/views/shared/_service_settings.html.haml b/app/views/shared/_service_settings.html.haml
index 601ef51737a..d2576bafe8a 100644
--- a/app/views/shared/_service_settings.html.haml
+++ b/app/views/shared/_service_settings.html.haml
@@ -1,6 +1,10 @@
= form_errors(@service)
-- if @service.help.present?
+- byebug
+
+- if lookup_context.template_exists?(@service.type.underscore, "projects/services", true)
+ = render 'projects/services/mattermost_command_service'
+- elsif @service.help.present?
.well
= preserve do
= markdown @service.help