module.html 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <kibana-panel ng-controller='hits' ng-init="init()">
  2. <span ng-show="panel.spyable" class='spy panelextra pointer'>
  3. <i bs-modal="'partials/inspector.html'" class="icon-eye-open"></i>
  4. </span>
  5. <div ng-show="panel.counter_pos == 'above' && (panel.chart == 'bar' || panel.chart == 'pie')" id='{{$id}}-legend'>
  6. <!-- vertical legend -->
  7. <table class="small" ng-show="panel.arrangement == 'vertical'">
  8. <tr ng-repeat="query in data">
  9. <td><div style="display:inline-block;border-radius:5px;background:{{query.info.color}};height:10px;width:10px"></div></td> <td style="padding-right:10px;padding-left:10px;">{{query.info.alias}}</td><td>{{query.data[0][1]}}</td>
  10. </tr>
  11. </table>
  12. <!-- horizontal legend -->
  13. <div class="small" ng-show="panel.arrangement == 'horizontal'" ng-repeat="query in data" style="float:left;padding-left: 10px;">
  14. <span><i class="icon-circle" ng-style="{color:query.info.color}"></i> {{query.info.alias}} ({{query.data[0][1]}}) </span>
  15. </div><br>
  16. </div>
  17. <div style="clear:both"></div>
  18. <div ng-show="panel.chart == 'pie' || panel.chart == 'bar'" hits-chart params="{{panel}}" style="position:relative"></div>
  19. <div ng-show="panel.counter_pos == 'below' && (panel.chart == 'bar' || panel.chart == 'pie')" id='{{$id}}-legend'>
  20. <!-- vertical legend -->
  21. <table class="small" ng-show="panel.arrangement == 'vertical'">
  22. <tr ng-repeat="query in data">
  23. <td><i class="icon-circle" ng-style="{color:query.info.color}"></i></td> <td style="padding-right:10px;padding-left:10px;">{{query.info.alias}}</td><td>{{query.data[0][1]}}</td>
  24. </tr>
  25. </table>
  26. <!-- horizontal legend -->
  27. <div class="small" ng-show="panel.arrangement == 'horizontal'" ng-repeat="query in data" style="float:left;padding-left: 10px;">
  28. <span><i class="icon-circle" ng-style="{color:query.info.color}"></i></span> {{query.info.alias}} ({{query.data[0][1]}}) </span>
  29. </div><br>
  30. </div>
  31. <div ng-show="panel.chart == 'total'"><div ng-style="panel.style" style="line-height:{{panel.style['font-size']}}">{{hits}}</div></div>
  32. <span ng-show="panel.chart == 'list'">
  33. <div ng-style="panel.style" style="display:inline-block;line-height:{{panel.style['font-size']}}" ng-repeat="query in data">
  34. <i class="icon-circle" style="color:{{query.info.color}}"></i> {{query.info.alias}} ({{query.hits}})
  35. </div>
  36. </span><br ng-show="panel.arrangement == 'vertical' && panel.chart == 'list'">
  37. </kibana-panel>