-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Fix "Show 0 more" on inline people lists #4253
Conversation
Generated by 🚫 Danger |
Can you please explain why was it happening? |
Please take the task on the dashboard, and tell us the link here we will approve it if your solution works. |
plots2/app/views/grids/_people.html.erb Lines 13 to 29 in 1d96583
As you can see on line 21, the comparative used to be <% if index == 9%> This would cause the show X more tag to show when there on the 10th listing. However if there are only 10 listings, it would say show 0 more. |
@SidharthBansal could I get a link to the task? Don't think I can find it |
… On Mon, Dec 10, 2018 at 8:41 PM Jonathan Xu ***@***.***> wrote:
@SidharthBansal <https://github.com/SidharthBansal> could I get a link to
the task? Don't think I can find it
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4253 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AUACQ6jq4jsd_KEYMw4mW3dJKAc_DqbXks5u3nmygaJpZM4ZLhHV>
.
|
Ah, but you should be able to copy the short code which generates the table
into a wiki page on your own local copy. Should be something like:
[people:____] -- hope that helps!
…On Mon, Dec 10, 2018 at 8:51 AM Jonathan Xu ***@***.***> wrote:
Fixes #2151 <#2151>
Make sure these boxes are checked before your pull request (PR) is ready
to be reviewed and merged. Thanks!
- tests pass -- look for a green checkbox ✔️ a few minutes after
opening your PR -- or run tests locally with rake test
- code is in uniquely-named feature branch and has no merge conflicts
- PR is descriptively titled
- ask @publiclab/reviewers for help, in a comment below
This PR should fix the error of a toggle that says "show 0 more"
[image: image]
<https://user-images.githubusercontent.com/22998430/49739837-d6774200-fc60-11e8-9e54-0f29cee5787e.png>
I increased the index at which toggle would appear.
I'm unable to test this on localhost as this page
https://publiclab.org/w/power-tags#Inline+power+tags seems to be hosted
on a database.
------------------------------
You can view, comment on, or merge this pull request online at:
#4253
Commit Summary
- made field required
- Merge branch 'master' of https://github.com/publiclab/plots2
- Merge branch 'master' of https://github.com/publiclab/plots2
- fix merge conflict
- Merge branch 'master' of https://github.com/publiclab/plots2
- Merge branch 'master' of https://github.com/publiclab/plots2
- Merge branch 'master' of https://github.com/publiclab/plots2
- Merge branch 'master' of https://github.com/publiclab/plots2
- fix merge conflict
- Merge branch 'master' of https://github.com/publiclab/plots2
- Merge branch 'master' of https://github.com/publiclab/plots2
- Merge branch 'master' of https://github.com/publiclab/plots2
- Merge branch 'master' of https://github.com/publiclab/plots2
- delete comment moderate file
- Merge branch 'master' of https://github.com/publiclab/plots2
- Merge branch 'master' of https://github.com/publiclab/plots2
- fix show 0 more error
File Changes
- *M* app/views/grids/_people.html.erb
<https://github.com/publiclab/plots2/pull/4253/files#diff-0> (4)
Patch Links:
- https://github.com/publiclab/plots2/pull/4253.patch
- https://github.com/publiclab/plots2/pull/4253.diff
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#4253>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJwhpEp8yyZdXBUpMZOqM9ENFZx8Gks5u3nS6gaJpZM4ZLhHV>
.
|
@JonathanXu1 do you need any help here? |
As the person is inactive for more than a month, I am closing the PR. In case you want to push changes please feel free to open a new PR OR reopen this PR and add additional changes to it. |
Fixes #2151
Make sure these boxes are checked before your pull request (PR) is ready to be reviewed and merged. Thanks!
rake test
@publiclab/reviewers
for help, in a comment belowThis PR should fix the error of a toggle that says "show 0 more"
![image](https://user-images.githubusercontent.com/22998430/49739837-d6774200-fc60-11e8-9e54-0f29cee5787e.png)
I increased the index at which toggle would appear.
I'm unable to test this on localhost as this page https://publiclab.org/w/power-tags#Inline+power+tags seems to be hosted on a database.