From 29e846da99f8dceb995cb3216b425412b2ceb9bb Mon Sep 17 00:00:00 2001 From: aiooss-anssi Date: Fri, 31 May 2024 15:47:38 +0200 Subject: [PATCH] flowdisplay: add title to sections --- webapp/static/js/flowdisplay.js | 4 ++-- webapp/templates/index.html.jinja2 | 20 ++++++++++---------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/webapp/static/js/flowdisplay.js b/webapp/static/js/flowdisplay.js index aed49e8..e3e61d1 100644 --- a/webapp/static/js/flowdisplay.js +++ b/webapp/static/js/flowdisplay.js @@ -142,7 +142,7 @@ class FlowDisplay { // Flow card document.getElementById('display-flow').classList.remove('d-none') - document.querySelector('#display-flow > header > span').textContent = `${flow.flow.proto} flow, ${flow.flow.src_ipport} ➔ ${flow.flow.dest_ipport}` + document.querySelector('#display-flow > header > h1').textContent = `${flow.flow.proto} flow, ${flow.flow.src_ipport} ➔ ${flow.flow.dest_ipport}` document.querySelector('#display-flow > header > a').href = flow.flow.pcap_filename document.querySelector('#display-flow > header > a').classList.toggle('d-none', !flow.flow.pcap_filename) const flowBody = document.querySelector('#display-flow > pre') @@ -182,7 +182,7 @@ class FlowDisplay { if (appProto && appProto !== 'failed' && flow[appProto] !== undefined) { document.getElementById('display-app').classList.remove('d-none') document.querySelector('#display-app > header > a').classList.toggle('d-none', appProto !== 'http') - document.querySelector('#display-app > header > span > span').textContent = appProto.toUpperCase() + document.querySelector('#display-app > header > h1 > a > span').textContent = appProto.toUpperCase() const body = document.querySelector('#display-app > div > pre') body.textContent = '' if (appProto === 'http' || appProto === 'http2') { diff --git a/webapp/templates/index.html.jinja2 b/webapp/templates/index.html.jinja2 index 4cb19c6..e0a5cd4 100644 --- a/webapp/templates/index.html.jinja2 +++ b/webapp/templates/index.html.jinja2 @@ -123,22 +123,22 @@
- +

Download pcap

         
-
+
- +

+ - - +

Generate script
@@ -148,18 +148,18 @@
- +

+ Raw data - Raw data - - + +

Generate script