Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove stats (not gathered on mobile)

  • Loading branch information...
commit 4bdf1024239ab4a798bd131ed94e208bffc4ef20 1 parent b964aa9
@daleharvey authored
Showing with 0 additions and 36 deletions.
  1. +0 −20 _attachments/index.html
  2. +0 −16 _attachments/js/mobile.futon.js
View
20 _attachments/index.html
@@ -39,8 +39,6 @@ <h1 id="title">Mobile Futon</h1>
<span class="arrow right">›</span></a></li>
<li><a href="#/couchapps/">CouchApps
<span class="arrow right">›</span></a></li>
- <li><a href="#/stats/">Statistics
- <span class="arrow right">›</span></a></li>
<li><a href="#/config/">Config
<span class="arrow right">›</span></a></li>
</ul>
@@ -51,24 +49,6 @@ <h1 id="title">Mobile Futon</h1>
</script>
- <script type="text/html" id="stats_tpl">
- {{#stats}}
- <ul>
- <li class="header">{{key}}</li>
- {{#value}}
- <li>
- <span>{{key}}:
- <span class="right padded">
- {{value.current}}{{^value.current}}0{{/value.current}}
- </span>
- </span>
- </li>
- {{/value}}
- </ul>
- {{/stats}}
- </script>
-
-
<script type="text/html" id="replication_doc_tpl">
<div style="text-align:center; margin: 15px 0px;">
<h3 id="repl_doc" >
View
16 _attachments/js/mobile.futon.js
@@ -476,22 +476,6 @@ var MobileFuton = (function () {
});
- router.get('#/stats/', function(rtr) {
- setTitle('Statistics');
- $.couch.stats().then(function(data) {
- var items = [];
- $.each(data, function(id) {
- var obj = {key:id, value:[]};
- $.each(data[id], function(stat) {
- obj.value.push({key:stat, value: data[id][stat]});
- });
- items.push(obj);
- });
- renderer.render('stats_tpl', {stats:items}, rtr);
- });
- });
-
-
router.get('#/tasks/', function(rtr) {
setTitle('Active Tasks');
$.couch.activeTasks({error: unauth}).then(function(data) {
Please sign in to comment.
Something went wrong with that request. Please try again.