Changeset 4885eab in Klonkt for src/views/pages/user.ejs
- Timestamp:
- 06/21/2026 03:05:14 PM (3 months ago)
- Branches:
- main
- Children:
- 5e61b17
- Parents:
- bbf9d1a
- File:
-
- 1 edited
-
src/views/pages/user.ejs (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/views/pages/user.ejs
rbbf9d1a r4885eab 19 19 <% } %> 20 20 <p class="user-stats"> 21 <%= posts.length %> post<%= posts.length === 1 ? '' : 's' %> on this site21 <%= posts.length %> <%= posts.length === 1 ? t('pusr.post_one') : t('pusr.post_many') %> <%= t('pusr.on_this_site') %> 22 22 <% if (totalPosts > posts.length) { %> 23 · <%= t otalPosts %> total23 · <%= t('pusr.total', { n: totalPosts }) %> 24 24 <% } %> 25 25 <% if (author.created_at) { %> 26 · joined <%= formatDate(author.created_at) %>26 · <%= t('pusr.joined', { date: formatDate(author.created_at) }) %> 27 27 <% } %> 28 28 </p> 29 29 <% if (user && user.id !== author.id && site && site.enable_prutter && (typeof tenancy !== 'undefined' && tenancy === 'hub') && (typeof premiumUnlocked === 'undefined' || premiumUnlocked)) { %> 30 30 <p class="user-actions"> 31 <a href="<%= siteUrlBase %>/prutter/new?to=<%= encodeURIComponent(author.username) %>" class="btn btn-primary">💬 Send DM</a>31 <a href="<%= siteUrlBase %>/prutter/new?to=<%= encodeURIComponent(author.username) %>" class="btn btn-primary">💬 <%= t('pusr.send_dm') %></a> 32 32 </p> 33 33 <% } %> … … 36 36 37 37 <% if (!posts.length) { %> 38 <p class="user-empty"> No posts on this site yet.</p>38 <p class="user-empty"><%= t('pusr.empty') %></p> 39 39 <% } else { %> 40 <h2 class="user-posts-heading"> Posts</h2>40 <h2 class="user-posts-heading"><%= t('pusr.posts_heading') %></h2> 41 41 <ol class="user-posts"> 42 42 <% posts.forEach(function(p) { %> … … 54 54 hx-get="/<%= p.slug %>?partial=1" hx-target="#pcms-main" hx-swap="innerHTML" 55 55 hx-push-url="/<%= p.slug %>" hx-indicator="#pcms-loading"> 56 <%= p.title || '(untitled)'%>56 <%= p.title || t('pusr.untitled') %> 57 57 </a> 58 58 </h3>
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)