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