Sha256: fe6a6949703e8f02d36242c4345a5344db1bc9952ed27eaf1f0a9c601d46d6cd
Contents?: true
Size: 998 Bytes
Versions: 9
Compression:
Stored size: 998 Bytes
Contents
<html> <head> <script src="<%= @prefix %>/js/jquery-1.5.2.min.js"></script> </head> <% if @error %> <h2><%= @error %></h2> <% else %> <body bgcolor="black"> <table width="100%" height="100%"> <% @dashboard.graphs.in_groups_of(params["columns"]) do |graphs| %> <tr> <% graphs.each do |graph| %> <td valign="middle" align="center"> <% if graph %> <img src='<%= [@top_level[@params[:category]].graphite_render, graph[:graphite][:url]].join "?" %>'> <% end %> </td> <% end %> </tr> <% end %> </table> <script> $(document).ready(function() { setInterval(reloadDash, <%= @refresh_rate * 1000 %>); }); function reloadDash() { var now = new Date(); $('img').each(function(index) { var url = $(this).attr('src').replace(/&\d+$/, ''); $(this).attr('src', url + '&' + now.getTime()); }); } </script> </body> <% end %> </html>
Version data entries
9 entries across 9 versions & 2 rubygems