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

simba77
feat(admin): repeat the buttons of a form under it
The buttons that finish a form are a component of the panel (form-buttons) used in the head of the page, and form-footer repeats them under the form, so a long form is saved where it ends. A form opts into a sticky footer that stays at the bottom of the screen; the ad, role and article forms do. Used by the seven forms whose buttons sat in the head only.
simba77
revert(admin): drop the fixed bar of form buttons on phones
This reverts commit 15766191b: the buttons go under the form instead.
simba77
feat(admin): keep the buttons of a form at the bottom of a phone screen
On a narrow screen the head actions holding the submit button of a form become a bar fixed at the bottom, so a long form is saved without scrolling back up. Pages whose head has no such button keep their actions in the head.
simba77
feat(admin): start an ad over
A link with a hit or day limit gets Start over in its row menu: its hits are reset, its days are counted from now, and it is shown again. A link whose limit is used up can be brought back this way without raising the limit, and the refusal to turn one on now says so.
simba77
docs(admin): write the comments of the ads in English
simba77
feat(admin): lay out the ad form in two columns with a preview
The address, titles, color and limits take the main column; who sees the link, where and on which pages, and its styling sit in a narrow one. A color picker follows the hex field, and a preview shows the first title with the chosen color and style. The hints say plainly what the titles, limits and direct link do; a new link starts with an empty address instead of http://, and Cancel returns to the list of its place.
simba77
feat(admin): confirm deleting an ad in a dialog
Deleting one link asks in the modal of the panel, like clearing the inactive ones, and names the link it removes; a plain visit gets the same dialog as a page. The list comes back at the page the link was deleted from.
simba77
feat(admin): rework the advertising list
The list fits the screen: the place column is gone (the tabs already split by place), the title is shown in its own color and style, with the other rotating titles as a counter. Who sees a link and on which pages share one column, hits and the period another. The status tells a shown link from a hidden one and from one whose limit is used up. Moving, hiding and deleting sit in the row menu; moving is offered only where it does something.

A link whose hits or days are used up is not turned back on: the site would hide it again, so the panel asks to raise the limit. Actions return to the page they were taken on and say what they did; the tabs count the links of every place. On a phone a row becomes a card.
simba77
fix(admin): accept only http(s) addresses and hex colors for ads
The ad form goes through the validator: the link must be an absolute http(s) address, the title is required, and the color is six hexadecimal digits (a pasted # is dropped). Errors are shown next to their fields. The site skips an ad whose saved address has another scheme, so an old javascript: link is never printed.

New validator rules: WebAddress and Pattern.
simba77
feat(contacts): rearrange the message page and panel
The message page and the panel share one layout: the text, the sender, then the status, dates and technical details. Actions are ordered delete, reply, mark as processed; the page gets a link back to the list below the cards. A status has its own strings (New message, Processed message) apart from the filter tabs. The message list passes its base URL to the rows instead of hardcoding it.