История коммитов

simba77
feat(forum): delete a topic after the dialog and restore its files with it
A topic is deleted from the dialog of its page: hiding is the default, deleting for good is a choice shown only with forum.topic.destroy. The route takes RequireConfirmationMiddleware and the page delete-topic is gone.

Restoring a topic brings back the files of its posts in sight; they stayed hidden for good before. The files of posts hidden on their own stay hidden.
simba77
feat(forum): delete a post after the dialog and restore it by a form
A post is deleted from the dialog of the topic page; hiding is the default, deleting for good is a choice of the dialog shown only with forum.post.destroy, and the dialog warns when the post is the last one of the topic. The route takes RequireConfirmationMiddleware. Restoring a post is a plain form. The pages delete-post and restore-post are gone.
simba77
feat(forum): delete the chosen posts after the dialog
The chosen posts are deleted from the topic once the dialog is answered, without a page of its own in between; the route takes RequireConfirmationMiddleware and the result comes back as a toast. The boxes of the posts belong to the form by its id, so the posts no longer sit inside it.
simba77
fix(forum): take the files of bulk-hidden posts out of the list of files
Deleting the chosen posts hid the posts, or the whole topic when every post was chosen, but left their attached files in sight: the public list of files showed them with the text of their posts. The files now go out of sight with what is hidden, as they do when a post or a topic is deleted on its own.
simba77
fix(forum): hide the topic when every post of it is chosen for deletion
Deleting the chosen posts could hide every post of a topic and leave the topic in sight with nothing to show: its statistics went empty and the section and the topic answered with an error. Choosing every post still in sight now hides the topic instead and leaves the posts as they are, as hiding the last post one by one already does. Posts hidden before are not hidden again.
simba77
fix(forum): change topics and polls only from a form
Closing, pinning and restoring a topic, deleting the poll and deleting an answer of it no longer happen on opening an address: they are POST forms, and the two deletions ask in the dialog of the page (RequireConfirmationMiddleware). Deleting an answer has a route of its own, POST /forum/editvote/{id}/answers/{answer}/delete; the poll confirmation pages are gone.

A vote and a removed poll lead back to the topic and say so in a toast instead of a result page built from the referer. New Topic is a plain link.
simba77
fix: scroll to the form when an answer or a quote starts
The editor scrolls to its caret when focused, which stopped the smooth scroll to the form started just before it; the focus now comes first.
simba77
fix(comments): keep the comment answered when the form comes back with an error
The comment answered goes through the redirect with the text and is recalled above the form, if it is still in the discussion.
simba77
fix(guestbook): keep the entry answered when the form comes back with an error
A form sent without the script and refused by the validation lost the entry it answered, and the answer then went out without the link and the notification.
simba77
feat(guestbook): lay the actions of an entry out as under a comment
Editing and deleting are buttons of the row rather than a menu, and the address and the browser of an entry are behind the shield of the staff (components/moderator-meta.twig) instead of a line under it.