Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fetch application info into dashboard

  • Loading branch information...
commit bb549e57c83b5cc4576bfc37b4af08ab2bb6a2c7 1 parent 2a9eadc
Hunter Morris authored
Showing with 20 additions and 19 deletions.
  1. +17 −18 priv/html/index.html
  2. +3 −1 priv/js/bigwig.js
View
35 priv/html/index.html
@@ -16,24 +16,7 @@
<li><a class="tool" href="dashboard">Dashboard</a></li>
<li><a class="tool" href="reports">Reports</a></li>
<li><a class="tool" href="etop">Processes</a></li>
- <li><a class="tool" href="appmon">Applications</a>
- <div id="applications">
- <ul id="running">
- <li class="running app _tpl"><a href="javascript:BigWig.activate('appmon');">
- <span class="name"></span>
- <span class="version"></span>
- <p class="description"></p>
- </a></li>
- </ul>
- <ul id="loaded">
- <li class="loaded app _tpl"><a href="javascript:BigWig.activate('appmon');">
- <span class="name"></span>
- <span class="version"></span>
- <p class="description"></p>
- </a></li>
- </ul>
- </div>
- </li>
+ <li><a class="tool" href="appmon">Applications</a></li>
</ul>
<div id="nodestats">
@@ -103,6 +86,22 @@
<div id="main">
<div id="dashboard" class="tool">
+ <div id="applications">
+ <ul id="running">
+ <li class="running app _tpl"><a href="javascript:BigWig.activate('appmon');">
+ <span class="name"></span>
+ <span class="version"></span>
+ <p class="description"></p>
+ </a></li>
+ </ul>
+ <ul id="loaded">
+ <li class="loaded app _tpl"><a href="javascript:BigWig.activate('appmon');">
+ <span class="name"></span>
+ <span class="version"></span>
+ <p class="description"></p>
+ </a></li>
+ </ul>
+ </div>
</div>
<div id="appmon" class="tool">
View
4 priv/js/bigwig.js
@@ -19,7 +19,6 @@ BigWig = (function() {
TPL.update('running', data.running);
//TPL.update('loaded', data.loaded);
});
- TPL.fetch("/vm");
activate('dashboard');
})();
@@ -28,3 +27,6 @@ BigWig = (function() {
};
})();
+$(function() {
+ TPL.fetch('/vm');
+});

0 comments on commit bb549e5

Please sign in to comment.
Something went wrong with that request. Please try again.