This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #722 from cardosogabriel/Alerts
Alerts and Server Overview
- Loading branch information
Showing
5 changed files
with
38 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 30 additions & 17 deletions
47
console/src/main/scripts/plugins/metrics/html/partials/trigger-alerts-sidebar.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,41 @@ | ||
<div class="col-lg-3 col-md-4"> | ||
<div class="card-pf card-pf-utilization"> | ||
<div class="card-pf-heading"> | ||
<h2 class="card-pf-title">Alerts <span class="label label-default">{{tc.alertList.length}}</span></h2> | ||
<h2 class="card-pf-title">Alerts <span class="label label-default" ng-show="tc.alertList.length">{{tc.alertList.length}}</span></h2> | ||
</div> | ||
|
||
<!-- No Alerts --> | ||
<div class="card-pf-body" ng-hide="tc.alertList.length > 0"> | ||
<div class="hk-box-v-item"> | ||
<div class="hk-display-table"> | ||
<div class="hk-icon-container"> | ||
<i class="fa fa-flag gray"></i> | ||
</div> | ||
<div class="hk-info-container"> | ||
<p class="hk-info-info">No Alerts.</p> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="card-pf-body"> | ||
<div ng-show="tc.alertList.length > 0"> | ||
<div class="hk-box-v-item" ng-repeat="alert in tc.alertList"> | ||
<div class="hk-display-table"> | ||
<div class="hk-icon-container"> | ||
<i class="fa fa-exclamation-triangle hk-warning"></i> | ||
</div> | ||
<div class="hk-info-container"> | ||
<div class="hk-info-heading">{{alert.trigger.description | truncate: 50}}</div> | ||
<p class="hk-info-info">{{alert.ctime | date:'d MMM yyyy, HH:mm'}}</p> | ||
</div> | ||
<div class="hk-icon-container"> | ||
<a ng-href="{{tc.getAlertRoute(alert.id)}}" class="btn btn-link" tooltip-trigger tooltip="View Details"> | ||
<i class="fa fa-chevron-circle-right"></i> | ||
</a> | ||
</div> | ||
|
||
<div class="card-pf-body" ng-show="tc.alertList.length > 0"> | ||
<div class="hk-box-v-item" ng-repeat="alert in tc.alertList"> | ||
<div class="hk-display-table"> | ||
<div class="hk-icon-container"> | ||
<i class="fa fa-exclamation-triangle hk-warning"></i> | ||
</div> | ||
<div class="hk-info-container"> | ||
<div class="hk-info-heading">{{alert.trigger.description | truncate: 50}}</div> | ||
<p class="hk-info-info">{{alert.ctime | date:'d MMM yyyy, HH:mm'}}</p> | ||
</div> | ||
<div class="hk-icon-container"> | ||
<a ng-href="{{tc.getAlertRoute(alert.id)}}" class="btn btn-link" tooltip-trigger tooltip="View Details"> | ||
<i class="fa fa-chevron-circle-right"></i> | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters