From 268020a10d1f447fd585840695cc4d2cbc550116 Mon Sep 17 00:00:00 2001 From: Stuart Owen Date: Wed, 13 Dec 2023 14:50:06 +0000 Subject: [PATCH] removed the display of item usage on each resource list item #1699 --- app/helpers/resource_list_item_helper.rb | 12 ------------ app/views/assets/_resource_list_item.html.erb | 3 --- 2 files changed, 15 deletions(-) diff --git a/app/helpers/resource_list_item_helper.rb b/app/helpers/resource_list_item_helper.rb index 73a36ce4dd..27565f2368 100644 --- a/app/helpers/resource_list_item_helper.rb +++ b/app/helpers/resource_list_item_helper.rb @@ -151,18 +151,6 @@ def list_item_timestamp(resource) html.html_safe end - def list_item_usage(resource) - if resource.view_count - html = 'Views: ' + resource.view_count.to_s - if resource.is_downloadable? - html << ', Downloads: ' + resource.download_count.to_s - end - html.html_safe - end - rescue - nil - end - def list_profile_registered_timestamp(resource) html = '

Registered:

<%= list_item_timestamp resource %>
-
- <%= list_item_usage resource %> -
<% end %>