Changeset c901131 in Klonkt for src/views/pages/post.ejs
- Timestamp:
- 06/24/2026 02:59:22 PM (3 months ago)
- Branches:
- main
- Children:
- 77ccd5d
- Parents:
- 40cf2ef
- File:
-
- 1 edited
-
src/views/pages/post.ejs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/views/pages/post.ejs
r40cf2ef rc901131 94 94 <% var _postAbsUrl = (typeof ogOrigin !== 'undefined' && ogOrigin ? ogOrigin : '') + (typeof _base !== 'undefined' && _base ? _base : '') + '/' + post.slug; %> 95 95 <div class="post-fediverse-cta"> 96 <button type="button" class="btn fedi-remote-reply-btn" data-fedi-uri="<%= _postAbsUrl %>" data-fedi-p rompt="<%= t('fedi.remote_prompt') %>">96 <button type="button" class="btn fedi-remote-reply-btn" data-fedi-uri="<%= _postAbsUrl %>" data-fedi-ph="<%= t('fedi.remote_ph') %>"> 97 97 <svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="9 17 4 12 9 7"/><path d="M20 18v-2a4 4 0 0 0-4-4H4"/></svg> 98 98 <%= t('fedi.remote_reply') %> … … 118 118 f.className = 'fedi-remote-form'; 119 119 f.dataset.uri = b.getAttribute('data-fedi-uri') || ''; 120 f.innerHTML = '<input type="text" placeholder="@jij@mastodon.social"autocomplete="off" spellcheck="false">'121 + '<button type="submit" class="btn btn-primary fedi-remote-go" >→</button>'120 f.innerHTML = '<input type="text" autocomplete="off" spellcheck="false">' 121 + '<button type="submit" class="btn btn-primary fedi-remote-go" aria-label="ok">→</button>' 122 122 + '<button type="button" class="fedi-remote-cancel" aria-label="x">×</button>'; 123 var inp = f.querySelector('input'); 124 inp.placeholder = b.getAttribute('data-fedi-ph') || '@name@mastodon.social'; 123 125 b.parentNode.insertBefore(f, b.nextSibling); 124 f.querySelector('input').focus();126 inp.focus(); 125 127 }); 126 128 document.addEventListener('submit', function(e){
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)