Add creation date information to robots API and UI
Fixes https://jira.coreos.com/browse/QUAY-846
This commit is contained in:
parent
c4a6273e00
commit
a693771345
5 changed files with 28 additions and 10 deletions
|
@ -40,6 +40,9 @@
|
|||
<a ng-click="TableService.orderBy('teams_string', options)">Teams</a>
|
||||
</td>
|
||||
<td>Repositories</td>
|
||||
<td ng-class="TableService.tablePredicateClass('created_datetime', options.predicate, options.reverse)">
|
||||
<a ng-click="TableService.orderBy('created_datetime', options)">Created</a>
|
||||
</td>
|
||||
<td class="options-col"></td>
|
||||
</thead>
|
||||
|
||||
|
@ -78,6 +81,9 @@
|
|||
</a>
|
||||
</span>
|
||||
</td>
|
||||
<td>
|
||||
<time-ago datetime="robotInfo.created"></time-ago>
|
||||
</td>
|
||||
<td class="options-col">
|
||||
<span class="cor-options-menu">
|
||||
<span class="cor-option" option-click="showRobot(robotInfo)">
|
||||
|
|
|
@ -39,6 +39,8 @@ angular.module('quay').directive('robotsManager', function () {
|
|||
robot['teams_string'] = robot.teams.map(function(team) {
|
||||
return team['name'] || '';
|
||||
}).join(',');
|
||||
|
||||
robot['created_datetime'] = robot.created ? TableService.getReversedTimestamp(robot.created) : null;
|
||||
});
|
||||
|
||||
$scope.orderedRobots = TableService.buildOrderedItems(robots, $scope.options,
|
||||
|
|
Reference in a new issue