Skip to content
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

Activity buttons prompt for thumbnail grids #4175

Closed
wants to merge 4 commits into from
Closed

Activity buttons prompt for thumbnail grids #4175

wants to merge 4 commits into from

Conversation

oorjitchowdhary
Copy link
Member

@oorjitchowdhary oorjitchowdhary commented Dec 7, 2018

Fixes #4092
@publiclab/mentors Please review the code now... Thanks a ton 😄
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

We're happy to help you get this ready -- don't be afraid to ask for help, and don't be discouraged if your tests fail at first!

If tests do fail, click on the red X to learn why by reading the logs.

Please be sure you've reviewed our contribution guidelines at https://publiclab.org/contributing-to-public-lab-software

Thanks!

@plotsbot
Copy link
Collaborator

plotsbot commented Dec 7, 2018

1 Warning
⚠️ It looks like you merged from master in this pull request. Please rebase to get rid of the merge commits – you may want to rewind the master branch and rebase instead of merging in from master, which can cause problems when accepting new code!
2 Messages
📖 @oorjitchowdhary Thank you for your pull request! I’m here to help with some tips and recommendations. Please take a look at the list provided and help us review and accept your contribution! And don’t be discouraged if you see errors – we’re here to help.
📖 It looks like you haven’t marked all the checkboxes. Help us review and accept your suggested changes by going through the steps one by one. If it is still a ‘Work in progresss’, please include ‘[WIP]’ in the title.

Generated by 🚫 Danger

@vatbq
Copy link
Contributor

vatbq commented Dec 7, 2018

You are using a variable that aren't defined. The solve that I found is passing local variables into the parcial. Something like that:
<% render :partial =>"grids/activity_template", locals: { randomSeed: randomSeed } %>

Hope this helps! @oorjitchowdhary

@oorjitchowdhary
Copy link
Member Author

@ValentinaTironi thanks that worked out..
but I'm still lost in few more issues..

  1. The add an activity/ask a question code doesn't work when used as a partial template.. If i insert that simply in the code file, it works well..
  2. The if questions, elsif activity code isn't working .. Just the embed table shows up when it is deployed..
    I don't what's the fix here.. Kept trying many things, didn't work out..
    @publiclab/reviewers Please help here.

@oorjitchowdhary
Copy link
Member Author

@SidharthBansal No errors now.. but nothing showing up too

@jywarren
Copy link
Member

jywarren commented Dec 10, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants