12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- {{> warning}}
- {{> error}}
- <div class="row">
- <div class="col-md-12">
- <h2>消息服务发现</h2>
- </div>
- </div>
- {{#unless nsqlookupd.length}}
- <div class="alert alert-warning">
- <h4>注意</h4> 消息服务发现实例未运行
- </div>
- {{else}}
- <div class="row">
- <div class="col-md-4">
- <table class="table table-bordered table-condensed">
- <tr>
- <th>消息服务发现实例</th>
- </tr>
- {{#each nsqlookupd}}
- <tr><td>{{this}}</td></tr>
- {{/each}}
- </table>
- </div>
- </div>
- <div class="row">
- <div class="col-md-4">
- {{#if topics}}
- {{!-- <div class="alert alert-info">
- Below is a tree of Topics/Channels that are currently inactive (i.e. not produced on any nsqd in the cluster but are present in the lookup data)
- </div> --}}
- <ul>
- {{#each topics}}
- <li>
- <button class="btn-link red delete-topic-link" data-topic="{{name}}" style="padding: 0 6px; border: 0;">✘</button> <a class="link" href="{{basePath "/topics"}}/{{name}}">{{name}}</a>
- <ul>
- {{#each channels}}
- <li>
- <button class="btn-link red delete-channel-link" data-topic="{{../name}}" data-channel="{{this}}" style="padding: 0 6px; border: 0;">✘</button> <a class="link" href="{{basePath "/topics"}}/{{../name}}/{{this}}">{{this}}</a>
- </li>
- {{/each}}
- </ul>
- </li>
- {{/each}}
- </ul>
- {{else}}
- <div class="alert alert-warning"><h4>注意</h4>无活动的主题</div>
- {{/if}}
- </div>
- </div>
- {{#if isAdmin}}
- <div class="row">
- <div class="col-md-4">
- <form class="hierarchy">
- <legend>创建主题/订阅通道</legend>
- <div class="alert alert-info">
- </div>
- <div class="form-group">
- <input type="text" name="topic" placeholder="主题名">
- <input type="text" name="channel" placeholder="通道名">
- </div>
- <button class="btn btn-default" type="submit">创建</button>
- </form>
- </div>
- </div>
- {{/if}}
- {{/unless}}
|