Changeset eb2fe08 in Klonkt
- Timestamp:
- 06/25/2026 10:37:09 PM (3 months ago)
- Branches:
- main
- Children:
- 283f618
- Parents:
- 6cabd18
- File:
-
- 1 edited
-
src/views/partials/profile-header.ejs (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/views/partials/profile-header.ejs
r6cabd18 reb2fe08 68 68 <% } %> 69 69 70 <% if (_profileLinks.length) { %> 70 <%# Follow-via-fediverse: a compact icon in the links row (keeps the header 71 short), and hidden for the owner — you don't follow yourself. %> 72 <% var _showFollow = (typeof canManageFedi === 'undefined' || !canManageFedi) && site && site.slug; %> 73 <% if (_profileLinks.length || _showFollow) { %> 71 74 <% const _platforms = (typeof platforms_catalog !== 'undefined' && platforms_catalog) || {}; %> 72 75 <ul class="profile-links" aria-label="External links"> … … 86 89 </li> 87 90 <% }); %> 91 <% if (_showFollow) { %> 92 <li> 93 <button type="button" class="profile-link profile-fedi-link" data-fedi-actor-slug="<%= site.slug %>" 94 aria-label="<%= t('fedi.profile_follow') %>" title="<%= t('fedi.profile_follow') %>">🐘</button> 95 </li> 96 <% } %> 88 97 </ul> 89 98 <% } %> 90 91 <button type="button" class="profile-fedi-btn" data-fedi-actor-slug="<%= site.slug %>">92 🐘 <%= t('fedi.profile_follow') %>93 </button>94 99 </div> 95 100 … … 101 106 window.__pcmsFediFollowWired = true; 102 107 document.addEventListener('click', function (e) { 103 var b = e.target.closest && e.target.closest('.profile-fedi- btn');108 var b = e.target.closest && e.target.closest('.profile-fedi-link'); 104 109 if (!b) return; 105 110 var raw = window.prompt(<%- JSON.stringify(t('fedi.remote_prompt')) %>, ''); … … 272 277 .on-archive .profile-links { display: none; } 273 278 274 /* Follow-via-fediverse button */ 275 .profile-fedi-btn { 276 margin-top: 0.65rem; 277 display: inline-flex; align-items: center; gap: 0.4rem; 278 padding: 0.4rem 0.85rem; 279 border: 1px solid var(--rule); 280 border-radius: 999px; 281 background: var(--paper-2); 282 color: var(--ink-soft); 283 font: inherit; font-size: 0.85rem; font-weight: 600; 284 cursor: pointer; 285 transition: border-color 120ms, color 120ms, background 120ms; 286 } 287 .profile-fedi-btn:hover { border-color: var(--accent); color: var(--ink); } 288 .on-post .profile-fedi-btn, 289 .on-special .profile-fedi-btn, 290 .on-search .profile-fedi-btn, 291 .on-archive .profile-fedi-btn { display: none; } 279 /* Follow-via-fediverse: compact icon button, sits in the links row */ 280 .profile-fedi-link { border: 0; font: inherit; font-size: 18px; line-height: 1; cursor: pointer; } 292 281 </style>
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)