Skip to content

Commit

Permalink
Add counters on detail pages
Browse files Browse the repository at this point in the history
closes #3416
  • Loading branch information
Gsantomaggio committed Sep 14, 2021
1 parent 9725595 commit 346adc8
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion deps/rabbitmq_management/priv/www/js/tmpl/channel.ejs
Expand Up @@ -74,7 +74,7 @@
</div>

<div class="section">
<h2>Consumers</h2>
<h2 class="updatable" >Consumers (<%=(channel.consumer_details.length)%>) </h2>
<div class="hider updatable">
<%= format('consumers', {'mode': 'channel', 'consumers': channel.consumer_details}) %>
</div>
Expand Down
2 changes: 1 addition & 1 deletion deps/rabbitmq_management/priv/www/js/tmpl/connection.ejs
Expand Up @@ -76,7 +76,7 @@
</div>
<div class="section">
<h2>Channels</h2>
<h2 class="updatable" >Channels (<%=(channels.length)%>) </h2>
<div class="hider updatable">
<%= format('channels-list', {'channels': channels, 'mode': 'connection'}) %>
</div>
Expand Down
6 changes: 3 additions & 3 deletions deps/rabbitmq_management/priv/www/js/tmpl/queue.ejs
Expand Up @@ -130,7 +130,7 @@
</tr>
<% if(queue.consumers) { %>
<tr>
<th>Consumers</th>
<th>Consumers%></th>
<td><%= fmt_string(queue.consumers) %></td>
</tr>
<% } else if(queue.hasOwnProperty('consumer_details')) { %>
Expand Down Expand Up @@ -273,15 +273,15 @@

<% if(!disable_stats) { %>
<div class="section-hidden">
<h2>Consumers</h2>
<h2 class="updatable">Consumers (<%=(queue.consumer_details.length)%>) </h2>
<div class="hider updatable">
<%= format('consumers', {'mode': 'queue', 'consumers': queue.consumer_details}) %>
</div>
</div>
<% } %>

<div class="section-hidden">
<h2>Bindings</h2>
<h2 class="updatable">Bindings (<%=(bindings.length)%>) </h2>
<div class="hider">
<div class="bindings-wrapper">
<%= format('bindings', {'mode': 'queue', 'bindings': bindings}) %>
Expand Down
2 changes: 1 addition & 1 deletion deps/rabbitmq_stream_management/priv/www/js/stream.js
Expand Up @@ -20,7 +20,7 @@ dispatcher_add(function(sammy) {
if (is_stream(queue)) {
var publishers = extraContent['extra_stream_publishers'];
if (publishers !== undefined) {
return '<div class="section-hidden"><h2>Stream publishers</h2><div class="hider updatable">' +
return '<div class="section-hidden"><h2 class="updatable">Stream publishers (' + Object.keys(publishers).length +')</h2><div class="hider updatable">' +
format('streamPublishersList', {'publishers': publishers, 'mode': 'queue'}) +
'</div></div>';
} else {
Expand Down
Expand Up @@ -116,14 +116,14 @@
<% } %>
<div class="section">
<h2>Publishers</h2>
<h2 class="updatable">Publishers (<%=(publishers.length)%>) </h2>
<div class="hider updatable">
<%= format('streamPublishersList', {'publishers': publishers, 'mode' : 'connection'}) %>
</div>
</div>
<div class="section">
<h2>Consumers</h2>
<h2 class="updatable" >Consumers (<%=(consumers.length)%>)</h2>
<div class="hider updatable">
<%= format('streamConsumersList', {'consumers': consumers}) %>
</div>
Expand Down

0 comments on commit 346adc8

Please sign in to comment.