diff --git a/app/src/web/conn_table.py b/app/src/web/conn_table.py
index 62c52f7..ae6fe38 100644
--- a/app/src/web/conn_table.py
+++ b/app/src/web/conn_table.py
@@ -48,6 +48,7 @@ def _get_row(inv: InverterBase):
def get_table_data():
'''build the connection table'''
table = {
+ "headline": _('Connections'),
"col_classes": [
"w3-hide-small w3-hide-medium", "w3-hide-large",
"",
@@ -75,7 +76,7 @@ async def data_fetch():
"proxy-cnt": f"
{Infos.get_counter('ProxyMode_Cnt')}
",
"emulation-cnt": f"{Infos.get_counter('EmuMode_Cnt')}
",
}
- data["conn-table"] = await render_template('templ_conn_table.html.j2',
+ data["conn-table"] = await render_template('templ_table.html.j2',
table=get_table_data())
data["notes-list"] = await render_template('templ_notes_list.html.j2')
diff --git a/app/src/web/mqtt_table.py b/app/src/web/mqtt_table.py
index 44ef0bc..f4edd94 100644
--- a/app/src/web/mqtt_table.py
+++ b/app/src/web/mqtt_table.py
@@ -1,7 +1,6 @@
from inverter_base import InverterBase
from quart import render_template
from quart_babel import format_datetime, _
-from infos import Infos
from mqtt import Mqtt
from . import web
@@ -49,6 +48,7 @@ def _get_row(inv: InverterBase):
def get_table_data():
'''build the connection table'''
table = {
+ "headline": _('MQTT devices'),
"col_classes": [
"w3-hide-small w3-hide-medium", "w3-hide-large",
"",
@@ -77,7 +77,7 @@ async def mqtt_fetch():
"mqtt-tx": f"{mqtt.published}
",
"mqtt-rx": f"{mqtt.received}
",
}
- # data["conn-table"] = await render_template('templ_conn_table.html.j2',
- # table=get_table_data())
+ data["mqtt-table"] = await render_template('templ_table.html.j2',
+ table=get_table_data())
return data
diff --git a/app/src/web/templates/page_mqtt.html.j2 b/app/src/web/templates/page_mqtt.html.j2
index 6ca8c58..8639633 100644
--- a/app/src/web/templates/page_mqtt.html.j2
+++ b/app/src/web/templates/page_mqtt.html.j2
@@ -45,7 +45,7 @@
-
+
{% endblock content%}
{% block footer %}{% endblock footer %}
diff --git a/app/src/web/templates/templ_conn_table.html.j2 b/app/src/web/templates/templ_table.html.j2
similarity index 97%
rename from app/src/web/templates/templ_conn_table.html.j2
rename to app/src/web/templates/templ_table.html.j2
index 40ca192..f31226f 100644
--- a/app/src/web/templates/templ_conn_table.html.j2
+++ b/app/src/web/templates/templ_table.html.j2
@@ -13,7 +13,7 @@
{%- endmacro%}
-
{{_('Connections')}}
+
{{table.headline}}