From 3598cb591d4681318d64ae3f7681418abbbed72e Mon Sep 17 00:00:00 2001 From: ziirish Date: Mon, 17 Nov 2014 20:50:23 +0100 Subject: [PATCH] improve ui for #13 --- burpui/templates/config.html | 86 +++++++++++++++++++---------------- burpui/templates/js/config.js | 5 ++ burpui/templates/sidebar.html | 3 ++ burpui/templates/spyside.html | 8 ++++ 4 files changed, 62 insertions(+), 40 deletions(-) create mode 100644 burpui/templates/spyside.html diff --git a/burpui/templates/config.html b/burpui/templates/config.html index b2062f59..2a429e4d 100644 --- a/burpui/templates/config.html +++ b/burpui/templates/config.html @@ -12,48 +12,54 @@ {% endif -%}
-

Burp Configuration

-
- {% raw %} -
- Booleans -
- -
- - -   - -   - {{ server_doc[bool.name] }} +
+
+ + {% raw %} +
+ Booleans +
+ +
+ + +   + +   + {{ server_doc[bool.name] }} +
+
+
+
+ + {{$select.selected.name}} + +
+
+
+
+
+ +
+
+
+
+ +
+
+
+
+ Strings +
+ {% endraw %} +
+
+ +
-
-
-
- - {{$select.selected.name}} - -
-
-
-
-
- -
-
-
-
- -
-
-
- {% endraw %} -
-
- -
+
- + {% endblock %} diff --git a/burpui/templates/js/config.js b/burpui/templates/js/config.js index 82584aff..89f56a13 100644 --- a/burpui/templates/js/config.js +++ b/burpui/templates/js/config.js @@ -66,3 +66,8 @@ app.controller('MainCtrl', function($scope, $http) { $scope.add.bool = false; }; }); + +$(function() { + $('body').scrollspy({ target: '#navbar-config' }); +}); + diff --git a/burpui/templates/sidebar.html b/burpui/templates/sidebar.html index 7c8a5716..c1aabd59 100644 --- a/burpui/templates/sidebar.html +++ b/burpui/templates/sidebar.html @@ -27,4 +27,7 @@ {% endif %} + {% if config -%} + {% include "spyside.html" %} + {% endif -%} diff --git a/burpui/templates/spyside.html b/burpui/templates/spyside.html new file mode 100644 index 00000000..7f6ae60c --- /dev/null +++ b/burpui/templates/spyside.html @@ -0,0 +1,8 @@ + +

Configuration navigation

+