Skip to content

Commit

Permalink
Zugriff auf Kommentare beginnend mit Ziffern
Browse files Browse the repository at this point in the history
  • Loading branch information
dwerning committed Oct 10, 2023
1 parent cb305ba commit 9c59bdd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/main/resources/templates/fragments/details.html
Original file line number Diff line number Diff line change
Expand Up @@ -801,8 +801,7 @@ <h2 class="id ml-3 mt-sm-1">
<!-- Single sentence annotation -->
<p th:fragment="sentence-annotation" id="sentence-annotation">
<span class="fas fa-arrow-circle-right"></span>
<th:block th:if="${'0' <= #strings.substring(relatedobj.id,0,1) and #strings.substring(relatedobj.id,0,1) <= '9'}" th:include="fragments/common :: construction(#{msg_related_with_invalid_names}+' '+${relatedobj.id}+'.')"></th:block>
<span th:unless="${'0' <= #strings.substring(relatedobj.id,0,1) and #strings.substring(relatedobj.id,0,1) <= '9'}" th:text="${related.BTSAnnotation.__${relatedobj.id}__.name}"></span>
<span th:utext="${related.BTSAnnotation.get(relatedobj.id).name}"></span>
</p>

<!-- Sentence comments -->
Expand All @@ -824,8 +823,7 @@ <h2 class="id ml-3 mt-sm-1">
<!-- Single sentence comment -->
<p th:fragment="sentence-comment" id="sentence-comment">
<span class="fas fa-arrow-circle-right"></span>
<th:block th:if="${'0' <= #strings.substring(relatedobj.id,0,1) and #strings.substring(relatedobj.id,0,1) <= '9'}" th:include="fragments/common :: construction(#{msg_related_with_invalid_names}+' '+${relatedobj.id}+'.')"></th:block>
<span th:unless="${'0' <= #strings.substring(relatedobj.id,0,1) and #strings.substring(relatedobj.id,0,1) <= '9'}" th:utext="${related.BTSComment.__${relatedobj.id}__.body}"></span>
<span th:utext="${related.BTSComment.get(relatedobj.id).body}"></span>
</p>


Expand Down

0 comments on commit 9c59bdd

Please sign in to comment.