- Timestamp:
- 06/30/2026 01:38:13 PM (2 months ago)
- Branches:
- main
- Children:
- 5924bbf
- Parents:
- 8b700ad
- Location:
- src/views/pages
- Files:
-
- 2 edited
-
circle-feed.ejs (modified) (3 diffs)
-
following.ejs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/views/pages/circle-feed.ejs
r8b700ad rd8e3ff7 14 14 </span> 15 15 <h1><%= t('cfeed.title') %></h1> 16 <p class="cirkel-sub"><%= (typeof activeName !== 'undefined' && activeName) ? activeName : t('cfeed.sub') %></p> 17 <% var _everyoneActive = (typeof activeActor === 'undefined' || !activeActor); %> 16 <p class="cirkel-sub"><%= t('cfeed.sub') %></p> 18 17 <% if (typeof sites !== 'undefined' && sites && sites.length) { %> 19 18 <% if (sites.length <= 5) { %> 20 19 <div class="cirkel-members"> 21 <a class="cirkel-member cirkel-everyone <%= _everyoneActive ? 'is-active' : '' %>" href="/cirkel"><span class="cirkel-member-name"><%= t('cfeed.all') %></span></a>22 20 <% sites.forEach(function(s){ %> 23 <% if (s. actor_uri) { %><a class="cirkel-member <%= s.active ? 'is-active' : '' %>" href="/cirkel?actor=<%= encodeURIComponent(s.actor_uri) %>" title="<%= s.name %>"><% } else { %><span class="cirkel-member" title="<%= s.name %>"><% } %>21 <% if (s.url) { %><a class="cirkel-member" href="<%= s.url %>" target="_blank" rel="noopener" title="<%= s.name %>"><% } else { %><span class="cirkel-member" title="<%= s.name %>"><% } %> 24 22 <span class="cirkel-avatar"<% if (s.avatar) { %> style="background-image:url('<%= s.avatar %>');background-color:transparent"<% } %>><% if (!s.avatar) { %><%= (s.name || '?').charAt(0).toUpperCase() %><% } %></span> 25 23 <span class="cirkel-member-name"><%= s.name %></span> 26 <% if (s. actor_uri) { %></a><% } else { %></span><% } %>24 <% if (s.url) { %></a><% } else { %></span><% } %> 27 25 <% }); %> 28 26 </div> … … 40 38 <h2 class="cirkel-modal-h"><%= t('cfeed.count', { n: sites.length }) %></h2> 41 39 <ul class="cirkel-modal-list"> 42 <li>43 <a class="cirkel-modal-link <%= _everyoneActive ? 'is-active' : '' %>" href="/cirkel">44 <span class="cirkel-member-name"><%= t('cfeed.all') %></span>45 </a>46 </li>47 40 <% sites.forEach(function(s){ %> 48 41 <li> 49 <% if (s. actor_uri) { %><a class="cirkel-modal-link <%= s.active ? 'is-active' : '' %>" href="/cirkel?actor=<%= encodeURIComponent(s.actor_uri) %>"><% } else { %><span class="cirkel-modal-link"><% } %>42 <% if (s.url) { %><a class="cirkel-modal-link" href="<%= s.url %>" target="_blank" rel="noopener"><% } else { %><span class="cirkel-modal-link"><% } %> 50 43 <span class="cirkel-avatar"<% if (s.avatar) { %> style="background-image:url('<%= s.avatar %>');background-color:transparent"<% } %>><% if (!s.avatar) { %><%= (s.name || '?').charAt(0).toUpperCase() %><% } %></span> 51 44 <span class="cirkel-member-name"><%= s.name %></span> 52 <% if (s.actor_uri) { %></a><% } else { %></span><% } %> 45 <% if (s.url) { %><span class="cirkel-modal-go" aria-hidden="true">↗</span><% } %> 46 <% if (s.url) { %></a><% } else { %></span><% } %> 53 47 </li> 54 48 <% }); %> … … 104 98 transition: border-color .15s, transform .15s; } 105 99 .cirkel-member:hover { border-color: var(--accent); transform: translateY(-1px); } 106 .cirkel-member.is-active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); }107 .cirkel-everyone { padding: .28rem .9rem; }108 .cirkel-modal-link.is-active { background: color-mix(in srgb, var(--accent) 14%, transparent); }109 100 .cirkel-avatar { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; 110 101 background-size: cover; background-position: center; background-color: var(--accent); -
src/views/pages/following.ejs
r8b700ad rd8e3ff7 30 30 <label><input type="checkbox" name="auto_boost" value="1" <%= f.auto_boost ? 'checked' : '' %> data-autosubmit> ✨ <%= t('tl.autoboost') %></label> 31 31 </form> 32 <% if (f.auto_boost) { %><a class="tl-foll-show" href="/cirkel?actor=<%= encodeURIComponent(f.actor_uri) %>" title="<%= t('tl.show') %>"><%= t('tl.show') %></a><% } %>33 32 <form method="post" action="/news/unfollow"><input type="hidden" name="actor_uri" value="<%= f.actor_uri %>"><button type="submit" class="tl-unfollow"><%= t('tl.unfollow') %></button></form> 34 33 </li> … … 67 66 .tl-unfollow { background: none; border: 1px solid color-mix(in srgb, var(--ink, #000) 18%, transparent); border-radius: 8px; padding: .25rem .6rem; font-size: .8rem; color: var(--ink-soft, #888); cursor: pointer; } 68 67 .tl-unfollow:hover { color: var(--ink, #000); } 69 .tl-foll-show { font-size: .8rem; text-decoration: none; white-space: nowrap; color: var(--accent, #888);70 border: 1px solid color-mix(in srgb, var(--accent, #888) 35%, transparent); border-radius: 8px; padding: .25rem .6rem; }71 .tl-foll-show:hover { background: color-mix(in srgb, var(--accent, #888) 12%, transparent); }72 68 .tl-empty { color: var(--ink-soft, #888); } 73 69 </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)