Skip to content

Commit

Permalink
Suppressing user avatar link when no avatar file specified, and addin…
Browse files Browse the repository at this point in the history
…g an alt text for when one does" (#6936)
  • Loading branch information
randalldfloyd authored Nov 1, 2024
1 parent 542b449 commit 624a2c9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions app/views/hyrax/users/_user_row.html.erb
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
<tr>
<td><%= link_to hyrax.user_path(user) do %>
<%= image_tag(user.avatar.url(:thumb), width: 30) if user.avatar.file %>
<td>
<% if user.avatar.file %>
<%= link_to hyrax.user_path(user) do %>
<%= image_tag(user.avatar.url(:thumb), width: 30, alt: user.name) %>
<% end %>
</td>
<% end %>
</td>
<td><%= link_to user.name, hyrax.user_path(user) %></td>
<td><%= link_to user.user_key, hyrax.user_path(user) %></td>
<td><%= user.department %></td>
Expand Down

0 comments on commit 624a2c9

Please sign in to comment.