Skip to content

Commit

Permalink
Fix email visibility on remote profile and exclude empty rows (fix #414)
Browse files Browse the repository at this point in the history
  • Loading branch information
arteymix committed Aug 6, 2024
1 parent 320bd67 commit 3419b21
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/main/resources/templates/search/user.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,21 +72,21 @@ <h3 class="mb-0">Basic Information</h3>
th:value="${viewUser.profile.lastName}" disabled="disabled"/>
</td>
</tr>
<tr class="edit-container">
<tr th:unless="${#strings.isEmpty(viewUser.profile.organization)}" class="edit-container">
<td class="align-middle"><span class="text-muted align-middle">Organization</span></td>
<td>
<input class="data-edit" type="text" name="organization"
th:value="${viewUser.profile.organization}" disabled="disabled"/>
</td>
</tr>
<tr class="edit-container">
<tr th:unless="${#strings.isEmpty(viewUser.profile.department)}" class="edit-container">
<td class="align-middle"><span class="text-muted align-middle">Department</span></td>
<td>
<input class="data-edit" type="text" name="department"
th:value="${viewUser.profile.department}" disabled="disabled"/>
</td>
</tr>
<tr class="edit-container">
<tr th:unless="${#strings.isEmpty(viewUser.profile.website)}" class="edit-container">
<td class="align-middle"><span class="text-muted align-middle">Website</span></td>
<td>
<input class="data-edit" type="text" name="website"
Expand Down Expand Up @@ -126,17 +126,16 @@ <h3 class="mb-0">Basic Information</h3>
<div class="card-header">
<h3 class="mb-0">Contact Information</h3>
</div>
<table class="table mb-0">
<tr th:unless="${viewUser.origin}">
<table th:if="${viewUser.verifiedContactEmail.isPresent()}" class="table mb-0">
<tr>
<td class="align-middle" style="width: 120px;"><span
class="text-muted align-middle">Email</span></td>
<td>
<a th:if="${viewUser.verifiedContactEmail.isPresent()}"
th:href="${'mailto:' + viewUser.verifiedContactEmail.get().address}"
<a th:href="${'mailto:' + viewUser.verifiedContactEmail.get().address}"
th:text="${viewUser.verifiedContactEmail.get().address}"></a>
</td>
</tr>
<tr class="edit-container">
<tr th:unless="${#strings.isEmpty(viewUser.profile.phone)}" class="edit-container">
<td class="align-middle"><span class="text-muted align-middle">Phone</span></td>
<td>
<input class="data-edit" type="text" name="phone" th:value="${viewUser.profile.phone}"
Expand Down

0 comments on commit 3419b21

Please sign in to comment.