Plots2: Link login modal to 'Ask related question'

Created on 26 Dec 2018  ยท  9Comments  ยท  Source: publiclab/plots2

Hi, this is a first-timers-only issue built off #4132 . This means we've worked to make it more legible to folks who either haven't contributed to our codebase before, or even folks who haven't contributed to open source before.

If that's you, we're interested in helping you take the first step and can answer questions and help you out as you do. Note that we're especially interested in contributions from people from groups underrepresented in free and open source software!

We know that the process of creating a pull request is the biggest barrier for new contributors. This issue is for you ๐Ÿ’

If you have contributed before, consider leaving this one for someone new, and looking through our general help wanted issues. Thanks!

๐Ÿค” What you will need to know.

Nothing. This issue is meant to welcome you to Open Source :) We are happy to walk you through the process.

๐Ÿ“‹ Step by Step

  • [ ] ๐Ÿ™‹ Claim this issue: Comment below. If someone else has claimed it, ask if they've opened a pull request already and if they're stuck -- maybe you can help them solve a problem or move it along!

  • [ ] ๐Ÿ“ Update the file app/views/sidebar/_question.html.erb in the plots2 repository (press the little pen Icon) and edit the line as shown below.

See this page for some help in taking your first steps!

Below is a "diff" showing in red (and a -) which lines to remove, and in green (and a +) which lines to add:

- <a rel="tooltip" title="Ask question<% if @tagnames %> about <%= (@tagnames.uniq.collect {|x| x.gsub(/[\w-]+:/, '') }).join(',') %><% end %>" data-placement="bottom" href="/post<%= '?tags=' + @tagnames.uniq.join(',') if @tagnames %>&template=question&redirect=question" class="btn btn-primary btn-lg btn-block"><i class="fa fa-question-circle fa-white"></i> Ask related question &raquo;</a>
+ <a rel="tooltip" title="Ask question<% if @tagnames %> about <%= (@tagnames.uniq.collect {|x| x.gsub(/[\w-]+:/, '') }).join(',') %><% end %>" data-placement="bottom" href="/post<%= '?tags=' + @tagnames.uniq.join(',') if @tagnames %>&template=question&redirect=question" class="btn btn-primary btn-lg btn-block requireLogin"><i class="fa fa-question-circle fa-white"></i> Ask related question &raquo;</a>
  • [ ] ๐Ÿ’พ Commit your changes

  • [ ] ๐Ÿ”€ Start a Pull Request. There are two ways how you can start a pull request:

  1. If you are familiar with the terminal or would like to learn it, here is a great tutorial on how to send a pull request using the terminal.

  2. You can also edit files directly in your browser and open a pull request from there.

  • [ ] ๐Ÿ Done Ask in comments for a review :)

๐Ÿค”โ“ Questions?

Leave a comment below!

Is someone else already working on this?

We encourage you to link to this issue by mentioning the issue # in your pull request, so we can see if someone's already started on it. If someone seem stuck, offer them some help! Otherwise, take a look at some other issues you can help with. Thanks!

first-timers-only

Most helpful comment

I'll do this one! Thank you

All 9 comments

I'll do this one! Thank you

Thanks @londonolson!

Thanks @londonolson!

I think I completed it but let me know if I messed up. This is my first time working with github for anything beyond downloading an apk once. I want to get to the point of contributing a ton to open source projects.

Hi @londonolson.. Open up a pull request to show us your changes..
If you've any doubts.. Ping anyone of us

Welcome to Github and Public Lab!

Hi @londonolson.. Open up a pull request to show us your changes..
If you've any doubts.. Ping anyone of us

Welcome to Github and Public Lab!

I chose publiclab/plots2 to as the base and londonolson/plots2 as the head fork and it says that publiclab:master is up to date with all commits from londonolson:master. Am I doing something wrong with that? Thank you for being so understanding of a beginner

Oh I see..
So you where have you made the changes? If you've created a new branch for the changes, then keep the head fork as londonolson/plots2:branch_name..

If you haven't created any branches and your master is up to date.. Then it means you haven't done the changes or the changes aren't pushed to the Github repository..

Just tell me where have you made the changes? On the website directly? Or through the terminal?

I'll guide you from there

Oh I see..
So you where have you made the changes? If you've created a new branch for the changes, then keep the head fork as londonolson/plots2:branch_name..

If you haven't created any branches and your master is up to date.. Then it means you haven't done the changes or the changes aren't pushed to the Github repository..

Just tell me where have you made the changes? On the website directly? Or through the terminal?

I'll guide you from there

I clicked the pen icon and made the changes that way. Following the "Step by Step" on this page. On the website directly.

Okay..
So

  1. click the pen icon..
  2. do the changes as mentioned here
  3. navigate down to the button propose file change and press that
  4. It'll open a page comparing changes
  5. If you've changed anything, it'll show something like this

image

  1. review your changes and click on create pull request

Through this, you should be able to open up a pull request successfully!

Okay..
So

  1. click the pen icon..
  2. do the changes as mentioned here
  3. navigate down to the button propose file change and press that
  4. It'll open a page comparing changes
  5. If you've changed anything, it'll show something like this

image

  1. review your changes and click on create pull request

Through this, you should be able to open up a pull request successfully!

Thank you! Last time I missed step 6 but I think I did it right this time. Here's a link to my pull request.
https://github.com/publiclab/plots2/pull/4466

Was this page helpful?
0 / 5 - 0 ratings

Related issues

grvsachdeva picture grvsachdeva  ยท  3Comments

bronwen9 picture bronwen9  ยท  3Comments

first-timers[bot] picture first-timers[bot]  ยท  3Comments

keshavsethi picture keshavsethi  ยท  3Comments

grvsachdeva picture grvsachdeva  ยท  3Comments