-
Notifications
You must be signed in to change notification settings - Fork 236
Proposed patch for issue 3353 #3360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
1) Remove author from contributors list 2) Use plural form only if more than one contributors
Thanks @manwar! It looks like this needs the latest |
Oops, will do it now. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #3360 +/- ##
==========================================
+ Coverage 73.41% 73.52% +0.10%
==========================================
Files 68 68
Lines 2389 2395 +6
Branches 335 336 +1
==========================================
+ Hits 1754 1761 +7
+ Misses 508 507 -1
Partials 127 127
🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could the commits be updated to include a summary of the change in the subject rather than the issue number? When reading through the commit log, issue numbers on their own aren't particularly useful.
} | ||
} | ||
$data->{contributors} = $contributors; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This only applies to the release page. The Pod view would still include the extra contributors.
This filtering should probably happen in lib/MetaCPAN/Web/Model/API/Contributors.pm
instead.
@@ -1,7 +1,7 @@ | |||
<div class="nav-header">Authored by: <a href="/author/[% $release.author %]" class="cpan-author">[% $release.author %]</a></div> | |||
%% if $contributors.size() { | |||
<div> | |||
<button class="contributors-show-button btn-link">and [% $contributors.size() %] contributors</button> | |||
<button class="contributors-show-button btn-link">and [% $contributors.size() %] [% $contributors.size() > 1 ? 'contributors' : 'contributor' %]</button> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be done with the pluralize
function.
Hi @oalders,
Please review when you get time.
Issue: #3353
Many Thanks.
Best Regards,
Mohammad