github.com/nsqio/nsq@v1.3.0/nsqadmin/static/js/views/lookup.hbs (about)

     1  {{> warning}}
     2  {{> error}}
     3  
     4  <div class="row">
     5      <div class="col-md-12">
     6          <h2>Lookup</h2>
     7      </div>
     8  </div>
     9  
    10  {{#unless nsqlookupd.length}}
    11  <div class="alert alert-warning">
    12      <h4>Notice</h4> nsqadmin is not configured with nsqlookupd hosts
    13  </div>
    14  {{else}}
    15  <div class="row">
    16      <div class="col-md-4">
    17          <table class="table table-bordered table-condensed">
    18              <tr>
    19                  <th>nsqlookupd Host</th>
    20              </tr>
    21              {{#each nsqlookupd}}
    22              <tr><td>{{this}}</td></tr>
    23              {{/each}}
    24          </table>
    25      </div>
    26  </div>
    27  
    28  <div class="row">
    29      <div class="col-md-4">
    30          {{#if topics}}
    31          <div class="alert alert-info">
    32              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)
    33          </div>
    34          <ul>
    35              {{#each topics}}
    36              <li>
    37                  <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>
    38                  <ul>
    39                      {{#each channels}}
    40                      <li>
    41                          <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>
    42                      </li>
    43                      {{/each}}
    44                  </ul>
    45              </li>
    46              {{/each}}
    47          </ul>
    48          {{else}}
    49          <div class="alert alert-warning"><h4>Notice</h4>No inactive Topics</div>
    50          {{/if}}
    51      </div>
    52  </div>
    53  
    54  {{#if isAdmin}}
    55  <div class="row">
    56      <div class="col-md-4">
    57          <form class="hierarchy">
    58              <legend>Create Topic/Channel</legend>
    59              <div class="alert alert-info">
    60                  <p>This provides a way to setup a stream hierarchy
    61                  before services are deployed to production.
    62                  <p>If <em>Channel Name</em> is empty, just the topic is created.
    63              </div>
    64              <div class="form-group">
    65                  <input type="text" name="topic" placeholder="Topic Name">
    66                  <input type="text" name="channel" placeholder="Channel Name">
    67              </div>
    68              <button class="btn btn-default" type="submit">Create</button>
    69          </form>
    70      </div>
    71  </div>
    72  {{/if}}
    73  {{/unless}}