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)) {