Sha256: 80647b5286d043755f24d655ec753cdba7373c766ff690196060cfc68f7e7a14
Contents?: true
Size: 1.64 KB
Versions: 8
Compression:
Stored size: 1.64 KB
Contents
<% unless @error %> <h1><%= @dashboard.name %> <small><%= @dashboard.description %></small></h1> <%= erb :_interval_filter, :layout => false unless @interval_filters.empty? %> <div class="row"> <table> <% row = 1 %> <% grouped_graphs = @dashboard.graphs.in_groups_of(@graph_columns) %> <% grouped_graphs.each do |graphs| %> <tr> <% graphs.each do |graph| %> <% i = grouped_graphs.rindex(graphs) * @graph_columns + graphs.rindex(graph) %> <td> <% if graph %> <% if graph[:graphite][:description] %> <a href='<%= [@prefix, params[:category], @params[:dash], 'details', i].join "/" %>'> <img src='<%= [@top_level[@params[:category]].graphite_render, graph[:graphite][:url]].join "?" %>' rel="<%= row == 1 ? 'popover-below' : 'popover-above' %>" title="<%= graph[:graphite][:title] %>" data-content="<%= graph[:graphite][:description] %>"></a> <% else %> <a href='<%= [@prefix, params[:category], @params[:dash], 'details', i].join "/" %>'> <img src='<%= [@top_level[@params[:category]].graphite_render, graph[:graphite][:url]].join "?" %>'></a> <% end %> <% end %> </td> <% end %> </tr> <% row += 1 %> <% end %> </table> </div> <script> $(function () { $("img[rel=popover-above]") .popover({ placement: "above", delayIn: 1000 }) }) $(function () { $("img[rel=popover-below]") .popover({ placement: "below", delayIn: 1000 }) }) </script> <% end %>
Version data entries
8 entries across 8 versions & 2 rubygems