-
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
Login modal like wiki #4186
Login modal like wiki #4186
Conversation
Even with original
Even with master
Login button for the modal fixed
@SidharthBansal I think we can accept it. |
NO MERGING OF LINKING ISSUES OF MODAL NOW, |
Generated by 🚫 Danger |
Ok, thanks! |
@okonek please check
|
Ok, wait a second. |
|
The redirecting is not implemented in the new modal. Should I do it? |
Sure
…On Sat, Dec 8, 2018, 7:07 PM Jan Okoński ***@***.*** wrote:
The redirecting is not implemented in the new modal. Should I do it?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4186 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AUACQ17yf_OtSGZWOxI6o6gI0JPnUKshks5u28B-gaJpZM4ZJnDx>
.
|
@SidharthBansal Ok, so now I added a redirect, but I don't know how to automatically like the wiki after the login and the redirect. Have you got any idea? |
Can you please provide me the screenshot for the 3 sub-issues which are solved? |
Or can you push your changes on the unstable so that we can test them? |
@@ -1,6 +1,6 @@ | |||
<div class="container"> | |||
|
|||
<%= form_for :user_session, :as => :user_session, :url => :user_sessions, :html => {:class => "form col-md-6 offset-3"} do |f| %> | |||
<%= user_sessions_url + "?return_to=" + request.fullpath %> |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
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.
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.
As this return_to is highly related to @oorjitchowdhary and @JonathanXu1 I have created a pr #4197, @okonek you can remove these changes from your pr.
As @okonek you helped us in return_to, you will get rewards for https://codein.withgoogle.com/dashboard/tasks/5291275109531648/.
Please take it so that I can approve your task.
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.
It is working fine on unstable.
I might be mistaken, but I believe this also fixes #4153 since Notes and Wikis both use |
Let's first complete return_to field issue present in app/views/user_sessions/_new.html.erb. |
@kevinzluo if that's the case then once this pr gets merged we will close both the issues. |
I removed the file. Is it good now? |
You just need to remove the changes which you did. |
Ok |
I added it, is everything looking good? |
No problem, @gauravano you can potentially check this on unstable and merge this. |
Ok, no problem. I hope he'll do it today, because I wanted to claim the last task before the deadline. |
@SidharthBansal Could you do it, please? The competition ends tomorrow. |
I will approve your both tasks, I believe your changes are right. Please claim them on GCI dashboard and submit for review now. I will approve them now. |
Thank you, but I can't take a new task if the old is not approved, so can you approve? |
You need to submit it again.
…On Mon, Dec 10, 2018 at 2:24 AM Jan Okoński ***@***.***> wrote:
Thank you, but I can't take a new task if the old is not approved, so can
you approve?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4186 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AUACQ3zHRwxrmqVMhl1Y7YB9-u_q_DFGks5u3XiHgaJpZM4ZJnDx>
.
|
I did it, take a look. |
Approved it.
Take the issue for the /wiki I will approve that too.
…On Mon, Dec 10, 2018 at 2:27 AM Jan Okoński ***@***.***> wrote:
I did it, take a look.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4186 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AUACQ2bxd2s8w3gcWCEKoBB9m-iJ3wJDks5u3XlCgaJpZM4ZJnDx>
.
|
@SidharthBansal You mean this? |
Yeah |
Ok, claimed and submitted. Thank you very much. |
One more task you have completed, that is link login modal to /wiki.
please claim it. I will approve it.
…On Mon, Dec 10, 2018 at 2:37 AM Jan Okoński ***@***.***> wrote:
Ok, claimed and submitted. Thank you very much.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4186 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AUACQ0C-5yKCMLrr7sVWylrWNoOU66kYks5u3Xt_gaJpZM4ZJnDx>
.
|
Could you link it to me? I can't find it. |
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.
Hi, changes looks good to me. Thanks for your work.
@jywarren @gauravano can you please review this and merge this?
@SidharthBansal |
Approved
Thanks for your hard work.
…On Mon, Dec 10, 2018 at 2:47 AM Jan Okoński ***@***.***> wrote:
https://codein.withgoogle.com/dashboard/task-instances/4578429656629248/
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4186 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AUACQ9bT5wnwoH0wUWgAKiV-IzBHx5AAks5u3X4EgaJpZM4ZJnDx>
.
|
Thank you so much for help in this tasks. |
@jywarren @gauravano now I think it can be merged. What you guys think? |
* Login button for the modal fixed * Clicking on a like button if not logged in now shows login modal * Added a redirect in login modal * Removed changes from _new.html.erb * Delete _new.html.erb * Create _new.html.erb * Added custom param option to the login modal and like now auto-likes after login * Fixed the issue of checking array length on nil * Fixed codeclimate issues
* Login button for the modal fixed * Clicking on a like button if not logged in now shows login modal * Added a redirect in login modal * Removed changes from _new.html.erb * Delete _new.html.erb * Create _new.html.erb * Added custom param option to the login modal and like now auto-likes after login * Fixed the issue of checking array length on nil * Fixed codeclimate issues
Fixes #4154 (<=== Add issue number here)
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 belowIf 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!
![wikilikemodal](https://user-images.githubusercontent.com/24360027/49685825-cf2a2a00-fae2-11e8-93a6-92ba442828b1.gif)