PageRenderTime 83ms CodeModel.GetById 27ms RepoModel.GetById 1ms app.codeStats 0ms

/src/honeynet_web/honeywall/templates/index.html

https://bitbucket.org/cpdean/pig
HTML | 120 lines | 102 code | 11 blank | 7 comment | 0 complexity | 244107ce73334bee6b6670e17b5ab521 MD5 | raw file
Possible License(s): Apache-2.0, LGPL-2.1
  1. {% extends "base.html" %}
  2. {% block stylesheets %}
  3. <link href = "{{ STATIC_URL }}css/index.css" rel = "stylesheet" type = "text/css">
  4. {% endblock %}
  5. {% block top_row %}
  6. <div class = "span3">
  7. <img src = "{{ STATIC_URL }}logo1.png" />
  8. </div>
  9. <div class = "span9">
  10. <div id = "plot">
  11. </div>
  12. </div>
  13. {% endblock %}
  14. {% block bottom_row %}
  15. <!--Tabs-->
  16. <ul class = "nav nav-tabs">
  17. <li class = "active">
  18. <a href = "#attack_tab" data-toggle = "tab">Attacks</a>
  19. </li>
  20. <li>
  21. <a href = "#traffic_analysis_tab" data-toggle = "tab">Traffic Analysis</a>
  22. </li>
  23. </ul>
  24. <!--Tab contents-->
  25. <div class = "tab-content">
  26. <!--Attacks tab contents-->
  27. <div class = "tab-pane active" id = "attack_tab">
  28. <form class = "form-search" id = "attack_filter">
  29. <label id = "form_label" style = "width: 5%">Filter: </label>
  30. <input id = "form_entry" style = "width: 70%" type = "text" value = "" />
  31. <button style = "width: 10%" class = "btn" data-bind = "click: filter_button">Apply</button>
  32. <button style = "width: 10%" class = "btn" data-bind = "click: clear_button">Clear</button>
  33. </form>
  34. <table id = "table_header">
  35. <thead>
  36. <tr>
  37. <th id = "aid">ID</th>
  38. <th id = "attack_type">Attack Type</th>
  39. <th id = "start_time">Start Time</th>
  40. <th id = "end_time">End Time</th>
  41. <th id = "source_ip">Source IP</th>
  42. <th id = "destination_ip">Destination IP</th>
  43. <th id = "score">Score</th>
  44. <th id = "scroll_space"></th>
  45. </tr>
  46. </thead>
  47. </table>
  48. <div id = "table_holder">
  49. <table id = "main_table" class = "table">
  50. <tbody data-bind = "foreach: attacks">
  51. <tr data-bind = "attr: { href: link, id: level }, click: $parent.row_click">
  52. <td id = "aid" data-bind = "text: aid"></td>
  53. <td id = "attack_type"data-bind = "text: attackType"></td>
  54. <td id = "start_time" data-bind = "text: startTime"></td>
  55. <td id = "end_time" data-bind = "text: endTime"></td>
  56. <td id = "source_ip" data-bind = "text: sourceIp"></td>
  57. <td id = "destination_ip" data-bind = "text: destinationIp"></td>
  58. <td id = "score" data-bind = "text: score"></td>
  59. </tr>
  60. </tbody>
  61. </table>
  62. </div>
  63. <ul class="pager">
  64. <li class="previous">
  65. <a href="#" data-bind="click: get_previous, visible: previousPage">&larr; Newer</a>
  66. </li>
  67. <li class="next">
  68. <a href="#" data-bind="click: get_next, visible: nextPage">Older &rarr;</a>
  69. </li>
  70. </ul>
  71. </div>
  72. <!--Traffic Analysis tab contents-->
  73. <div class = "tab-pane" id = "traffic_analysis_tab">
  74. <table id = "secondary_table" class = "table">
  75. <thead>
  76. <tr>
  77. <th id = "type">Attack Type</th>
  78. <th id = "last">Last Occurrence</th>
  79. <th id = "avg">Average Score</th>
  80. <th id = "high">High Score</th>
  81. <th id = "perAttack">% of Attacks</th>
  82. <th id = "perTraffic">% of Traffic</th>
  83. <th id = "perFalse">% of False Positives</th>
  84. </tr>
  85. </thead>
  86. <tbody data-bind = "foreach: traffics">
  87. <tr>
  88. <td id = "type" data-bind = "text: attackType"></td>
  89. <td id = "last" data-bind = "text: lastOccurrence"></td>
  90. <td id = "avg" data-bind = "text: averageScore"></td>
  91. <td id = "high" data-bind = "text: highScore"></td>
  92. <td id = "perAttack" data-bind = "text: perAttack"></td>
  93. <td id = "perTraffic" data-bind = "text: perTraffic"></td>
  94. <td id = "perFalse" data-bind = "text: perFalsePositives"></td>
  95. </tr>
  96. </tbody>
  97. </table>
  98. </div>
  99. </div> <!-- tab content -->
  100. {% endblock %}
  101. {% block javascript %}
  102. <!-- For flot-->
  103. <script src = "{{ STATIC_URL }}flot/jquery.flot.js"></script>
  104. <script src = "{{ STATIC_URL }}flot/jquery.flot.resize.js"></script>
  105. <!-- For knockout -->
  106. <script src = "{{ STATIC_URL }}js/knockout-2.0.0.js"></script>
  107. <!-- index.js -->
  108. <script src="{{ STATIC_URL }}js/index.js"></script>
  109. {% endblock %}