list.html 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. {% extends "portal/layout.html" %}
  2. {% block content %}
  3. <div class="panel panel-default">
  4. <!-- Default panel contents -->
  5. <div class="panel-heading" style="padding-left: 8px;">
  6. 集群聚合配置列表
  7. <div class="pull-right">
  8. <a class="btn btn-success btn-xs" href="/portal/group/{{ group.id }}/cluster/creator">
  9. <span class="glyphicon glyphicon-plus"></span>
  10. 新建
  11. </a>
  12. </div>
  13. </div>
  14. <div class="panel-body" style="padding-left: 8px;">
  15. 当前HostGroup:<span class="green">{{ group.grp_name }}</span>
  16. </div>
  17. <!-- Table -->
  18. <table class="table table-hover table-bordered table-striped" style="margin-bottom: 0px; margin-top: 0px;">
  19. <thead>
  20. <tr>
  21. <th>endpoint</th>
  22. <th>metric</th>
  23. <th>tags</th>
  24. <th>creator</th>
  25. <th>operation</th>
  26. </tr>
  27. </thead>
  28. <tbody>
  29. {% for c in clusters %}
  30. <tr>
  31. <td>
  32. {{ c.endpoint }}
  33. </td>
  34. <td>
  35. {{ c.metric }}
  36. </td>
  37. <td>
  38. {{ c.tags }}
  39. </td>
  40. <td>{{ c.creator }}</td>
  41. <td>
  42. <a data-toggle="tooltip" href="{{ url_for('cluster_edit_get', cluster_id=c.id) }}" title="修改">
  43. <span class="glyphicon glyphicon-edit orange"></span>
  44. </a>
  45. <span class="cut-line">¦</span>
  46. <a data-toggle="tooltip" href="{{ url_for('cluster_clone_get', cluster_id=c.id) }}" title="克隆">
  47. <span class="glyphicon glyphicon-duplicate orange"></span>
  48. </a>
  49. <span class="cut-line">¦</span>
  50. <a data-toggle="tooltip" href="javascript:delete_cluster_monitor_item('{{ c.id }}');" title="删除">
  51. <span class="glyphicon glyphicon-trash orange"></span>
  52. </a>
  53. </td>
  54. </tr>
  55. {% else %}
  56. <tr>
  57. <td colspan="5">no records</td>
  58. </tr>
  59. {% endfor %}
  60. </tbody>
  61. </table>
  62. </div>
  63. {% endblock %}