[PATCH/foreman 1/1] Check host.managed before rendering templates on host page. Fixes #1323

Signed-off-by: Greg Sutcliffe <gsutcliffe@gmail.com>

··· --- app/views/hosts/show.html.erb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/app/views/hosts/show.html.erb b/app/views/hosts/show.html.erb
index 2e7dd4a…5ff5154 100644
— a/app/views/hosts/show.html.erb
+++ b/app/views/hosts/show.html.erb
@@ -25,7 +25,7 @@

<%= report_status_chart 'resource_graph', 'Resources', "last #{@range} days", @host.resources_chart(@range.days.ago) %>
- <% if SETTINGS[:unattended] -%> + <% if SETTINGS[:unattended] && @host.managed? -%> -- 1.7.7.1
Templates
<%= show_templates -%>