2016-06-02 05:34:03 +00:00
|
|
|
<div ng-include="template" ng-controller="StartContainerController"></div>
|
2013-06-09 00:12:14 +00:00
|
|
|
|
2016-06-08 06:23:11 +00:00
|
|
|
<rd-header>
|
|
|
|
<rd-header-title title="Container list"></rd-header-title>
|
|
|
|
<rd-header-content>Containers</rd-header-content>
|
|
|
|
</rd-header>
|
|
|
|
|
2016-06-02 05:34:03 +00:00
|
|
|
<div class="col-lg-12">
|
|
|
|
<rd-widget>
|
|
|
|
<rd-widget-header icon="fa-tasks" title="Containers">
|
|
|
|
</rd-widget-header>
|
|
|
|
<rd-widget-taskbar classes="col-lg-12">
|
|
|
|
<div class="pull-left">
|
|
|
|
<div class="btn-group" role="group" aria-label="...">
|
|
|
|
<button type="button" class="btn btn-primary" ng-click="startAction()" ng-disabled="!state.selectedItemCount">Start</button>
|
|
|
|
<button type="button" class="btn btn-primary" ng-click="stopAction()" ng-disabled="!state.selectedItemCount">Stop</button>
|
|
|
|
<button type="button" class="btn btn-primary" ng-click="killAction()" ng-disabled="!state.selectedItemCount">Kill</button>
|
|
|
|
<button type="button" class="btn btn-primary" ng-click="restartAction()" ng-disabled="!state.selectedItemCount">Restart</button>
|
|
|
|
<button type="button" class="btn btn-primary" ng-click="pauseAction()" ng-disabled="!state.selectedItemCount">Pause</button>
|
|
|
|
<button type="button" class="btn btn-primary" ng-click="unpauseAction()" ng-disabled="!state.selectedItemCount">Unpause</button>
|
|
|
|
<button type="button" class="btn btn-danger" ng-click="removeAction()" ng-disabled="!state.selectedItemCount">Remove</button>
|
|
|
|
<button type="button" class="btn btn-default" data-toggle="modal" data-target="#create-modal">Start a new container...</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="pull-right">
|
|
|
|
<input type="checkbox" ng-model="state.displayAll" id="displayAll" ng-change="toggleGetAll()"/><label for="displayAll">Display All</label>
|
|
|
|
<input type="text" id="filter" ng-model="state.filter" placeholder="Filter..." class="form-control input-sm" />
|
|
|
|
</div>
|
|
|
|
</rd-widget-taskbar>
|
|
|
|
<rd-widget-body classes="no-padding">
|
|
|
|
<div class="table-responsive">
|
|
|
|
<table class="table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th><label><input type="checkbox" ng-model="state.toggle" ng-change="toggleSelectAll()" /> Select</label></th>
|
|
|
|
<th>
|
2016-03-19 22:30:47 +00:00
|
|
|
<a href="#/containers/" ng-click="order('Names')">
|
2016-06-02 05:34:03 +00:00
|
|
|
Name
|
|
|
|
<span ng-show="sortType == 'Names' && !sortReverse" class="glyphicon glyphicon-chevron-down"></span>
|
|
|
|
<span ng-show="sortType == 'Names' && sortReverse" class="glyphicon glyphicon-chevron-up"></span>
|
2016-03-19 22:30:47 +00:00
|
|
|
</a>
|
2016-06-02 05:34:03 +00:00
|
|
|
</th>
|
|
|
|
<th>
|
2016-03-19 22:30:47 +00:00
|
|
|
<a href="#/containers/" ng-click="order('Image')">
|
2016-06-02 05:34:03 +00:00
|
|
|
Image
|
|
|
|
<span ng-show="sortType == 'Image' && !sortReverse" class="glyphicon glyphicon-chevron-down"></span>
|
|
|
|
<span ng-show="sortType == 'Image' && sortReverse" class="glyphicon glyphicon-chevron-up"></span>
|
2016-03-19 22:30:47 +00:00
|
|
|
</a>
|
2016-06-02 05:34:03 +00:00
|
|
|
</th>
|
|
|
|
<th>
|
2016-03-19 22:30:47 +00:00
|
|
|
<a href="#/containers/" ng-click="order('Command')">
|
2016-06-02 05:34:03 +00:00
|
|
|
Command
|
|
|
|
<span ng-show="sortType == 'Command' && !sortReverse" class="glyphicon glyphicon-chevron-down"></span>
|
|
|
|
<span ng-show="sortType == 'Command' && sortReverse" class="glyphicon glyphicon-chevron-up"></span>
|
2016-03-19 22:30:47 +00:00
|
|
|
</a>
|
2016-06-02 05:34:03 +00:00
|
|
|
</th>
|
|
|
|
<th>
|
2016-03-19 22:30:47 +00:00
|
|
|
<a href="#/containers/" ng-click="order('Created')">
|
2016-06-02 05:34:03 +00:00
|
|
|
Created
|
|
|
|
<span ng-show="sortType == 'Created' && !sortReverse" class="glyphicon glyphicon-chevron-down"></span>
|
|
|
|
<span ng-show="sortType == 'Created' && sortReverse" class="glyphicon glyphicon-chevron-up"></span>
|
2016-03-19 22:30:47 +00:00
|
|
|
</a>
|
2016-06-02 05:34:03 +00:00
|
|
|
</th>
|
|
|
|
<th>
|
2016-03-19 22:30:47 +00:00
|
|
|
<a href="#/containers/" ng-click="order('Status')">
|
2016-06-02 05:34:03 +00:00
|
|
|
Status
|
|
|
|
<span ng-show="sortType == 'Status' && !sortReverse" class="glyphicon glyphicon-chevron-down"></span>
|
|
|
|
<span ng-show="sortType == 'Status' && sortReverse" class="glyphicon glyphicon-chevron-up"></span>
|
2016-03-19 22:30:47 +00:00
|
|
|
</a>
|
2016-06-02 05:34:03 +00:00
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr ng-repeat="container in (state.filteredContainers = ( containers | filter:state.filter | orderBy:sortType:sortReverse))">
|
|
|
|
<td><input type="checkbox" ng-model="container.Checked" ng-change="selectItem(container)"/></td>
|
|
|
|
<td><a href="#/containers/{{ container.Id }}">{{ container|containername}}</a></td>
|
|
|
|
<td><a href="#/images/{{ container.Image }}/">{{ container.Image }}</a></td>
|
|
|
|
<td>{{ container.Command|truncate:40 }}</td>
|
|
|
|
<td>{{ container.Created|getdate }}</td>
|
|
|
|
<td><span class="label label-{{ container.Status|statusbadge }}">{{ container.Status }}</span></td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</rd-widget-body>
|
|
|
|
<rd-widget>
|
|
|
|
</div>
|