diff options
Diffstat (limited to 'src/main/resources')
4 files changed, 14 insertions, 0 deletions
diff --git a/src/main/resources/db/migration/mariadb/V0_15_0_2__UpdatedAtBy.sql b/src/main/resources/db/migration/mariadb/V0_15_0_2__UpdatedAtBy.sql new file mode 100644 index 0000000..2005c4f --- /dev/null +++ b/src/main/resources/db/migration/mariadb/V0_15_0_2__UpdatedAtBy.sql @@ -0,0 +1,2 @@ +ALTER TABLE request ADD COLUMN updated_at datetime; +ALTER TABLE request ADD COLUMN updated_by varchar(255);
\ No newline at end of file diff --git a/src/main/resources/db/migration/postgresql/V0_15_0_2__UpdatedAtBy.sql b/src/main/resources/db/migration/postgresql/V0_15_0_2__UpdatedAtBy.sql new file mode 100644 index 0000000..ed5c807 --- /dev/null +++ b/src/main/resources/db/migration/postgresql/V0_15_0_2__UpdatedAtBy.sql @@ -0,0 +1,2 @@ +ALTER TABLE request ADD COLUMN updated_at timestamp with time zone; +ALTER TABLE request ADD COLUMN updated_by varchar(255);
\ No newline at end of file diff --git a/src/main/resources/templates/index.html b/src/main/resources/templates/index.html index cea3f73..da85025 100644 --- a/src/main/resources/templates/index.html +++ b/src/main/resources/templates/index.html @@ -75,6 +75,11 @@ <th:block th:if="${request.submissionType.value != 'unknown'}">([[ ${request.submissionType} ]])</th:block> </span> </div> + <div sec:authorize="hasRole('USER') or hasRole('ADMIN')">Letzte Aktualisierung</div> + <div sec:authorize="hasRole('USER') or hasRole('ADMIN')"> + <time th:if="${request.updatedAt}" th:datetime="${request.updatedAt}">[[ ${request.updatedAt} ]]</time> + <span th:if="${request.updatedBy}"> durch [[ ${request.updatedBy} ]]</span> + </div> <div sec:authorize="hasRole('USER') or hasRole('ADMIN')">Patienten-Pseudonym</div> <div class="patient-id" th:if="${patientPseudonym != null}" sec:authorize="hasRole('USER') or hasRole('ADMIN')"> [[ ${request.patientPseudonym} ]] diff --git a/src/main/resources/templates/report.html b/src/main/resources/templates/report.html index 1e2d97c..cd26672 100644 --- a/src/main/resources/templates/report.html +++ b/src/main/resources/templates/report.html @@ -41,6 +41,11 @@ <th:block th:if="${request.submissionType.value != 'unknown'}">([[ ${request.submissionType} ]])</th:block> </span> </div> + <div sec:authorize="hasRole('USER') or hasRole('ADMIN')">Letzte Aktualisierung</div> + <div sec:authorize="hasRole('USER') or hasRole('ADMIN')"> + <time th:if="${request.updatedAt}" th:datetime="${request.updatedAt}">[[ ${request.updatedAt} ]]</time> + <span th:if="${request.updatedBy}"> durch [[ ${request.updatedBy} ]]</span> + </div> <div sec:authorize="hasRole('USER') or hasRole('ADMIN')">Patienten-Pseudonym</div> <div class="patient-id" th:if="${patientPseudonym != null}" sec:authorize="hasRole('USER') or hasRole('ADMIN')"> [[ ${request.patientPseudonym} ]] |
