Skip to content

Commit

Permalink
Add links to phone and website in public profile (fix #415)
Browse files Browse the repository at this point in the history
  • Loading branch information
arteymix committed Aug 6, 2024
1 parent 3419b21 commit f6b674f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/main/resources/templates/search/user.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,7 @@ <h3 class="mb-0">Basic Information</h3>
<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"
th:value="${viewUser.profile.website}" disabled="disabled"/>
<a th:href="${viewUser.profile.website}" th:text="${viewUser.profile.website}"></a>
</td>
</tr>
<tr th:unless="${@applicationSettings.profile.enabledResearcherCategories.isEmpty()} or ${viewUser.profile.researcherCategories.isEmpty()}">
Expand Down Expand Up @@ -138,8 +137,7 @@ <h3 class="mb-0">Contact Information</h3>
<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}"
disabled="disabled"/>
<a th:href="'tel:'+${viewUser.profile.phone}" th:text="${viewUser.profile.phone}"></a>
</td>
</tr>
</table>
Expand Down

0 comments on commit f6b674f

Please sign in to comment.