-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add missing_s action to AuditController and corresponding route
- Loading branch information
Showing
6 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<%- headers = ['slug', 'project_url', 'projects_count'] -%> | ||
<%= CSV.generate_line headers -%> | ||
<%- @collectives.each do |collective| -%> | ||
<%= CSV.generate_line([collective.slug, collective.project_url, collective.projects_count]) -%> | ||
<%- end -%> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<div class="container-md"> | ||
<h2>Audit</h2> | ||
|
||
<%= render 'nav' %> | ||
|
||
<% @collectives.each do |collective| %> | ||
<div class="collective card my-2"> | ||
<div class='card-body'> | ||
<div class="d-flex"> | ||
|
||
<div class="flex-grow-1 ms-3 text-break"> | ||
<h4><%= link_to collective.name, collective %></h4> | ||
<p><%= collective.description %></p> | ||
<p><%= number_with_delimiter collective.projects_count %> repository - <%= number_with_delimiter collective.transactions_count %> transactions - Balance: <%= collective.balance.round(2)%> <%= collective.currency %></p> | ||
<p>Project url: <%= link_to collective.project_url, collective.project_url, target: :_blank %></p> | ||
</div> | ||
<div class="flex-shrink-0"> | ||
<img src="<%= collective.icon_url %>" class="rounded" height='40' width='40' onerror="this.style.display='none'"> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<% end %> | ||
|
||
<p> | ||
<i> | ||
<small> | ||
Displaying <%= pluralize @collectives.length, 'collective' %> that appear to be missing an S in the github url. | ||
</small> | ||
</i> | ||
</p> | ||
|
||
<%= link_to 'Export as CSV', audit_missing_s_path(format: :csv), class: 'btn btn-primary' %> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters