This patch is intended to fix#37. Here's what it changes:
Adds a "donors" param to /users, so /users?donors will return everyone with a donor or donorplus badge.
Changes the "list of users who donated" link in /donate to point to /users?donors instead of /users?badge=donor.
This patch is intended to fix #37. Here's what it changes:
- Adds a "donors" param to `/users`, so `/users?donors` will return everyone with a donor or donorplus badge.
- Changes the "list of users who donated" link in `/donate` to point to `/users?donors` instead of `/users?badge=donor`.
bruncbrunc
(Migrated from github.com)
reviewed 2017-07-31 15:57:39 -04:00
This will come out as We also have list of users who.... This isn't part of the issue, but if you would add an a in there, that would be great. Otherwise, as long as you've tested it and have made sure it works, I approve this.
This will come out as `We also have list of users who...`. This isn't part of the issue, but if you would add an `a` in there, that would be great. Otherwise, as long as you've tested it and have made sure it works, I approve this.
LogalDeveloper
(Migrated from github.com)
reviewed 2017-07-31 16:02:21 -04:00
This grammar error has actually been in there for a while now. You can see it on the production server right now. Thanks for pointing this out, I'll add a fix to this pull request.
This grammar error has actually been in there for a while now. You can see it on the production server right now. Thanks for pointing this out, I'll add a fix to this pull request.
bruncbrunc
(Migrated from github.com)
approved these changes 2017-07-31 16:08:39 -04:00
bruncbrunc
(Migrated from github.com)
left a comment
Glad this is being added. Thanks.
Glad this is being added. Thanks.
jomo
(Migrated from github.com)
reviewed 2017-08-06 13:32:14 -04:00
in the controller, then use users_path(donor: ["donor", "donorplus"]).
You might want to update the view to properly handle arrays as well (e.g. join with " and ").
It would be much more flexible to just use
```ruby
role = Role.where(name: params[:role])
badge = Badge.where(name: params[:badge])
```
in the controller, then use `users_path(donor: ["donor", "donorplus"])`.
You might want to update the view to properly handle arrays as well (e.g. join with `" and "`).
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
This patch is intended to fix #37. Here's what it changes:
/users, so/users?donorswill return everyone with a donor or donorplus badge./donateto point to/users?donorsinstead of/users?badge=donor.This will come out as
We also have list of users who.... This isn't part of the issue, but if you would add anain there, that would be great. Otherwise, as long as you've tested it and have made sure it works, I approve this.This grammar error has actually been in there for a while now. You can see it on the production server right now. Thanks for pointing this out, I'll add a fix to this pull request.
Glad this is being added. Thanks.
It would be much more flexible to just use
in the controller, then use
users_path(donor: ["donor", "donorplus"]).You might want to update the view to properly handle arrays as well (e.g. join with
" and ").That's a good idea. I'll look into doing that in a couple days.
Going to merge this as is for now. If we ever find a need to create more groups of badges or roles, then I will implement a better long term solution.