diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-07-08 22:52:00 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-07-08 22:52:00 +0200 |
| commit | 168ff3f8b6037bc3c2b5bce74adac37e48366dac (patch) | |
| tree | 3d33fa85125266f3ec827528f73da4704b948f45 /app/views/custom/partials/_article.html.erb | |
| parent | 9427dc462e68eb4b902cd5b2ace5607b036504ef (diff) | |
Add the Status section to nodes#show and rebuild nodes#edit's action barerdgeist-revive-events
Retires content_for :subnavigation on nodes#show entirely -- Preview
was fully redundant with Links' own preview URLs in every state, and
Edit is now a permanent, always-rendered action inside the new Status
section rather than a link floating at the top, consistent with the
"action lives next to the info" pattern People already established
for Unlock. Status surfaces head/draft/autosave plainly and gates
Edit/Publish/Destroy/Discard on lock ownership specifically, not mere
lock presence -- @node.locked? alone would have blocked the lock
owner's own session, caught by the click-test and fixed here rather
than shipped.
nodes#edit's action bar is rebuilt to sit outside form_for (both
button_to calls render their own nested form, invalid HTML the
browser was silently stripping) with Save wired back in via
form="..." rather than needing to live inside the form tag at all.
Also brings the locked-and-ready-to-edit flash message, and the
visual polish from this session's click-test: consistent button
heights across the bordered and pill-shaped variants sharing a row,
spacing between Status's data and its actions, and error_messages
styling reusing the destructive-red vocabulary already established
elsewhere.
Diffstat (limited to 'app/views/custom/partials/_article.html.erb')
0 files changed, 0 insertions, 0 deletions
