github.com/fanux/shipyard@v0.0.0-20161009071005-6515ce223235/controller/static/app/registry/registry.html (about)

     1  <div class="ui small remove modal transition" style="margin-top: -98px;">
     2  <i class="close icon"></i>
     3  <div class="header">
     4      Remove Repository: {{ vm.selectedRepository.namespace }}/{{ vm.selectedRepository.repository }}
     5  </div>
     6  <div class="content">
     7      <p>Are you sure you want to remove this repository?</p>
     8  </div>
     9  <div class="actions">
    10      <div class="ui negative button">
    11          No
    12      </div>
    13      <div ng-click="vm.removeRepository()" class="ui positive right labeled icon button">
    14          Yes
    15          <i class="checkmark icon"></i>
    16      </div>
    17  </div>
    18  </div>
    19  
    20  <div class="ui padded grid">
    21      <div class="two column row">
    22          <div class="left floated column">
    23              <div ng-click="vm.refresh()" class="ui small blue labeled icon button">
    24                  <i class="refresh icon"></i> Refresh 
    25              </div>
    26          </div>
    27      
    28          <div class="right aligned right floated column">
    29              <div class="ui small icon input">
    30                  <input ng-model="tableFilter" placeholder="Search repositories..."/>
    31                  <i class="search icon"></i>
    32              </div>
    33          </div>
    34      </div>
    35      
    36      <div class="row" ng-show="vm.repositories.length === 0">
    37          <div class="column">
    38              <div class="ui icon message">
    39                  <i class="info icon"></i>
    40                  <div class="content">
    41                      <div class="header">
    42                          Repositories
    43                      </div>
    44                      <p>There are no repositories in the registry.</p>
    45                  </div>
    46              </div>
    47          </div>
    48      </div>
    49      
    50      <div class="row" ng-hide="vm.repositories.length === 0">
    51      <div class="column">
    52      <table class="ui sortable celled table">
    53          <thead ng-hide="">
    54              <tr>
    55                  <th>Namespace</th>
    56                  <th>Repository</th>
    57                  <th>Tags</th>
    58                  <th>Layers</th>
    59                  <th>Size</th>
    60                  <th></th>
    61              </tr>
    62          </thead>
    63          <tbody>
    64              <tr ng-repeat="r in vm.repositories | filter:tableFilter">
    65                  <td>{{r.namespace}}</td>
    66                  <td>{{r.repository}}</td>
    67                  <td>{{r.tags.length}}</td>
    68                  <td>{{r.layers.length}}</td>
    69                  <td>{{r.size / 1048576 | number:2}} MB</td>
    70                  <td class="collapsing">
    71                      <div ui-sref="dashboard.inspectRepository({name: vm.registryName, namespace: r.namespace, repository: r.repository})" class="compact ui icon button">
    72                          <i class="search icon"></i>
    73                      </div>
    74                      <div ng-click="vm.showRemoveRepositoryDialog(r)" class="compact ui icon button red">
    75                          <i class="trash icon"></i>
    76                      </div>
    77                  </td>
    78              </tr>
    79          </tbody>
    80      </table>
    81      </div>
    82      </div>
    83  </div>
    84  
    85  <script>
    86      $('.ui.sortable.celled.table').tablesort();
    87  </script>