summaryrefslogtreecommitdiff
path: root/src/main/resources
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/resources')
-rw-r--r--src/main/resources/application.yml3
-rw-r--r--src/main/resources/templates/configs.html5
-rw-r--r--src/main/resources/templates/configs/gIcsConnectionAvailable.html24
3 files changed, 31 insertions, 1 deletions
diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml
index 0d219aa..9807b9b 100644
--- a/src/main/resources/application.yml
+++ b/src/main/resources/application.yml
@@ -16,6 +16,7 @@ spring:
content:
enabled: true
paths: /**/*.js,/**/*.css,/**/*.svg,/**/*.jpeg
-
+app:
+ isGenomDeTestSubmission: true
server:
forward-headers-strategy: framework \ No newline at end of file
diff --git a/src/main/resources/templates/configs.html b/src/main/resources/templates/configs.html
index d94deb6..e0056ee 100644
--- a/src/main/resources/templates/configs.html
+++ b/src/main/resources/templates/configs.html
@@ -50,6 +50,11 @@
</section>
<section hx-ext="sse" th:sse-connect="@{/configs/events}">
+ <div th:insert="~{configs/gIcsConnectionAvailable.html}" th:hx-get="@{/configs?gIcsConnectionAvailable}" hx-trigger="sse:gics-connection-check">
+ </div>
+ </section>
+
+ <section hx-ext="sse" th:sse-connect="@{/configs/events}">
<div th:insert="~{configs/outputConnectionAvailable.html}" th:hx-get="@{/configs?outputConnectionAvailable}" hx-trigger="sse:output-connection-check">
</div>
</section>
diff --git a/src/main/resources/templates/configs/gIcsConnectionAvailable.html b/src/main/resources/templates/configs/gIcsConnectionAvailable.html
new file mode 100644
index 0000000..907a5a2
--- /dev/null
+++ b/src/main/resources/templates/configs/gIcsConnectionAvailable.html
@@ -0,0 +1,24 @@
+<th:block th:if="${gIcsConnectionAvailable == null}">
+ <h2><span>🟦</span> gICS nicht konfiguriert - Einwilligung wird über Dateiinhalt geprüft</h2>
+</th:block>
+<th:block th:if="${gIcsConnectionAvailable != null}">
+ <h2><span th:if="${gIcsConnectionAvailable.available}">✅</span><span th:if="${not(gIcsConnectionAvailable.available)}">⚡</span> Verbindung zu gICS</h2>
+ <div>
+ Stand: <time style="font-weight: bold" th:datetime="${#temporals.formatISO(gIcsConnectionAvailable.timestamp)}" th:text="${#temporals.formatISO(gIcsConnectionAvailable.timestamp)}"></time>
+ &nbsp;|&nbsp;
+ Letzte Änderung: <time style="font-weight: bold" th:datetime="${#temporals.formatISO(gIcsConnectionAvailable.lastChange)}" th:text="${#temporals.formatISO(gIcsConnectionAvailable.lastChange)}"></time>
+ </div>
+ <div>
+ <span>Die Verbindung ist aktuell</span>
+ <strong th:if="${gIcsConnectionAvailable.available}" style="color: green">verfügbar.</strong>
+ <strong th:if="${not(gIcsConnectionAvailable.available)}" style="color: red">nicht verfügbar.</strong>
+ </div>
+ <div class="connection-display border">
+ <img th:src="@{/server.png}" alt="ETL-Processor" />
+ <span class="connection" th:classappend="${gIcsConnectionAvailable.available ? 'available' : ''}"></span>
+ <img th:src="@{/server.png}" alt="gICS" />
+ <span>ETL-Processor</span>
+ <span></span>
+ <span>gICS</span>
+ </div>
+</th:block> \ No newline at end of file