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

Commit

Permalink
Adjustments on URLs list tiles
Browse files Browse the repository at this point in the history
Hide badge if alerts= 0
Link to response time in gray
  • Loading branch information
cardosogabriel committed Dec 30, 2015
1 parent d1dc775 commit 493084f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
Expand Up @@ -3,8 +3,8 @@
<div class="tile-content">
<div class="text-right hk-tile-alert">
<a href="{{vm.getAlertUrl(resource.id)}}">
<span ng-if="vm.alerts.length === 0" class="label label-default hk-label-small">0</span>
<span ng-if="vm.alerts.length > 0" class="label label-danger hk-label-small">{{vm.alerts.length}}</span>
<span ng-if="vm.alerts.length === 0" class="badge"></span>
<span ng-if="vm.alerts.length > 0" class="badge hk-bg-danger">{{vm.alerts.length}}</span>
</a>
</div>
<div class="hk-tile-title">{{resource.properties.url}}</div>
Expand Down
18 changes: 16 additions & 2 deletions console/src/main/scripts/plugins/metrics/less/metrics.less
Expand Up @@ -221,6 +221,10 @@ a:hover {
color: @brand-success;
}

.hk-bg-danger {
background-color: @brand-danger;
}


// Alerts

Expand Down Expand Up @@ -1899,6 +1903,7 @@ td .fa-comment-o {
}

.tile {
height: 300px;
margin: 10px 0;
position: relative;
width: 100%;
Expand Down Expand Up @@ -1977,6 +1982,14 @@ h2 + .tiles-view-pf {

.hk-tile-info {
font-size: ceil(@font-size-base + 1);

a:not(:hover) {
color: @gray;
}
}

.chart-pf-sparkline + .hk-tile-info {
margin-top: 5px;
}

.tile-content img {
Expand Down Expand Up @@ -2012,7 +2025,7 @@ h2 + .tiles-view-pf {
border-radius: 1px;
// border: 1px solid #bdbdbd;
border: none;
box-shadow: 0 0 5px rgba(0,0,0,0.3);
box-shadow: 0 0 10px rgba(0,0,0,0.3);
color: #333333;
opacity: 0.95;
padding: 15px 20px 15px 71px;
Expand All @@ -2027,7 +2040,7 @@ h2 + .tiles-view-pf {
}

#toast-container > div:hover {
box-shadow: 0 0 5px rgba(0,0,0,0.5);
box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

#toast-container > .toast-success {
Expand Down Expand Up @@ -2087,6 +2100,7 @@ h2 + .tiles-view-pf {
}
}


// Wizard

.hk-wizard {
Expand Down

0 comments on commit 493084f

Please sign in to comment.