Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
HAWKULAR-478 Url list last downtime is no precise enough. For example…
Browse files Browse the repository at this point in the history
… an outage occurred 'A week ago' when exactly is that?
  • Loading branch information
mtho11 committed Jul 28, 2015
1 parent cd5f2d9 commit 6a9cb78
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ <h3 class="pull-left">Availability Status</h3>
<span class="hk-item">Total Downtime Duration</span>
</div>
<div class="col-sm-3 hk-summary-item">
<span class="hk-data" ng-hide="vm.lastDowntime.valueOf() === 0 || (vm.availabilityDataPoints.length === 1 && vm.availabilityDataPoints[0].value === 'down')" am-time-ago="vm.lastDowntime" tooltip-trigger tooltip-placement="top" tooltip-popup-delay="1500" tooltip="{{ vm.lastDowntime | date:'d MMM HH:mm:ss' }}"></span>
<span class="hk-data"
ng-hide="vm.lastDowntime.valueOf() === 0 || (vm.availabilityDataPoints.length === 1 && vm.availabilityDataPoints[0].value === 'down')"> {{ vm.lastDowntime | date:'d MMM HH:mm:ss' }}</span>
<span class="hk-data" ng-show="vm.availabilityDataPoints.length === 1 && vm.availabilityDataPoints[0].value === 'down'">Always Down</span>
<span class="hk-data" ng-show="!vm.lastDowntime || vm.lastDowntime.valueOf() === 0">Always Up</span>
<span class="hk-item">Last Downtime</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ <h2 ng-show="vm.resourceList.length > 0" class="text-center hk-fade-in">Current
</div>
<div class="col-sm-3 hk-summary-item">
<a href="/hawkular-ui/url/availability/{{res.id}}">
<span class="hk-data" ng-show="res.lastDowntime > 0" am-time-ago="res.lastDowntime"></span>
<span class="hk-data" ng-show="res.lastDowntime > 0">{{res.lastDowntime| date:'d MMM HH:mm:ss' }}</span>
<span class="hk-data" ng-show="res.lastDowntime <= 0">n/a</span>
<span class="hk-item">Last Downtime</span>
</a>
Expand Down

0 comments on commit 6a9cb78

Please sign in to comment.