Skip to content

Commit

Permalink
hide pitzer expansion grafana link
Browse files Browse the repository at this point in the history
  • Loading branch information
ericfranz committed Aug 28, 2020
1 parent 48a20ce commit ca9307e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion views/layout.erb
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@
<li class="<%= 'active' if @ganglia && @ganglia.server_id == cluster.id %>">
<% if cluster.custom_config.key?(:ganglia) %>
<a href="<%= url("/clusters/#{cluster.id}/hour/report_moab_nodes") %>"><span><i class="fa fa-chart-area"></i></span> <%=cluster.metadata.title %> Cluster</a>
<% elsif cluster.custom_config.key?(:grafana) %>
<%# FIXME: remove duplicate links, instead of the if slurm statement %>
<% elsif cluster.custom_config.key?(:grafana) && cluster.job_config && cluster.job_config[:adapter] != "slurm" %>
<a href="<%= url("/clusters/#{cluster.id}/grafana") %>" target="_blank"><span><i class="fa fa-chart-area"></i></span> <%=cluster.metadata.title %> Cluster</a>
<% end %>
</li>
Expand Down

0 comments on commit ca9307e

Please sign in to comment.