Last active
December 10, 2015 18:38
-
-
Save luisrudge/4476290 to your computer and use it in GitHub Desktop.
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
<script type="text/html" id="base-report-template"> | |
<div class="loading" data-bind="visible: visibleCondition"></div> | |
<h2 data-bind="text: title"></h2> | |
<div data-bind="template: { name: 'error-template' }, visible: iteratedCollection.length === 0"></div> | |
<div data-bind="visibility: !visibleCondition && iteratedCollection.length > 0"> | |
<div class="span12" data-bind="css: { 'plot-wrapper': wrap }, style: { height: wrap ? height : 'auto' }"> | |
<table class="table table-hover"> | |
<thead> | |
<tr> | |
<th data-bind="text: nameHeader"></th> | |
<th data-bind="text: valueHeader"></th> | |
</tr> | |
</thead> | |
<tbody data-bind="foreach: iteratedCollection"> | |
<tr> | |
<td data-bind="text: name"></td> | |
<td data-bind="text: formatter ? formatter(quantity, 0) : quantity"></td> | |
</tr> | |
</tbody> | |
</table> | |
</div> | |
</div> | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment