Skip to content

Commit

Permalink
Don't show a link if there isn't content
Browse files Browse the repository at this point in the history
  • Loading branch information
mlandauer committed Sep 19, 2024
1 parent 4817282 commit ece2233
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/admin/api_usages/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<% @result.each do |r| %>
<tr>
<td><%= link_to r[:api_key].user.name, admin_api_key_path(r[:api_key]) %></td>
<td><%= link_to r[:api_key].user.organisation, admin_api_key_path(r[:api_key]) %></td>
<td><%= link_to r[:api_key].user.organisation, admin_api_key_path(r[:api_key]) if r[:api_key].user.organisation.present? %></td>
<td><%= link_to r[:api_key].user.email, admin_api_key_path(r[:api_key]) %></td>
<td><%= link_to r[:api_key].disabled.to_s, admin_api_key_path(r[:api_key]) %></td>
<td><%= link_to r[:api_key].commercial.to_s, admin_api_key_path(r[:api_key]) %></td>
Expand Down

0 comments on commit ece2233

Please sign in to comment.