Skip to content

Commit

Permalink
Reihenfolge angepasst und <hr> Trennbereiche ergänzt
Browse files Browse the repository at this point in the history
  • Loading branch information
RDBloese committed Sep 14, 2023
1 parent 3cfc111 commit 1c7dde2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
14 changes: 10 additions & 4 deletions src/main/resources/templates/fragments/details.html
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ <h2 class="id ml-3 mt-sm-1">
<!-- Script -->

<div class="textscript" th:fragment="textscript" id="textscript" th:unless="${#lists.isEmpty(obj.skript)}">
<hr/>
<p>
<strong th:text="#{object_property_script}" class="details-property-label">Skript</strong>:
<a th:href="${'/thesaurus/'+obj.getSkript.id}" th:text="${obj.getSkript.name}"></a>
Expand All @@ -135,7 +136,8 @@ <h2 class="id ml-3 mt-sm-1">

<!-- Comment on Script -->

<div class="textscript-comment" th:fragment="textscript-comment" id="textscript-comment" th:unless="${#lists.isEmpty(obj.Commentscript)}">
<div class="textscript-comment" th:fragment="textscript-comment" id="textscript-comment" th:unless="${#lists.isEmpty(obj.Commentscript)}">
<hr th:if="${#lists.isEmpty(obj.skript)}"/>
<p>
<strong th:text="#{object_property_commentscript}" class="details-property-label">Comment on script</strong>:
<br/>
Expand All @@ -146,7 +148,7 @@ <h2 class="id ml-3 mt-sm-1">
<!-- Language -->

<div class="language" th:fragment="language" id="language" th:unless="${#lists.isEmpty(obj.language)}">
<hr th:if="${#lists.isEmpty(obj.skript)}"/>
<hr>
<p>
<strong th:text="#{object_property_language}" class="details-property-label">Language</strong>:
<a th:href="${'/thesaurus/'+obj.getLanguage.id}" th:text="${obj.getLanguage.name}"></a>
Expand All @@ -155,7 +157,8 @@ <h2 class="id ml-3 mt-sm-1">

<!-- Comment on Language -->

<div class="language-comment" th:fragment="language-comment" id="language-coomment" th:unless="${#lists.isEmpty(obj.Commentlanguage)}">
<div class="language-comment" th:fragment="language-comment" id="language-coomment" th:unless="${#lists.isEmpty(obj.Commentlanguage)}">
<hr th:if="${#lists.isEmpty(obj.language)}"/>
<p>
<strong th:text="#{object_property_commentlanguage}" class="details-property-label">Comment on language</strong>:
<br/>
Expand All @@ -166,6 +169,7 @@ <h2 class="id ml-3 mt-sm-1">
<!-- Texttype -->

<div class="texttype" th:fragment="texttype" id="texttype" th:unless="${#lists.isEmpty(obj.texttype)}">
<hr>
<p>
<strong th:text="#{object_property_texttype}" class="details-property-label">Texttype</strong>:
<a th:href="${'/thesaurus/'+obj.getTexttype.id}" th:text="${obj.getTexttype.name}"></a>
Expand All @@ -175,7 +179,8 @@ <h2 class="id ml-3 mt-sm-1">

<!-- Comment on Texttype -->

<div class="texttype-comment" th:fragment="texttype-comment" id="texttype-coomment" th:unless="${#lists.isEmpty(obj.Commenttexttype)}">
<div class="texttype-comment" th:fragment="texttype-comment" id="texttype-coomment" th:unless="${#lists.isEmpty(obj.Commenttexttype)}">
<hr th:if="${#lists.isEmpty(obj.texttype)}"/>
<p>
<strong th:text="#{object_property_commenttexttype}" class="details-property-label">Comment on texttype</strong>:
<br/>
Expand All @@ -185,6 +190,7 @@ <h2 class="id ml-3 mt-sm-1">

<!-- Is secondary Inscription -->
<div class="is-secondary-inscription" th:fragment="is-secondary-inscription" id="is-secondary-inscription" th:unless="${#lists.isEmpty(obj.Secinscription)}">
<hr/>
<p>
<strong th:text="#{object_property_is_secinscription}" class="details-property-label">Is a secondary Inscription</strong>
</p>
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/templates/text/details.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
<div th:replace="fragments/details :: property-pid('text', ${obj.id})"/>
<div th:replace="fragments/details :: object-property-type-subtype('object')"/>
<div th:replace="fragments/details :: synonyms"/>
<div th:replace="fragments/details :: is-secondary-inscription"/>
<div th:replace="fragments/details :: textscript"/>
<div th:replace="fragments/details :: textscript-comment"/>
<div th:replace="fragments/details :: language"/>
<div th:replace="fragments/details :: language-comment"/>
<div th:replace="fragments/details :: texttype"/>
<div th:replace="fragments/details :: texttype-comment"/>
<div th:replace="fragments/details :: is-secondary-inscription"/>
<div th:replace="fragments/details :: date"/>
<div th:replace="fragments/details :: date-comment"/>
<div th:replace="fragments/details :: bibliography"/>
Expand Down

0 comments on commit 1c7dde2

Please sign in to comment.