%= favicon_link_tag "pghero/favicon.png" %>
<% if defined?(Propshaft::Railtie) %>
<%= stylesheet_link_tag "pghero/nouislider", "pghero/arduino-light", "pghero/application" %>
<%= javascript_include_tag "pghero/jquery", "pghero/nouislider", "pghero/Chart.bundle", "pghero/chartkick", "pghero/highlight.pack", "pghero/application" %>
<% else %>
<%= stylesheet_link_tag "pghero/application" %>
<%= javascript_include_tag "pghero/application" %>
<% end %>
">
<% if alert %>
<%= alert %>
<% elsif notice %>
<%= notice %>
<% elsif Rails.env.development? %>
Do not use development information to make decisions about your production environment
<% else %>
<%= link_to "PgHero", root_path %>
<% end %>
<% if @databases.size > 1 %>
<% end %>
- "><%= link_to "Overview", root_path %>
<% if @system_stats_enabled %>
- "><%= link_to "System", system_path %>
<% end %>
<% if @query_stats_enabled %>
- "><%= link_to "Queries", queries_path %>
<% end %>
- "><%= link_to "Space", space_path %>
- "><%= link_to "Connections", connections_path %>
- "><%= link_to "Live Queries", live_queries_path %>
<% unless @database.replica? %>
- "><%= link_to "Maintenance", maintenance_path %>
<% end %>
- "><%= link_to "Explain", explain_path %>
- "><%= link_to "Tune", tune_path %>
<% if @databases.size > 1 %>
<% @databases.each do |database| %>
- ">
<%= link_to database.name, action_name == "show_query" ? root_path(database: database.id) : {database: database.id} %>
<% end %>
<% end %>
<%= yield %>