- Timestamp:
- 06/28/2026 01:15:39 PM (2 months ago)
- Branches:
- main
- Children:
- 9910ba1
- Parents:
- 931b4cb
- File:
-
- 1 edited
-
src/views/pages/account.ejs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/views/pages/account.ejs
r931b4cb rcca2e89 27 27 28 28 <div class="ax-profile-id"> 29 <% if (canMutate) { %> 30 <form action="/account/avatar" method="post" enctype="multipart/form-data" class="ax-avatar-form"> 31 <label class="ax-avatar-wrap" title="<%= t('acct.avatar_change') %>"> 32 <span class="ax-profile-avatar"> 33 <% var _av = account.avatar_url || (typeof siteAvatar !== 'undefined' ? siteAvatar : null); %> 34 <% if (_av) { %> 35 <img src="<%= _av %>" alt=""> 36 <% } else { %> 37 <span><%= account.username.charAt(0).toUpperCase() %></span> 38 <% } %> 39 </span> 40 <span class="ax-avatar-edit" aria-hidden="true"> 41 <svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"/><circle cx="12" cy="13" r="4"/></svg> 42 </span> 43 <input type="file" name="avatar" accept="image/jpeg,image/png,image/webp,image/gif" onchange="this.form.submit()" hidden> 44 </label> 45 </form> 46 <% } else { %> 47 <span class="ax-profile-avatar ax-profile-avatar-static"> 48 <% var _av2 = account.avatar_url || (typeof siteAvatar !== 'undefined' ? siteAvatar : null); %> 49 <% if (_av2) { %> 50 <img src="<%= _av2 %>" alt=""> 51 <% } else { %> 52 <span><%= account.username.charAt(0).toUpperCase() %></span> 53 <% } %> 54 </span> 55 <% } %> 29 <span class="ax-profile-avatar ax-profile-avatar-static"> 30 <% var _av = (typeof siteAvatar !== 'undefined' ? siteAvatar : null); %> 31 <% if (_av) { %> 32 <img src="<%= _av %>" alt=""> 33 <% } else { %> 34 <span><%= account.username.charAt(0).toUpperCase() %></span> 35 <% } %> 36 </span> 56 37 <div class="ax-profile-meta"> 57 38 <div class="ax-profile-name"><%= account.username %></div> … … 60 41 <div class="ax-profile-joined"><%= t('acct.member_since') %> <%= formatDate(account.created_at) %></div> 61 42 <% } %> 62 <% if (account.avatar_url && canMutate) { %> 63 <form action="/account/avatar/remove" method="post" class="ax-avatar-remove"> 64 <button type="submit" class="ax-linkbtn"><%= t('acct.avatar_remove') %></button> 65 </form> 43 <% if (canMutate) { %> 44 <div class="ax-profile-joined"><%- t('acct.photo_site_hint') %></div> 66 45 <% } %> 67 46 </div>
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)