module.html 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <kibana-panel ng-controller='terms' 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. <!-- START Pie or bar chart -->
  6. <div ng-show="panel.counter_pos == 'above' && (panel.chart == 'bar' || panel.chart == 'pie')" id='{{$id}}-legend'>
  7. <!-- vertical legend above -->
  8. <table class="small" ng-show="panel.arrangement == 'vertical'">
  9. <tr ng-repeat="term in legend">
  10. <td><i class="icon-circle" ng-style="{color:term.color}"></i></td> <td style="padding-right:10px;padding-left:10px;">{{term.label}}</td><td>{{term.data[0][1]}}</td>
  11. </tr>
  12. </table>
  13. <!-- horizontal legend above -->
  14. <div class="small" ng-show="panel.arrangement == 'horizontal'" ng-repeat="term in legend" style="float:left;padding-left: 10px;">
  15. <span><i class="icon-circle" ng-style="{color:term.color}"></i> {{term.label}} ({{term.data[0][1]}}) </span>
  16. </div><br>
  17. </div>
  18. <!-- keep legend from over lapping -->
  19. <div style="clear:both"></div>
  20. <div ng-show="panel.chart == 'pie' || panel.chart == 'bar'" terms-chart params="{{panel}}" style="position:relative"></div>
  21. <div ng-show="panel.counter_pos == 'below' && (panel.chart == 'bar' || panel.chart == 'pie')" id='{{$id}}-legend'>
  22. <!-- vertical legend below -->
  23. <table class="small" ng-show="panel.arrangement == 'vertical'">
  24. <tr ng-repeat="term in legend">
  25. <td><i class="icon-circle" ng-style="{color:term.color}"></i></i></td> <td style="padding-right:10px;padding-left:10px;">{{term.label}}</td><td>{{term.data[0][1]}}</td>
  26. </tr>
  27. </table>
  28. <!-- horizontal legend below -->
  29. <div class="small" ng-show="panel.arrangement == 'horizontal'" ng-repeat="term in legend" style="float:left;padding-left: 10px;">
  30. <span><i class="icon-circle" ng-style="{color:term.color}"></i></span> {{term.label}} ({{term.data[0][1]}}) </span>
  31. </div><br>
  32. </div>
  33. <!-- END Pie or Bar chart -->
  34. <table ng-style="panel.style" class="table table-striped table-condensed" ng-show="panel.chart == 'table'">
  35. <thead>
  36. <th>Term</th> <th>Count</th> <th>Action</th>
  37. </thead>
  38. <tr ng-repeat="term in data" ng-show="showMeta(term)">
  39. <td>{{term.label}}</td>
  40. <td>{{term.data[0][1]}}</td>
  41. <td>
  42. <span ng-hide="term.meta == 'other'">
  43. <i class='icon-search pointer' ng-click="build_search(term)"></i>
  44. <i class='icon-ban-circle pointer' ng-click="build_search(term,true)"></i>
  45. </span>
  46. </td>
  47. </tr>
  48. </table>
  49. </kibana-panel>