plots2 icon indicating copy to clipboard operation
plots2 copied to clipboard

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

Open jywarren opened this issue 7 years ago • 9 comments

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

jywarren avatar Mar 06 '19 20:03 jywarren

Hi @jywarren. Could I work on this?

Chrisyee22 avatar Mar 06 '19 23:03 Chrisyee22

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

On Wed, Mar 6, 2019 at 6:42 PM Chrisyee22 [email protected] 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 .

jywarren avatar Mar 07 '19 00:03 jywarren

Hello @jywarren. may i work on this issue ?

yash98gupta avatar Mar 08 '19 14:03 yash98gupta

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

Chrisyee22 avatar Mar 08 '19 15:03 Chrisyee22

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!

grvsachdeva avatar Mar 08 '19 16:03 grvsachdeva

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

divyabaid16 avatar Mar 20 '19 19:03 divyabaid16

I am currently working on this.

Chrisyee22 avatar Mar 20 '19 21:03 Chrisyee22

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 [email protected] 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 avatar Mar 21 '19 03:03 jywarren

@jywarren I would like to try this!

Manasa2850 avatar Feb 06 '21 19:02 Manasa2850