From 3d7e95c456edc06681c7b283737a63ca8f006371 Mon Sep 17 00:00:00 2001 From: Felix Aronsson Date: Wed, 7 Jun 2017 17:03:48 -0400 Subject: [PATCH] Dont show Graphs tabs if plugin is disabled --- app/views/asset/show_menu.scala.html | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/app/views/asset/show_menu.scala.html b/app/views/asset/show_menu.scala.html index 501aacc0e..ae9dbb4f6 100644 --- a/app/views/asset/show_menu.scala.html +++ b/app/views/asset/show_menu.scala.html @@ -5,7 +5,7 @@ @import collins.util.views.{Maintenance, SoftLayerHelper, OptionSorter, ProvisionerHelper, Summary, TagDecorator, Titler} @import collins.provisioning.ProvisionerConfig @import collins.provisioning.Provisioner -@import collins.graphs.GraphView +@import collins.graphs.{GraphConfig, GraphView} @import collins.frames.{ViewsConfig, FrameView} @import collins.controllers.Permissions @@ -71,10 +71,12 @@ } - @if(GraphView.isGraphable(aa.asset)) { -
  • Graphs
  • - } else { -
  • Graphs
  • + @if(GraphConfig.enabled) { + @if(GraphView.isGraphable(aa.asset)) { +
  • Graphs
  • + } else { +
  • Graphs
  • + } } @if(ViewsConfig.enabled) { @for(specs <- FrameView.getViewSpecs(aa)) {