From 91ce285067bd42262c8651555673f3f49fc6e646 Mon Sep 17 00:00:00 2001 From: David Cruciani Date: Tue, 20 Feb 2024 14:12:26 +0100 Subject: [PATCH] chg: [website] UI --- website/app/home.py | 2 +- website/app/static/css/core.css | 2 +- website/app/templates/home.html | 101 ++++++++++--------- website/app/templates/query.html | 163 ++++++++++++++----------------- 4 files changed, 130 insertions(+), 138 deletions(-) diff --git a/website/app/home.py b/website/app/home.py index acc7824..6c2ea42 100644 --- a/website/app/home.py +++ b/website/app/home.py @@ -41,7 +41,7 @@ def query(sid): sid=sid, input_query=session.input_query, modules=json.loads(session.modules_list), - query_date=session.query_date.strftime('%Y-%m-%d')) + query_date=session.query_date.strftime('%Y-%m-%d %H:%M')) return render_template("404.html") diff --git a/website/app/static/css/core.css b/website/app/static/css/core.css index 3735d35..7da1b98 100644 --- a/website/app/static/css/core.css +++ b/website/app/static/css/core.css @@ -7,7 +7,7 @@ body { } -span#goTop, span#project-version{ +span#goTop{ position: fixed; right: 1em; bottom: 1em; diff --git a/website/app/templates/home.html b/website/app/templates/home.html index 28c4101..78197a7 100644 --- a/website/app/templates/home.html +++ b/website/app/templates/home.html @@ -13,59 +13,64 @@

-
-
- - +
+
+
- [[status_site]] -
- -
- -
-
-

Input Attributes

-
-
- -
-
- - - - - -
-

Config

-
-

[[module.name]]

-
- - - +
+
+
+ + +
+ [[status_site]]
+ +
+ +
+
+

Input Attributes

+
+
+ +
+
+ + + + + +
+

Config

+
+

[[module.name]]

+
+ + + +
+
+
+ +
-
- - - {% endblock %} {% block script %} diff --git a/website/app/templates/query.html b/website/app/templates/query.html index ffb58c1..813391f 100644 --- a/website/app/templates/query.html +++ b/website/app/templates/query.html @@ -5,46 +5,37 @@ {% extends 'base.html' %} {% block content %} -

MISP Modules

- -
-
-
-
- - -
-
-
-
-
- [[status_site]] +

+ +
+

{{query}}

+ New query - -
-
-
-
-

Input Attribute:

- {{input_query}} -
-
-

Modules:

- {%for module in modules%} {{module}}, {%endfor%} -
+
+
+
+

Input Attribute:

+ {{input_query}}
-
-
- {{query_date}} +
+

Modules:

+ {%for module in modules%} {{module}}, {%endfor%}
+
+
+ {{query_date}} +
- - + +
+
+ [[progress]]% +
+
+ [[status_site]]
@@ -132,56 +123,20 @@ - - + +