File tree Expand file tree Collapse file tree
WEB-INF/templates/fragments Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616 th:src ="${#strings.isEmpty(comment.user.smallAvatarLink)} ? @{/images/no-avatar-small.png} :
1717 (${#strings.startsWith(comment.user.smallAvatarLink, 'http')} ? ${comment.user.smallAvatarLink} : (@{/uploads/} + ${comment.user.smallAvatarLink})) " />
1818 </ a >
19- < a class ="comment-username " th:href ="@{|/users/${comment.user.username}|} " th:text ="${comment.user.username} "> </ a >
19+ < a class ="comment-username " th:href ="@{|/users/${comment.user.username}|} " th:text ="${comment.user.username} "
20+ th:classappend ="${comment.user.hasRole('ROLE_ADMIN')} ? 'comment-username-admin' "> </ a >
2021 </ th:block >
2122 < span th:if ="${comment.deleted} " class ="deleted "> [deleted]</ span >
2223
Original file line number Diff line number Diff line change @@ -146,6 +146,10 @@ label.error {
146146 vertical-align : middle;
147147}
148148
149+ .comment-username-admin {
150+ color : darkred;
151+ }
152+
149153.comment-header .post-date {
150154 vertical-align : middle;
151155}
You can’t perform that action at this time.
0 commit comments