From 9a63cd1bcf4530469d31dc7d6fd6893d8c471692 Mon Sep 17 00:00:00 2001 From: Roman Blanco Date: Wed, 30 May 2018 14:56:50 +0200 Subject: [PATCH] Added warning about providers state --- app/views/shared/views/ems_common/_show.html.haml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/views/shared/views/ems_common/_show.html.haml b/app/views/shared/views/ems_common/_show.html.haml index a54900fee26..e98896b1e8f 100644 --- a/app/views/shared/views/ems_common/_show.html.haml +++ b/app/views/shared/views/ems_common/_show.html.haml @@ -1,4 +1,10 @@ #main_div + - if @record.kind_of?(ExtManagementSystem) && !@record.try(:enabled) + .alert.alert-warning + %span.pficon-layered + %span.pficon.pficon-warning-triangle-o + %strong + = _("Warning: This provider is paused, no data is currently collected from it.") - arr = (controller_name.camelize + "Controller").constantize.display_methods - if arr.include?(@display) && @showtype != "compare" = render :partial => "layouts/gtl", :locals => {:action_url => "show/#{@ems.id}"}