Changeset 928d1c7 in Klonkt for src/views/pages
- Timestamp:
- 07/21/2026 01:06:47 AM (7 weeks ago)
- Branches:
- main
- Children:
- 9e9e6f9
- Parents:
- 61e3daf
- git-author:
- Robin <roboburr@…> (07/21/2026 01:06:45 AM)
- git-committer:
- Robin <roboburr@…> (07/21/2026 01:06:47 AM)
- Location:
- src/views/pages
- Files:
-
- 1 added
- 1 edited
-
paid-gate.ejs (added)
-
post-edit.ejs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/views/pages/post-edit.ejs
r61e3daf r928d1c7 367 367 <span>🔒 <%= t('pedit.fan_only_label') %></span> 368 368 </label> 369 <label class="pe-checkbox" style="margin-top:8px"> 370 <input type="checkbox" name="paid" value="1" id="pe-paid" <%= post.paid ? 'checked' : '' %>> 371 <span>💶 Betaalde post (supporters ontgrendelen met Patreon)</span> 372 </label> 373 <div id="pe-paid-price" style="margin:6px 0 0 26px;<%= post.paid ? '' : 'display:none' %>"> 374 <label style="font-size:.85rem;opacity:.8">Vereist steunbedrag (euro, leeg = standaard) 375 <input type="text" name="paid_min_eur" inputmode="decimal" style="width:100px" 376 value="<%= post.paid_min_cents ? (post.paid_min_cents/100).toFixed(2) : '' %>"> 377 </label> 378 </div> 379 <script nonce="<%= cspNonce %>"> 380 (function(){ var p=document.getElementById('pe-paid'), box=document.getElementById('pe-paid-price'); 381 if (p&&box&&!p.__wired){ p.__wired=true; p.addEventListener('change', function(){ box.style.display=p.checked?'':'none'; }); } })(); 382 </script> 369 383 <% var _scheduled = !!(post.publish_at && (post.status === 'scheduled' || Date.parse(String(post.publish_at).replace(' ', 'T')) > Date.now())); %> 370 384 <label class="pe-checkbox" style="margin-top:8px">
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)