Just strip this out; I suspect no one in the world cares but if they do we can bring it back with +/- columns.

This commit is contained in:
Simon MacMullen 2014-09-22 15:17:10 +01:00
parent 74ccb09949
commit 2cb532efec
2 changed files with 0 additions and 26 deletions

View File

@ -303,25 +303,6 @@ function fmt_rate_bytes_axis(num, max) {
return fmt_bytes_axis(num, max) + '/s';
}
function is_stat_empty(obj, name) {
if (obj == undefined
|| obj[name] == undefined
|| obj[name + '_details'] == undefined
|| obj[name + '_details'].rate < 0.00001) return true;
return false;
}
function is_col_empty(objects, name, accessor) {
if (accessor == undefined) accessor = function(o) {return o.message_stats;};
for (var i = 0; i < objects.length; i++) {
var object = objects[i];
if (!is_stat_empty(accessor(object), name)) {
return false;
}
}
return true;
}
function fmt_maybe_vhost(name) {
return vhosts_interesting ?
' in virtual host <b>' + fmt_escape_html(name) + '</b>'

View File

@ -1,7 +1,6 @@
<h3><%= label %></h3>
<% if (object && object.length > 0) { %>
<%
var col_return_unroutable = !is_col_empty(object, 'return_unroutable', function(o) {return o.stats;});
var col_confirm = mode != 'exchange-outgoing';
%>
<table class="list">
@ -18,9 +17,6 @@
<th>publish</th>
<% if (col_confirm) { %>
<th>confirm</th>
<% } %>
<% if (col_return_unroutable) { %>
<th>return (mandatory)</th>
<% } %>
</tr>
<%
@ -41,9 +37,6 @@
<td class="r"><%= fmt_rate(pub.stats, 'publish') %></td>
<% if (col_confirm) { %>
<td class="r"><%= fmt_rate(pub.stats, 'confirm') %></td>
<% } %>
<% if (col_return_unroutable) { %>
<td class="r"><%= fmt_rate(pub.stats, 'return_unroutable') %></td>
<% } %>
</tr>
<% } %>