tree.mako 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <%namespace name="shared" file="shared_components.mako" />
  2. ${shared.header("ZooKeeper Browser > Tree > %s > %s" % (cluster['nice_name'], path))}
  3. <h1>${cluster['nice_name'].lower()} :: ${path}</h1>
  4. <br />
  5. <table data-filters="HtmlTable">
  6. <thead>
  7. <th colspan="2">Children</th>
  8. </thead>
  9. % for child in children:
  10. <tr><td width="100%">
  11. <a href="${url('zkui.views.tree', id=cluster['id'], \
  12. path=("%s/%s" % (path, child)).replace('//', '/'))}">
  13. ${child}</a>
  14. </td><td>
  15. <a title="Delete ${child}" class="delete frame_tip confirm_and_post" alt="Are you sure you want to delete ${child}?" href="${url('zkui.views.delete', id=cluster['id'], \
  16. path=("%s/%s" % (path, child)).replace('//', '/'))}">Delete</a>
  17. </td></tr>
  18. % endfor
  19. </table>
  20. <br />
  21. <span style="float: right">
  22. ${shared.info_button(url('zkui.views.create', id=cluster['id'], path=path), 'Create New')}
  23. </span>
  24. <div style="clear: both"></div>
  25. <h2>data :: base64 :: length :: ${znode.get('dataLength', 0)}</h2>
  26. <br />
  27. <textarea name="data64" style="width: 100%;" rows="5" readonly="readonly">${znode.get('data64', '')}</textarea>
  28. <div style="clear: both"></div>
  29. <span style="float: right">
  30. ${shared.info_button(url('zkui.views.edit_as_base64', id=cluster['id'], path=path), 'Edit as Base64')}
  31. ${shared.info_button(url('zkui.views.edit_as_text', id=cluster['id'], path=path), 'Edit as Text')}
  32. </span>
  33. <div style="clear: both"></div>
  34. <br />
  35. <h2>stat information</h2>
  36. <br />
  37. <table data-filters="HtmlTable">
  38. <thead><tr><th>Key</th>
  39. <th width="80%">Value</th></tr></thead>
  40. % for key in ('pzxid', 'ctime', 'aversion', 'mzxid', \
  41. 'ephemeralOwner', 'version', 'mtime', 'cversion', 'czxid'):
  42. <tr><td>${key}</td><td>${znode[key]}</td></tr>
  43. % endfor
  44. </table>
  45. <br />
  46. <a target="_blank" href="http://hadoop.apache.org/zookeeper/docs/current/zookeeperProgrammers.html#sc_zkStatStructure">Details on stat information.</a>
  47. ${shared.footer()}