From 34d1d1676d9771fc03524a75b7bd027f56962f1f Mon Sep 17 00:00:00 2001 From: "Z.J. van de Weg" Date: Fri, 18 Nov 2016 11:58:29 +0100 Subject: Add framework for rendering partials [ci skip] --- app/views/projects/services/_mattermost_command_service.html.haml | 1 + app/views/shared/_service_settings.html.haml | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 app/views/projects/services/_mattermost_command_service.html.haml 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 -- cgit v1.2.1