sbrl / Pepperminty-Wiki

A wiki in a box
https://peppermint.mooncarrot.space/
Mozilla Public License 2.0
177 stars 20 forks source link

Feature request: Delete pages without needing to open them first. #208

Open virtadpt opened 3 years ago

virtadpt commented 3 years ago

Situation: For some reason I had a new page that would cause Pepperminty Wiki to return zero length responses and left HTTP 500 errors in the server logs. I was able to delete the page manually (by removing the Markdown files in the datastore) but unfortunately this had a few side effects:

There does not seem to be a direct way of deleting the page without being able to load the page, click on the "More..." menu, and select the Delete option therein. Looking at the global page list and Recent Pages admin pages, however, offer little pencil emoji that, when hovering the cursor of them denotes the last user that edited the page.

It would be very handy for there to be a "delete this page" icon next to each link, perhaps a red trashcan emoji, maybe something else, that would make it possible to cleanly delete dodgy pages in the wiki.

sbrl commented 3 years ago

Hrm, interesting idea. Since we have a thing where if you don't append &delete=yes to an action=delete URL it shows you an "are you sure?", then this should be safe enough to add.

Adding it to the page list will also result in it appearing in all page lists across the wiki too - e.g. in lists of pages with ha particular tag for example.

I've slated this for implementation in v0.23.