From 1454757d3f2b2d45418a5d7f5262f66c51bde80a Mon Sep 17 00:00:00 2001 From: aaronskiba Date: Wed, 22 May 2024 16:08:33 -0600 Subject: [PATCH 1/2] DMP Ass't - Enable `Monthly Usage` for funder orgs `app/controllers/usage_controller.rb` includes the following assignment: `@funder = current_user.org.funder?` But "Portage Network" is the only org within DMP Assistant such that org.funder? == true. This commit re-enables the 'Download Monthly Usage' functionality for this org. --- app/views/usage/_total_usage.html.erb | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/views/usage/_total_usage.html.erb b/app/views/usage/_total_usage.html.erb index e1c0e67023..60fd3d977c 100644 --- a/app/views/usage/_total_usage.html.erb +++ b/app/views/usage/_total_usage.html.erb @@ -38,11 +38,9 @@ <% end %> <% end %> - <% unless @funder.present? %>
<%= link_to usage_org_statistics_path(sep: ",", filtered: @filtered), class: 'stat btn btn-default pull-right', role: 'button', target: '_blank' do %> <%= _('Download Monthly Usage') %> <% end %>
- <% end %> From 911774a5ec20120285d0e12d7179758dd880aad4 Mon Sep 17 00:00:00 2001 From: aaronskiba Date: Wed, 22 May 2024 16:12:58 -0600 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index dce5fd7037..ff686caad5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,8 @@ ### Changed + - Enabled "Download Monthly Usage" Functionality For "Portage Network" [#761](https://github.com/portagenetwork/roadmap/pull/761) + - Deactivate Requests to External ROR API [#738](https://github.com/portagenetwork/roadmap/pull/738) - Updated 'translation' gem URL in Gemfile to match moved repository [#725](https://github.com/portagenetwork/roadmap/pull/725)