Changeset 1f0c85b in Klonkt for src/views/partials/post-tile.ejs


Ignore:
Timestamp:
06/20/2026 01:28:36 AM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
d188736
Parents:
dfc5379
Message:

ui(grid): show source site on hover on circle feed tiles

Grid tiles now show "from <site>" (post.source_name) in the hover overlay
(and on gradient tiles below the title), so in the circle feed it is clear
which site a post comes from. style.css?v=14.

Co-Authored-By: Claude <noreply@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/views/partials/post-tile.ejs

    rdfc5379 r1f0c85b  
    77const _hasCover = !!post.cover_image_url;
    88const _typeLabel = (post.type && post.type !== 'post') ? post.type : '';
     9const _src = post.source_name || '';   // bron-site (cirkel-feed: van welke site komt deze post)
    910const _base = (typeof siteUrlBase !== 'undefined' && siteUrlBase) ? siteUrlBase : '';
    1011const _external = post.external_url || null;
     
    2728    <div class="grid-tile-overlay">
    2829      <strong><%= post.title || '(untitled)' %></strong>
     30      <% if (_src) { %><span class="grid-tile-overlay-src">van <%= _src %></span><% } %>
    2931    </div>
    3032  <% } else { %>
    3133    <span class="grid-tile-title"><%= post.title || '(untitled)' %></span>
     34    <% if (_src) { %><span class="grid-tile-gradient-src">van <%= _src %></span><% } %>
    3235  <% } %>
    3336</a>
Note: See TracChangeset for help on using the changeset viewer.