Changeset 851239c in Klonkt for src/views/pages
- Timestamp:
- 06/15/2026 01:37:31 AM (3 months ago)
- Branches:
- main
- Children:
- 1907a18
- Parents:
- e6888ca
- File:
-
- 1 edited
-
src/views/pages/post-edit.ejs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/views/pages/post-edit.ejs
re6888ca r851239c 9 9 // and styling changed. 10 10 const _hasCover = !!post.cover_image_url; 11 // In hub-modus moeten save/create/cancel de /user/<slug>/-prefix dragen, anders 12 // valt de request terug op de primaire site (siteUrlBase leeg) en rendert de 13 // post na opslaan headerless (bareChrome). In solo is _base leeg. 14 const _base = (typeof siteUrlBase !== 'undefined' && siteUrlBase) ? siteUrlBase : ''; 11 15 %> 12 16 <div class="container post-edit-page"> 13 17 <h1><%= isNew ? 'Nieuwe post' : 'Post bewerken' %></h1> 14 18 15 <form method="post" action="<%= isNew ? '/posts/create' : '/posts/' + post.slug + '/save' %>" class="post-edit-form">19 <form method="post" action="<%= _base %><%= isNew ? '/posts/create' : '/posts/' + post.slug + '/save' %>" class="post-edit-form"> 16 20 17 21 <%# ── IDENTITY ─────────────────────────────────────────────── %> … … 184 188 <%# ── ACTIONS (sticky at bottom) ──────────────────────────── %> 185 189 <div class="pe-actions"> 186 <a href="<%= isNew ? '/' : '/' + post.slug %>" class="pe-btn">Annuleren</a>190 <a href="<%= _base %><%= isNew ? '/' : '/' + post.slug %>" class="pe-btn">Annuleren</a> 187 191 <div class="pe-actions-spacer"></div> 188 192 <% if (!isNew && post.status !== 'published') { %>
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)