Plots2: Pop up a modal menu with templates when starting a new wiki page

Created on 6 Mar 2019  Â·  9Comments  Â·  Source: publiclab/plots2

Going to https://publiclab.org/wiki/new opens a new blank wiki page, but it's a bit bare, and hard for people to know where to begin. Let's offer a Bootstrap modal with some template options:

screen shot 2019-03-06 at 3 51 27 pm

The actual content of the modal we could set in a Feature (learn about this system here) which means we don't have to put the HTML for this into the codebase - we'll store it in the database, and I can help with that. For now, we can put that code into a Gist: https://gist.github.com

But the code for the modal which will contain the templates will have to go in our codebase.

Here's the template for the "new wiki page" page; but note that we use this for editing the wiki page too:

https://github.com/publiclab/plots2/blob/master/app/views/wiki/edit.html.erb

To distinguish, we might need to set a variable in the controller that we can use to turn the modal on:

https://github.com/publiclab/plots2/blob/master/app/controllers/wiki_controller.rb#L121

HTML Ruby help wanted

Most helpful comment

Hi @jywarren. Could I work on this?

All 9 comments

Hi @jywarren. Could I work on this?

Oh yes, that'd be super! Thank you!

On Wed, Mar 6, 2019 at 6:42 PM Chrisyee22 notifications@github.com wrote:

Hi @jywarren https://github.com/jywarren. Could I work on this?

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/publiclab/plots2/issues/4932#issuecomment-470322227,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABfJ8Ks0JKINf1GZeofndg0Zp9qv9XBks5vUFJDgaJpZM4bhzEI
.

Hello @jywarren. may i work on this issue ?

Hi @yash98gupta. I’m actually working on this at the moment.

Hi @yash98gupta , as this issue is already claimed. But, you can see we have many issues to tackle - https://github.com/publiclab/plots2/issues/ so if you dig a little, you'll find a good issue. If you are looking for your first-issue then, you can find it at https://code.publiclab.org/#r=all, if you can't find any unclaimed issue there, feel free to comment below or in Gitter channel - https://gitter.im/publiclab/publiclab, we'll try to create one for you. Thanks!

Is this issue still open?
I would like to work on this.

I am currently working on this.

Hi Divya, perhaps you could look over Chrisyee22's code to offer input or
suggestions until I or another reviewer has a chance? Thanks!

On Wed, Mar 20, 2019, 5:23 PM Chrisyee22 notifications@github.com wrote:

I am currently working on this.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/publiclab/plots2/issues/4932#issuecomment-475034023,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABfJ9t3zMlK2dycVz7p10RZW3ZrFICmks5vYqbHgaJpZM4bhzEI
.

@jywarren I would like to try this!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

grvsachdeva picture grvsachdeva  Â·  3Comments

keshavsethi picture keshavsethi  Â·  3Comments

milaaraujo picture milaaraujo  Â·  3Comments

shapironick picture shapironick  Â·  3Comments

first-timers[bot] picture first-timers[bot]  Â·  3Comments