Skip to content

Instantly share code, notes, and snippets.

@wlach
Created May 25, 2015 15:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wlach/e39d86439a5202de70da to your computer and use it in GitHub Desktop.
Save wlach/e39d86439a5202de70da to your computer and use it in GitHub Desktop.
Partial implementation
diff --git a/ui/partials/perf/graphsctrl.html b/ui/partials/perf/graphsctrl.html
index a2729a7..ca5af3e 100644
--- a/ui/partials/perf/graphsctrl.html
+++ b/ui/partials/perf/graphsctrl.html
@@ -1,6 +1,9 @@
<div class="container-fluid">
<div class="ph-horizontal-layout">
<div id="graph-chooser">
+ <div ng-show="seriesList.length == 0">
+ Nothing here yet.
+ </div>
<table class="table table-bordered graph-legend-table">
<tr ng-repeat="series in seriesList">
<td>
@@ -24,7 +27,7 @@
</tr>
</table>
<button class="btn btn-primary" ng-click="addTestData()">
- <span class="glyphicon glyphicon-plus" aria-hidden="true"></span> Add more test data</button>
+ <span class="glyphicon glyphicon-plus" aria-hidden="true"></span> Add <span ng-show="seriesList.length > 0">more</span> test data</button>
</div>
<div id="data-display">
<select ng-model="myTimerange" ng-options="timerange.text for timerange in timeranges track by timerange.value" ng-change="timeRangeChanged()">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment