Skip to content

Commit

Permalink
removed the display of item usage on each resource list item #1699
Browse files Browse the repository at this point in the history
  • Loading branch information
stuzart committed Dec 13, 2023
1 parent c7fe193 commit 268020a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
12 changes: 0 additions & 12 deletions app/helpers/resource_list_item_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '<p class="list_item_attribute none_text" style="text-align:center;"><b>Registered:</b> <label>'
html << (resource.try(:user).try(:created_at).nil? ? 'Not yet registered' : date_as_string(resource.try(:user).try(:created_at)))
Expand Down
3 changes: 0 additions & 3 deletions app/views/assets/_resource_list_item.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,6 @@
<div class="col-sm-8">
<%= list_item_timestamp resource %>
</div>
<div class="col-sm-4 text-right">
<%= list_item_usage resource %>
</div>
</div>
</div>
<% end %>
Expand Down

0 comments on commit 268020a

Please sign in to comment.