ifttt-gdash 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,67 +0,0 @@
1
- <html>
2
- <head>
3
- <link rel="stylesheet/less" type="text/css" href="<%= @prefix %>/lib/bootstrap.less">
4
- <script src="<%= @prefix %>/js/less-1.1.3.min.js" type="text/javascript"></script>
5
- <script src="<%= @prefix %>/js/jquery-1.5.2.min.js"></script>
6
- <script src="<%= @prefix %>/js/jquery.tablesorter.min.js"></script>
7
- <script src="<%= @prefix %>/js/bootstrap-twipsy.js"></script>
8
- <script src="<%= @prefix %>/js/bootstrap-scrollspy.js"></script>
9
- <script src="<%= @prefix %>/js/bootstrap-dropdown.js"></script>
10
- <script src="<%= @prefix %>/js/bootstrap-popover.js"></script>
11
- <title><%= @dash_title %></title>
12
- </head>
13
- <body style="padding-top: 80px;">
14
- <div class="topbar-wrapper" style="z-index: 5;">
15
- <div class="topbar" data-dropdown="dropdown" >
16
- <div class="topbar-inner">
17
- <div class="container">
18
- <h3><a href="<%= @prefix %>/"><%= @dash_title %></a></h3>
19
- <ul class="nav">
20
- <% @top_level.keys.sort.each do |category| %>
21
- <li class="dropdown">
22
- <a href="#" class="dropdown-toggle"><%= category.capitalize %></a>
23
- <ul class="dropdown-menu">
24
- <% @top_level[category].dashboards.sort_by{|b| b[:name].to_s}.each do |board| %>
25
- <li><a href="<%= [@prefix, category, board[:link]].join('/') %>/"><%= board[:name] %></a></li>
26
- <% end %>
27
- </ul>
28
- </li>
29
- <% end %>
30
- </ul>
31
- <ul class="nav secondary-nav">
32
- <li><a href="<%= @graphite_base %>">Data Browser</a></li>
33
- <li><a href="<%= @prefix %>/docs/">Docs</a></li>
34
- </ul>
35
- </div>
36
- </div>
37
- </div>
38
- </div>
39
-
40
- <div class="container">
41
- <% if @error %>
42
- <div class="alert-message error">
43
- <%= @error %>
44
- </div>
45
- <% end %>
46
- <%= yield %>
47
- </div>
48
- <div class="container">
49
- <h6 id="updated"></h6>
50
- </div>
51
- <script>
52
- $(document).ready(function() {
53
- var now = new Date();
54
- $('#updated').text('Updated ' + now.toLocaleString())
55
- setInterval(reloadDash, <%= @refresh_rate * 1000 %>);
56
- });
57
- function reloadDash() {
58
- var now = new Date();
59
- $('img').each(function(index) {
60
- var url = $(this).attr('src').replace(/&\d+$/, '');
61
- $(this).attr('src', url + '&' + now.getTime());
62
- });
63
- $('#updated').text('Updated ' + now.toLocaleString())
64
- }
65
- </script>
66
- </body>
67
- </html>