From ece2233507c6f28efa23a1fa86195b9262412408 Mon Sep 17 00:00:00 2001 From: Matthew Landauer <mlandauer@gmail.com> Date: Thu, 19 Sep 2024 06:52:32 +0000 Subject: [PATCH] Don't show a link if there isn't content --- app/views/admin/api_usages/index.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/api_usages/index.html.erb b/app/views/admin/api_usages/index.html.erb index 18348ef1a..997411e34 100644 --- a/app/views/admin/api_usages/index.html.erb +++ b/app/views/admin/api_usages/index.html.erb @@ -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>