diff options
| author | jlidke | 2025-07-22 20:02:15 +0200 |
|---|---|---|
| committer | GitHub | 2025-07-22 20:02:15 +0200 |
| commit | 199511e567884bb703277c276b782e54e528f744 (patch) | |
| tree | 42c19612ae161f98a252a13f4bd8234d7bae0527 /src/main/resources | |
| parent | 1319be8b3f5fbb3c4800dc9b942fc1982ac928d3 (diff) | |
63 check consent status (#120)
Co-authored-by: Paul-Christian Volkmer <code@pcvolkmer.de>
Diffstat (limited to 'src/main/resources')
| -rw-r--r-- | src/main/resources/application.yml | 3 | ||||
| -rw-r--r-- | src/main/resources/templates/configs.html | 5 | ||||
| -rw-r--r-- | src/main/resources/templates/configs/gIcsConnectionAvailable.html | 24 |
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> + | + 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 |
