123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- {{> warning}}
- {{> error}}
- <div class="row">
- <div class="col-md-12">
- <h2>消息服务实例 ({{collection.length}})</h2>
- </div>
- </div>
- <div class="row">
- <div class="col-md-12">
- <table class="table table-condensed table-bordered">
- <tr>
- <th>主机</th>
- <th>广播地址</th>
- <th>TCP端口</th>
- <th>HTTP端口</th>
- <th>版本</th>
- {{#if nsqlookupd.length}}
- <th>连接的发现服务</th>
- {{/if}}
- <th>主题</th>
- </tr>
- {{#each collection}}
- <tr {{#if out_of_date}}class="warning"{{/if}}>
- <td>{{hostname}}</td>
- <td><a class="link" href="{{basePath "/nodes"}}/{{broadcast_address_http}}">{{broadcast_address}}</a></td>
- <td>{{tcp_port}}</td>
- <td>{{http_port}}</td>
- <td>{{version}}</td>
- {{#if ../nsqlookupd.length}}
- <td>
- <a class="conn-count btn btn-default btn-xs {{#unlesseq ../../nsqlookupd.length remote_addresses.length}}btn-warning{{/unlesseq}}">{{remote_addresses.length}}</a>
- <div style="display: none;">
- {{#each remote_addresses}}{{this}}<br/>{{/each}}
- </div>
- </td>
- {{/if}}
- <td>
- {{#if topics.length}}
- <span class="badge">{{topics.length}}</span>
- {{#each topics}}
- <a href="{{basePath "/topics"}}/{{topic}}" class="link label {{#if tombstoned}}label-warning{{else}}label-primary{{/if}}" {{#if tombstoned}}title="***"{{/if}}>{{topic}}</a>
- {{/each}}
- {{/if}}
- </td>
- </tr>
- {{/each}}
- </table>
- </div>
- </div>
|