Changeset 746d98a in Klonkt for src/views/pages/account.ejs
- Timestamp:
- 09/30/2026 09:08:48 AM (2 hours ago)
- Branches:
- main
- Parents:
- 31680c3
- File:
-
- 1 edited
-
src/views/pages/account.ejs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/views/pages/account.ejs
r31680c3 r746d98a 113 113 </form> 114 114 </section> 115 <% } %> 116 117 <%# ── PROFIELLINKS ─────────────────────────────────────────── 118 Sinds 30-9 hier, bij je profiel, en niet meer op de Appearance-pagina: ze 119 horen bij je naam, bio en foto. In de wardmodus is dat profiel het enige 120 dat een bezoeker van de site ziet. %> 121 <% if (typeof editableSite !== 'undefined' && editableSite && canMutate) { %> 122 <section class="ax-card" id="links"> 123 <div class="ax-card-title"><%= t('asite.links') %></div> 124 <p class="form-hint"><%= t('asite.links_hint') %></p> 125 <form action="/account/links" method="post" class="ax-form"> 126 <div id="profile-links-rows"> 127 <% (profileLinks || []).forEach(function (l) { %> 128 <div class="profile-link-row"> 129 <select name="profile_link_platform[]" aria-label="<%= t('acct.link_platform') %>"> 130 <% platforms.forEach(function (p) { %> 131 <option value="<%= p.key %>" <%= l.platform === p.key ? 'selected' : '' %>><%= p.label %></option> 132 <% }); %> 133 </select> 134 <input type="text" name="profile_link_url[]" value="<%= l.url %>" placeholder="https://…" required aria-label="<%= t('acct.link_url') %>"> 135 <button type="button" class="ax-btn pl-remove" aria-label="<%= t('acct.link_remove') %>">×</button> 136 </div> 137 <% }); %> 138 </div> 139 <template id="profile-link-template"> 140 <div class="profile-link-row"> 141 <select name="profile_link_platform[]" aria-label="<%= t('acct.link_platform') %>"> 142 <% platforms.forEach(function (p) { %> 143 <option value="<%= p.key %>"><%= p.label %></option> 144 <% }); %> 145 </select> 146 <input type="text" name="profile_link_url[]" placeholder="https://…" required aria-label="<%= t('acct.link_url') %>"> 147 <button type="button" class="ax-btn pl-remove" aria-label="<%= t('acct.link_remove') %>">×</button> 148 </div> 149 </template> 150 <div class="ax-form-actions"> 151 <button type="button" id="profile-link-add" class="ax-btn"><%= t('asite.link_add') %></button> 152 <button type="submit" class="ax-btn ax-btn-primary"><%= t('acct.links_save') %></button> 153 </div> 154 </form> 155 </section> 156 <style> 157 .profile-link-row { display: grid; grid-template-columns: 1fr auto; gap: .5rem; margin-bottom: .5rem; } 158 .profile-link-row select { padding: .45rem .6rem; grid-column: 1 / -1; } 159 .profile-link-row input { min-width: 0; } 160 @media (min-width: 520px) { 161 .profile-link-row { grid-template-columns: 160px 1fr auto; } 162 .profile-link-row select { grid-column: auto; } 163 } 164 </style> 115 165 <% } %> 116 166
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)