Changeset f6c414e in Klonkt for src/views/pages
- Timestamp:
- 06/24/2026 04:37:32 PM (3 months ago)
- Branches:
- main
- Children:
- 9cc0f9f
- Parents:
- 434c2e9
- Location:
- src/views/pages
- Files:
-
- 2 edited
-
post.ejs (modified) (2 diffs)
-
timeline.ejs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/views/pages/post.ejs
r434c2e9 rf6c414e 33 33 <% if (post.status === 'published') { %> 34 34 <div class="post-like-row"> 35 <%- include('../partials/like-button', { post: post, likedByMe: (typeof likedByMe !== 'undefined' && likedByMe), likeCount: (typeof likeCount !== 'undefined' ? likeCount : 0), loggedIn: !!user, loginNext: _base + '/' + post.slug}) %>35 <%- include('../partials/like-button', { post: post, noteUri: (typeof ogOrigin !== 'undefined' && ogOrigin ? ogOrigin : '') + (typeof _base !== 'undefined' && _base ? _base : '') + '/' + post.slug, fediLikeCount: (typeof fediverse !== 'undefined' && fediverse ? fediverse.likeCount : 0), fediPh: t('fedi.remote_ph') }) %> 36 36 </div> 37 37 <% } %> … … 127 127 + '<button type="submit" class="btn btn-primary fedi-remote-go" aria-label="ok">→</button>' 128 128 + '<button type="button" class="fedi-remote-cancel" aria-label="x">×</button>'; 129 f.querySelector('input').placeholder = b.getAttribute('data-fedi-ph') || ' @name@server.social';129 f.querySelector('input').placeholder = b.getAttribute('data-fedi-ph') || 'mastodon.social'; 130 130 document.body.appendChild(f); // floating popover → no layout reflow 131 131 place(f, b); current = f; currentBtn = b; -
src/views/pages/timeline.ejs
r434c2e9 rf6c414e 111 111 var f = document.createElement('form'); f.className='fedi-remote-form'; f.dataset.uri = b.getAttribute('data-fedi-uri')||''; 112 112 f.innerHTML = '<input type="text" autocomplete="off" spellcheck="false"><button type="submit" class="btn btn-primary fedi-remote-go" aria-label="ok">→</button><button type="button" class="fedi-remote-cancel" aria-label="x">×</button>'; 113 f.querySelector('input').placeholder = b.getAttribute('data-fedi-ph') || ' @name@server.social';113 f.querySelector('input').placeholder = b.getAttribute('data-fedi-ph') || 'mastodon.social'; 114 114 document.body.appendChild(f); place(f, b); current=f; currentBtn=b; f.querySelector('input').focus(); 115 115 return;
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)