Sha256: 1f198534fe12fbe3466179556a856fdb6216955dd34935fcba042270444dafee
Contents?: true
Size: 1.66 KB
Versions: 1
Compression:
Stored size: 1.66 KB
Contents
<% unless @error %> <%= dashboard_preheader %> <h1><%= @dashboard.name %> <small><%= @dashboard.description %></small></h1> <%= dashboard_header %> <%= 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='<%= uri_to_details(i) %>'> <img src='<%= [@top_level[@params[:category]].graphite_render, graph[:graphite][:url].to_s.force_encoding('UTF-8')].join "?" %>' rel="<%= row == 1 ? 'popover-below' : 'popover-above' %>" title="<%= graph[:graphite][:title] %>" data-content="<%= graph[:graphite][:description] %>"></a> <% else %> <a href='<%= uri_to_details(i) %>'> <img src='<%= [@top_level[@params[:category]].graphite_render, graph[:graphite][:url]].join "?" %>'></a> <% end %> <%= graph_caption(graph) %> <% 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ifttt-gdash-0.0.7 | views/dashboard.erb |