Skip to content

Commit

Permalink
Differentiate debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
asos-ssugumaran committed Apr 11, 2018
1 parent 02ae2db commit 9141544
Show file tree
Hide file tree
Showing 6 changed files with 80 additions and 52 deletions.
6 changes: 6 additions & 0 deletions dist/css/default.dark.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.boom-table .debug{
margin-top :30px;
}
.boom-table .debug table tr{
border: 2px solid red;
}
6 changes: 6 additions & 0 deletions dist/css/default.light.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.boom-table .debug{
margin-top :30px;
}
.boom-table .debug table tr{
border: 2px solid red;
}
54 changes: 28 additions & 26 deletions dist/partials/module.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<div data-ng-if="ctrl.panel.debug_mode === true">
<h5 class="text-warning">WARNING: Panel running in debug mode </h5>
</div>
<div class="boom-table">
<div data-ng-if="ctrl.panel.error">
<h4 class="text-warning">{{ctrl.panel.error.name}}</h4>
<p ng-bind-html="ctrl.panel.error.message"></p>
Expand All @@ -19,27 +17,31 @@ <h4 class="text-warning">{{ctrl.panel.error.name}}</h4>
</tr>
</table>
</div>
<div data-ng-if="ctrl.panel.debug_mode === true && ctrl.panel.data && ctrl.panel.data.length >0">
<table class="table-panel-table">
<thead>
<tr>
<th style="padding:4px;text-align:center">Metric</th>
<th style="padding:4px;text-align:center">Pattern</th>
<th style="padding:4px;text-align:center">Value</th>
<th style="padding:4px;text-align:center">Row Name</th>
<th style="padding:4px;text-align:center">Col Name</th>
<th style="padding:4px;text-align:center">Thresholds</th>
</tr>
</thead>
<tbody>
<tr data-ng-repeat="data in ctrl.panel.data">
<td style="padding:4px;" width="40%">{{data.alias}}</td>
<td style="padding:4px;">{{data.pattern.pattern || "Default"}}</td>
<td style="padding:4px;background-color:{{data.bgColor}}">{{data.displayValue}}</td>
<td style="padding:4px;">{{data.row_name}}</td>
<td style="padding:4px;">{{data.col_name}}</td>
<td style="padding:4px;">{{data.thresholds}}</td>
</tr>
</tbody>
</table>
<div data-ng-if="ctrl.panel.debug_mode === true" class="debug">
<h5 class="text-warning">WARNING: Panel running in debug mode </h5>
<div data-ng-if="ctrl.panel.data && ctrl.panel.data.length >0">
<table class="table-panel-table">
<thead>
<tr>
<th style="padding:4px;text-align:center">Metric</th>
<th style="padding:4px;text-align:center">Pattern</th>
<th style="padding:4px;text-align:center">Value</th>
<th style="padding:4px;text-align:center">Row Name</th>
<th style="padding:4px;text-align:center">Col Name</th>
<th style="padding:4px;text-align:center">Thresholds</th>
</tr>
</thead>
<tbody>
<tr data-ng-repeat="data in ctrl.panel.data">
<td style="padding:4px;" width="40%">{{data.alias}}</td>
<td style="padding:4px;">{{data.pattern.pattern || "Default"}}</td>
<td style="padding:4px;background-color:{{data.bgColor}}">{{data.displayValue}}</td>
<td style="padding:4px;">{{data.row_name}}</td>
<td style="padding:4px;">{{data.col_name}}</td>
<td style="padding:4px;">{{data.thresholds}}</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
6 changes: 6 additions & 0 deletions src/css/default.dark.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.boom-table .debug{
margin-top :30px;
}
.boom-table .debug table tr{
border: 2px solid red;
}
6 changes: 6 additions & 0 deletions src/css/default.light.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.boom-table .debug{
margin-top :30px;
}
.boom-table .debug table tr{
border: 2px solid red;
}
54 changes: 28 additions & 26 deletions src/partials/module.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<div data-ng-if="ctrl.panel.debug_mode === true">
<h5 class="text-warning">WARNING: Panel running in debug mode </h5>
</div>
<div class="boom-table">
<div data-ng-if="ctrl.panel.error">
<h4 class="text-warning">{{ctrl.panel.error.name}}</h4>
<p ng-bind-html="ctrl.panel.error.message"></p>
Expand All @@ -19,27 +17,31 @@ <h4 class="text-warning">{{ctrl.panel.error.name}}</h4>
</tr>
</table>
</div>
<div data-ng-if="ctrl.panel.debug_mode === true && ctrl.panel.data && ctrl.panel.data.length >0">
<table class="table-panel-table">
<thead>
<tr>
<th style="padding:4px;text-align:center">Metric</th>
<th style="padding:4px;text-align:center">Pattern</th>
<th style="padding:4px;text-align:center">Value</th>
<th style="padding:4px;text-align:center">Row Name</th>
<th style="padding:4px;text-align:center">Col Name</th>
<th style="padding:4px;text-align:center">Thresholds</th>
</tr>
</thead>
<tbody>
<tr data-ng-repeat="data in ctrl.panel.data">
<td style="padding:4px;" width="40%">{{data.alias}}</td>
<td style="padding:4px;">{{data.pattern.pattern || "Default"}}</td>
<td style="padding:4px;background-color:{{data.bgColor}}">{{data.displayValue}}</td>
<td style="padding:4px;">{{data.row_name}}</td>
<td style="padding:4px;">{{data.col_name}}</td>
<td style="padding:4px;">{{data.thresholds}}</td>
</tr>
</tbody>
</table>
<div data-ng-if="ctrl.panel.debug_mode === true" class="debug">
<h5 class="text-warning">WARNING: Panel running in debug mode </h5>
<div data-ng-if="ctrl.panel.data && ctrl.panel.data.length >0">
<table class="table-panel-table">
<thead>
<tr>
<th style="padding:4px;text-align:center">Metric</th>
<th style="padding:4px;text-align:center">Pattern</th>
<th style="padding:4px;text-align:center">Value</th>
<th style="padding:4px;text-align:center">Row Name</th>
<th style="padding:4px;text-align:center">Col Name</th>
<th style="padding:4px;text-align:center">Thresholds</th>
</tr>
</thead>
<tbody>
<tr data-ng-repeat="data in ctrl.panel.data">
<td style="padding:4px;" width="40%">{{data.alias}}</td>
<td style="padding:4px;">{{data.pattern.pattern || "Default"}}</td>
<td style="padding:4px;background-color:{{data.bgColor}}">{{data.displayValue}}</td>
<td style="padding:4px;">{{data.row_name}}</td>
<td style="padding:4px;">{{data.col_name}}</td>
<td style="padding:4px;">{{data.thresholds}}</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>

0 comments on commit 9141544

Please sign in to comment.