From 71837d33087932e12890912cbd30ec0f7bdb4414 Mon Sep 17 00:00:00 2001 From: Sami Mokaddem Date: Thu, 16 Nov 2017 12:23:02 +0100 Subject: [PATCH] Added trendings template --- server.py | 5 + static/js/trendings.js | 22 +++++ templates/trendings.html | 203 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 230 insertions(+) create mode 100644 static/js/trendings.js create mode 100644 templates/trendings.html diff --git a/server.py b/server.py index e17302b..5ad54cd 100755 --- a/server.py +++ b/server.py @@ -201,6 +201,11 @@ def users(): ) +@app.route("/trendings") +def trendings(): + return render_template('trendings.html', + ) + ''' INDEX ''' @app.route("/_logs") diff --git a/static/js/trendings.js b/static/js/trendings.js new file mode 100644 index 0000000..375a976 --- /dev/null +++ b/static/js/trendings.js @@ -0,0 +1,22 @@ +function dateChanged() { + var date = datePickerWidget.datepicker( "getDate" ); + console.log(date); +} + +$(document).ready(function () { + + var datePickerOptions = { + showOn: "button", + maxDate: 0, + buttonImage: urlIconCalendar, + buttonImageOnly: true, + buttonText: "Select date", + showAnim: "slideDown", + onSelect: dateChanged + }; + var datePickerOptions = jQuery.extend({}, datePickerOptions); + datePickerWidget = $( "#datepicker" ); + datePickerWidget.datepicker(datePickerOptions); + datePickerWidget.datepicker("setDate", new Date()); + +}); diff --git a/templates/trendings.html b/templates/trendings.html new file mode 100644 index 0000000..7cdb26a --- /dev/null +++ b/templates/trendings.html @@ -0,0 +1,203 @@ + + + + + + + + + + + MISP live dashboard + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+
+
+
+ +
+
+
+
+ Most active events +
+
+
+
+
+
+
+ +
+
+
+ Most active categories +
+
+
+
+
+
+
+ +
+
+
+ Popular tags +
+
+
+
+
+
+
+ +
+
+
+
+
+ Sightings +
+
+
+
+
+
+
+
+
+
+ Empty +
+
+
+
+
+
+
+ +
+ +
+ +
+ + +
+ + + + + + + + + +