Make policy clickable.
Policy is refered by name in exchanges and queues pages. Make it a link, so it's easier to navigate. Fixes #493 [#152274158]
This commit is contained in:
parent
e9d8d71a64
commit
c24320c4bb
|
|
@ -85,7 +85,7 @@ function fmt_policy_short(obj) {
|
||||||
if (obj.policy != undefined && obj.policy != '') {
|
if (obj.policy != undefined && obj.policy != '') {
|
||||||
return '<abbr class="policy" title="Policy: ' +
|
return '<abbr class="policy" title="Policy: ' +
|
||||||
fmt_escape_html(obj.policy) + '">' +
|
fmt_escape_html(obj.policy) + '">' +
|
||||||
fmt_escape_html(obj.policy) + '</abbr> ';
|
link_policy(obj.vhost, obj.policy) + '</abbr> ';
|
||||||
} else {
|
} else {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Policy</th>
|
<th>Policy</th>
|
||||||
<td><%= fmt_string(exchange.policy, '') %></td>
|
<td><%= link_policy(exchange.vhost, exchange.policy) %></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,7 @@
|
||||||
<% } %>
|
<% } %>
|
||||||
<% if (show_column('exchanges', 'policy')) { %>
|
<% if (show_column('exchanges', 'policy')) { %>
|
||||||
<td class="c">
|
<td class="c">
|
||||||
<%= fmt_string(exchange.policy) %>
|
<%= link_policy(exchange.vhost, exchange.policy) %>
|
||||||
</td>
|
</td>
|
||||||
<% } %>
|
<% } %>
|
||||||
<% if (rates_mode != 'none') { %>
|
<% if (rates_mode != 'none') { %>
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Policy</th>
|
<th>Policy</th>
|
||||||
<td><%= fmt_string(queue.policy, '') %></td>
|
<td><%= link_policy(queue.vhost, queue.policy) %></td>
|
||||||
</tr>
|
</tr>
|
||||||
<% if (nodes_interesting) { %>
|
<% if (nodes_interesting) { %>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
||||||
|
|
@ -116,7 +116,7 @@
|
||||||
<td class="c"><%= fmt_features_short(queue) %></td>
|
<td class="c"><%= fmt_features_short(queue) %></td>
|
||||||
<% } %>
|
<% } %>
|
||||||
<% if (show_column('queues', 'policy')) { %>
|
<% if (show_column('queues', 'policy')) { %>
|
||||||
<td class="c"><%= fmt_string(queue.policy) %></td>
|
<td class="c"><%= link_policy(queue.vhost, queue.policy) %></td>
|
||||||
<% } %>
|
<% } %>
|
||||||
<% if (show_column('queues', 'consumers')) { %>
|
<% if (show_column('queues', 'consumers')) { %>
|
||||||
<td class="c"><%= fmt_string(queue.consumers) %></td>
|
<td class="c"><%= fmt_string(queue.consumers) %></td>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue