|
8 | 8 | <thead> |
9 | 9 | <tr> |
10 | 10 | <%= group_heading('connections', 'Overview', [vhosts_interesting, nodes_interesting, true]) %> |
11 | | - <% if (!disable_stats) { %> |
12 | 11 | <%= group_heading('connections', 'Details', []) %> |
13 | 12 | <%= group_heading('connections', 'Network', []) %> |
14 | | - <% } %> |
15 | 13 | <th class="plus-minus"><span class="popup-options-link" title="Click to change columns" type="columns" for="connections">+/-</span></th> |
16 | 14 | </tr> |
17 | 15 | <tr> |
|
32 | 30 | <% if (show_column('connections', 'user')) { %> |
33 | 31 | <th><%= fmt_sort('User name', 'user') %></th> |
34 | 32 | <% } %> |
35 | | -<% if (!disable_stats) { %> |
36 | | -<% if (show_column('connections', 'state')) { %> |
| 33 | +<% if (show_column('connections', 'state') && !disable_stats) { %> |
37 | 34 | <th><%= fmt_sort('State', 'state') %></th> |
38 | 35 | <% } %> |
39 | 36 | <% if (show_column('connections', 'ssl')) { %> |
|
45 | 42 | <% if (show_column('connections', 'protocol')) { %> |
46 | 43 | <th><%= fmt_sort('Protocol', 'protocol') %></th> |
47 | 44 | <% } %> |
48 | | -<% if (show_column('connections', 'channels')) { %> |
| 45 | +<% if (show_column('connections', 'channels') && !disable_stats) { %> |
49 | 46 | <th><%= fmt_sort('Channels', 'channels') %></th> |
50 | 47 | <% } %> |
51 | 48 | <% if (show_column('connections', 'channel_max')) { %> |
|
60 | 57 | <% if (show_column('connections', 'client')) { %> |
61 | 58 | <th><%= fmt_sort('Client', 'properties') %></th> |
62 | 59 | <% } %> |
63 | | -<% if (show_column('connections', 'from_client')) { %> |
| 60 | +<% if (show_column('connections', 'from_client') && !disable_stats) { %> |
64 | 61 | <th><%= fmt_sort('From client', 'recv_oct_details.rate') %></th> |
65 | 62 | <% } %> |
66 | | -<% if (show_column('connections', 'to_client')) { %> |
| 63 | +<% if (show_column('connections', 'to_client') && !disable_stats) { %> |
67 | 64 | <th><%= fmt_sort('To client', 'send_oct_details.rate') %></th> |
68 | 65 | <% } %> |
69 | 66 | <% if (show_column('connections', 'heartbeat')) { %> |
70 | 67 | <th><%= fmt_sort('Heartbeat', 'timeout') %></th> |
71 | 68 | <% } %> |
72 | 69 | <% if (show_column('connections', 'connected_at')) { %> |
73 | 70 | <th><%= fmt_sort('Connected at', 'connected_at') %></th> |
74 | | -<% } %> |
75 | 71 | <% } %> |
76 | 72 | </tr> |
77 | 73 | </thead> |
|
107 | 103 | <% if (show_column('connections', 'user')) { %> |
108 | 104 | <td class="c"><%= fmt_string(connection.user) %></td> |
109 | 105 | <% } %> |
110 | | -<% if (!disable_stats) { %> |
111 | | -<% if (show_column('connections', 'state')) { %> |
| 106 | +<% if (show_column('connections', 'state') && !disable_stats) { %> |
112 | 107 | <td><%= fmt_object_state(connection) %></td> |
113 | 108 | <% } %> |
114 | 109 | <% if (show_column('connections', 'ssl')) { %> |
|
129 | 124 | <% if (show_column('connections', 'protocol')) { %> |
130 | 125 | <td class="c"><%= connection.protocol %></td> |
131 | 126 | <% } %> |
132 | | -<% if (show_column('connections', 'channels')) { %> |
| 127 | +<% if (show_column('connections', 'channels') && !disable_stats) { %> |
133 | 128 | <td class="r"><%= fmt_string(connection.channels, '') %></td> |
134 | 129 | <% } %> |
135 | 130 | <% if (show_column('connections', 'channel_max')) { %> |
|
144 | 139 | <% if (show_column('connections', 'client')) { %> |
145 | 140 | <td><%= fmt_client_name(connection.client_properties) %></td> |
146 | 141 | <% } %> |
147 | | -<% if (show_column('connections', 'from_client')) { %> |
| 142 | +<% if (show_column('connections', 'from_client') && !disable_stats) { %> |
148 | 143 | <td><%= fmt_detail_rate_bytes(connection, 'recv_oct') %></td> |
149 | 144 | <% } %> |
150 | | -<% if (show_column('connections', 'to_client')) { %> |
| 145 | +<% if (show_column('connections', 'to_client') && !disable_stats) { %> |
151 | 146 | <td><%= fmt_detail_rate_bytes(connection, 'send_oct') %></td> |
152 | 147 | <% } %> |
153 | 148 | <% if (show_column('connections', 'heartbeat')) { %> |
|
156 | 151 | <% if (show_column('connections', 'connected_at')) { %> |
157 | 152 | <td><%= fmt_timestamp_mini(connection.connected_at) %></td> |
158 | 153 | <% } %> |
159 | | - <% } %> |
160 | 154 | </tr> |
161 | 155 | <% } %> |
162 | 156 | </tbody> |
|
0 commit comments