main
|
Last change
on this file since 97bacf2 was 476d6e7, checked in by Robin <roboburr@…>, 8 weeks ago |
|
Spoor A step 3a: extract nsfw-veil partial (7 copies → 1)
The NSFW veil contents (🔞 label + reveal button) were copy-pasted in 7 spots
across post-card, post-tile, post.ejs (related) and news.ejs, each with its own
content_warning variable. Extract the identical inner block into
partials/nsfw-veil.ejs; each caller keeps its exact wrapper element, so the
rendered HTML is byte-identical (verified live: the homepage card emits the
same veil markup as before, both include paths resolve).
Co-Authored-By: Claude Opus 4.8 <noreply@…>
|
-
Property mode
set to
100644
|
|
File size:
380 bytes
|
| Line | |
|---|
| 1 | <%# NSFW veil contents (label + reveal button). The caller supplies the wrapper
|
|---|
| 2 | element (<span|div> class="nsfw-veil"), which stays as-is so nothing shifts.
|
|---|
| 3 | Param: cw = the post's content_warning (may be empty → generic warning). %><span class="nsfw-veil-label">🔞 <%= cw || t('post.nsfw_warning') %></span><span class="nsfw-veil-btn"><%= t('post.nsfw_show') %></span> |
|---|
Note:
See
TracBrowser
for help on using the repository browser.