module.html 4.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <kibana-panel ng-controller='table' ng-init='init()'>
  2. <span ng-show="panel.spyable" style="position:absolute;right:0px;top:0px" class='panelextra pointer'>
  3. <i bs-modal="'partials/modal.html'" class="icon-eye-open"></i>
  4. </span>
  5. <div style="height:{{panel.height || row.height}};overflow-y:auto;overflow-x:auto">
  6. <div class="row-fluid" ng-show="panel.paging">
  7. <div class="span1 offset1" style="text-align:right">
  8. <i ng-click="panel.offset = 0" ng-show="panel.offset > 0" class='icon-circle-arrow-left pointer'></i>
  9. <i ng-click="panel.offset = (panel.offset - panel.size)" ng-show="panel.offset > 0" class='icon-arrow-left pointer'></i>
  10. </div>
  11. <div class="span8" style="text-align:center">
  12. <strong>{{panel.offset}}</strong> to <strong>{{panel.offset + data.slice(panel.offset,panel.offset+panel.size).length}}</strong>
  13. <small> of {{data.length}} available for paging</small>
  14. </div>
  15. <div class="span1" style="text-align:left">
  16. <i ng-click="panel.offset = (panel.offset + panel.size)" ng-show="data.length > panel.offset+panel.size" class='icon-arrow-right pointer'></i>
  17. </div>
  18. </div>
  19. <div class="small" ng-show="panel.fields.length == 0">No columns configured. You may want to add a <strong>fields panel</strong>, or click the edit button in the top right of this panel to add some columns</div>
  20. <table class="table-hover table table-condensed" ng-style="panel.style">
  21. <thead ng-show="panel.header">
  22. <th style="white-space:nowrap" ng-repeat="field in panel.fields">
  23. <i ng-show="!$first" class="pointer link icon-caret-left" ng-click="_.move(panel.fields,$index,$index-1)"></i>
  24. <span class="pointer" ng-click="set_sort(field)" ng-show='panel.sortable'>
  25. {{field}}
  26. <i ng-show='field == panel.sort[0]' class="pointer link" ng-class="{'icon-chevron-up': panel.sort[1] == 'asc','icon-chevron-down': panel.sort[1] == 'desc'}"></i>
  27. </span>
  28. <span ng-show='!panel.sortable'>{{field}}</span>
  29. <i ng-show="!$last" class="pointer link icon-caret-right" ng-click="_.move(panel.fields,$index,$index+1)"></i>
  30. </th>
  31. </thead>
  32. <tbody ng-repeat="row in data.slice(panel.offset,panel.offset+panel.size)" ng-class-odd="'odd'">
  33. <tr ng-click="toggle_details(row)" class="pointer">
  34. <td ng-repeat="field in panel.fields" ng-bind-html-unsafe="(row.highlight[field]||row._source[field]) | highlight"></td>
  35. </tr>
  36. <tr ng-show="row.kibana.details">
  37. <td colspan=1000>
  38. <table class='table table-bordered table-condensed'>
  39. <thead>
  40. <th>Field</th>
  41. <th>Action</th>
  42. <th>Value</th>
  43. </thead>
  44. <tr ng-repeat="(key,value) in row.kibana.details._source" ng-class-odd="'odd'">
  45. <td>{{key}}</td>
  46. <td>
  47. <i class='icon-search pointer' ng-click="build_search(key,value)"></i>
  48. <i class='icon-ban-circle pointer' ng-click="build_search(key,value,true)"></i>
  49. </td>
  50. <td>{{value}}</td>
  51. </tr>
  52. </table>
  53. </td>
  54. </tr>
  55. </tbody>
  56. </table>
  57. <div class="row-fluid" ng-show="panel.paging">
  58. <div class="span1 offset3" style="text-align:right">
  59. <i ng-click="panel.offset = 0" ng-show="panel.offset > 0" class='icon-circle-arrow-left pointer'></i>
  60. <i ng-click="panel.offset = (panel.offset - panel.size)" ng-show="panel.offset > 0" class='icon-arrow-left pointer'></i>
  61. </div>
  62. <div class="span4" style="text-align:center">
  63. <strong>{{panel.offset}}</strong> to <strong>{{panel.offset + data.slice(panel.offset,panel.offset+panel.size).length}}</strong>
  64. <small> of {{data.length}} available for paging</small>
  65. </div>
  66. <div class="span1" style="text-align:left">
  67. <i ng-click="panel.offset = (panel.offset + panel.size)" ng-show="data.length > panel.offset+panel.size" class='icon-arrow-right pointer'></i>
  68. </div>
  69. </div>
  70. </div>
  71. </kibana-panel>