Changeset 46f3dd6 in Klonkt for src/views/pages
- Timestamp:
- 06/26/2026 09:05:28 AM (2 months ago)
- Branches:
- main
- Children:
- 8ef8c3e
- Parents:
- 2c22bb5
- Location:
- src/views/pages
- Files:
-
- 1 added
- 1 edited
-
timeline.ejs (modified) (1 diff)
-
volgend.ejs (added)
Legend:
- Unmodified
- Added
- Removed
-
src/views/pages/timeline.ejs
r2c22bb5 r46f3dd6 2 2 <h1 class="tl-title"><%= t('tl.title') %></h1> 3 3 <p class="tl-lead"><%= t('tl.lead') %></p> 4 <%- include('../partials/tl-tabs', { active: 'feed' }) %> 4 5 <% if (typeof success !== 'undefined' && success) { %><div class="alert alert-success"><%= success %></div><% } %> 5 6 <% if (typeof error !== 'undefined' && error) { %><div class="alert alert-error"><%= error %></div><% } %> 6 7 7 <form method="post" action="/tijdlijn/follow" class="tl-follow">8 <input type="text" name="handle" placeholder="@naam@server.social" autocomplete="off" spellcheck="false" required>9 <button type="submit" class="btn btn-primary"><%= t('tl.follow_btn') %></button>10 <label class="tl-follow-ab" title="<%= t('tl.autoboost_hint') %>"><input type="checkbox" name="auto_boost" value="1"> 🔁 <%= t('tl.autoboost_follow') %></label>11 </form>12 13 <% if (following && following.length) { %>14 <h2 class="tl-sub"><%= t('tl.following') %> (<%= following.length %>)</h2>15 <ul class="tl-foll-list">16 <% following.forEach(function(f){ %>17 <li class="tl-foll">18 <span class="tl-foll-av"><% if (f.icon) { %><img src="<%= f.icon %>" alt=""><% } else { %><%= (f.name || '?').charAt(0).toUpperCase() %><% } %></span>19 <span class="tl-foll-meta">20 <a href="<%= f.url || f.actor_uri %>" target="_blank" rel="nofollow noopener"><%= f.name || f.handle %></a>21 <span class="tl-foll-handle"><%= f.handle %></span>22 <% if (f.status === 'pending') { %><span class="tl-pending"><%= t('tl.pending') %></span><% } %>23 </span>24 <form method="post" action="/tijdlijn/autoboost" class="tl-foll-ab" title="<%= t('tl.autoboost_hint') %>">25 <input type="hidden" name="actor_uri" value="<%= f.actor_uri %>">26 <label><input type="checkbox" name="auto_boost" value="1" <%= f.auto_boost ? 'checked' : '' %> onchange="this.form.submit()"> 🔁 <%= t('tl.autoboost') %></label>27 </form>28 <form method="post" action="/tijdlijn/unfollow"><input type="hidden" name="actor_uri" value="<%= f.actor_uri %>"><button type="submit" class="tl-unfollow"><%= t('tl.unfollow') %></button></form>29 </li>30 <% }); %>31 </ul>32 <% } %>33 34 <h2 class="tl-sub"><%= t('tl.feed') %></h2>35 8 <% if (!timeline || !timeline.length) { %> 36 9 <p class="tl-empty"><%= t('tl.empty') %></p>
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)