Changeset 137cca5 in Klonkt for src/views/pages
- Timestamp:
- 06/21/2026 11:35:49 AM (3 months ago)
- Branches:
- main
- Children:
- fe86013
- Parents:
- bffb348
- Location:
- src/views/pages
- Files:
-
- 3 edited
-
auth-login.ejs (modified) (4 diffs)
-
auth-register.ejs (modified) (2 diffs)
-
welcome.ejs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/views/pages/auth-login.ejs
rbffb348 r137cca5 7 7 %> 8 8 <div class="container auth-page"> 9 <h1><%= _admin ? 'Beheerder inloggen' : 'Inloggen'%></h1>9 <h1><%= _admin ? t('auth.admin_login_title') : t('nav.login') %></h1> 10 10 <% if (typeof success !== 'undefined' && success) { %><div class="alert alert-success"><%= success %></div><% } %> 11 11 <% … … 38 38 <% } %> 39 39 <label> 40 <span> Gebruikersnaam of e-mail</span>40 <span><%= t('auth.username_or_email') %></span> 41 41 <input type="text" name="username" value="<%= username %>" required autofocus autocomplete="username"> 42 42 </label> 43 43 <label> 44 <span> Wachtwoord</span>44 <span><%= t('auth.password') %></span> 45 45 <input type="password" name="password" required autocomplete="current-password"> 46 46 </label> 47 <button type="submit" class="btn btn-primary"> Inloggen</button>48 <p class="auth-link auth-link-muted"><a href="/auth/reset-request"> Wachtwoord vergeten?</a></p>47 <button type="submit" class="btn btn-primary"><%= t('nav.login') %></button> 48 <p class="auth-link auth-link-muted"><a href="/auth/reset-request"><%= t('auth.forgot') %></a></p> 49 49 </form> 50 50 <% } else if (googleReady) { %> 51 51 <%# Publieke login: alleen Google, voor luisteraars/fans. %> 52 <p class="auth-sub"> Log in om te reageren en je favorieten te bewaren.</p>52 <p class="auth-sub"><%= t('auth.public_sub') %></p> 53 53 <a class="btn btn-google" href="/auth/google<%= (typeof next !== 'undefined' && next) ? '?next=' + encodeURIComponent(next) : '' %>"> 54 54 <svg class="g-icon" width="18" height="18" viewBox="0 0 18 18" aria-hidden="true"> … … 58 58 <path fill="#EA4335" d="M9 3.58c1.32 0 2.5.45 3.44 1.35l2.58-2.58A9 9 0 0 0 .96 4.95l3.01 2.33C4.68 5.16 6.66 3.58 9 3.58z"/> 59 59 </svg> 60 <span> Inloggen met Google</span>60 <span><%= t('auth.google_btn') %></span> 61 61 </a> 62 62 <% } else { %> 63 <div class="alert"> Inloggen met Google is op deze site nog niet ingesteld.</div>63 <div class="alert"><%= t('auth.google_unavail') %></div> 64 64 <% } %> 65 65 … … 69 69 <span class="auth-admin-box-icon" aria-hidden="true">🔑</span> 70 70 <span class="auth-admin-box-text"> 71 <strong> Beheerder?</strong>72 <small> Log in met gebruikersnaam & wachtwoord</small>71 <strong><%= t('auth.admin_box_q') %></strong> 72 <small><%= t('auth.admin_box_sub') %></small> 73 73 </span> 74 74 <span class="auth-admin-box-arrow" aria-hidden="true">→</span> -
src/views/pages/auth-register.ejs
rbffb348 r137cca5 1 1 <div class="container auth-page"> 2 <h1> Beheerder aanmaken</h1>3 <p class="auth-intro"> Eerste keer opzetten — maak je beheerdersaccount aan. Dit kan maar één keer.</p>2 <h1><%= t('auth.create_admin') %></h1> 3 <p class="auth-intro"><%= t('auth.reg_intro') %></p> 4 4 <% if (error) { %><div class="alert alert-error"><%= error %></div><% } %> 5 5 <form method="post" action="/auth/register" class="auth-form"> … … 8 8 <% } %> 9 9 <label> 10 <span> Gebruikersnaam (3-32 tekens, letters/cijfers/_-)</span>10 <span><%= t('auth.f_username') %></span> 11 11 <input type="text" name="username" value="<%= username %>" required autofocus autocomplete="username" pattern="[a-zA-Z0-9_-]{3,32}"> 12 12 </label> 13 13 <label> 14 <span> E-mail</span>14 <span><%= t('auth.f_email') %></span> 15 15 <input type="email" name="email" value="<%= email %>" required autocomplete="email"> 16 16 </label> 17 17 <label> 18 <span> Wachtwoord (min 8 tekens)</span>18 <span><%= t('auth.f_password') %></span> 19 19 <input type="password" name="password" required minlength="8" autocomplete="new-password"> 20 20 </label> 21 <button type="submit" class="btn btn-primary"> Beheerder aanmaken</button>21 <button type="submit" class="btn btn-primary"><%= t('auth.create_admin') %></button> 22 22 </form> 23 23 </div> -
src/views/pages/welcome.ejs
rbffb348 r137cca5 1 1 <div class="container welcome-page"> 2 <h1> Welcome to Klonkt</h1>3 <p class="welcome-tagline"> A self-hosted publishing platform.</p>4 2 <h1><%= t('welcome.title') %></h1> 3 <p class="welcome-tagline"><%= t('welcome.tagline') %></p> 4 5 5 <% if (!user) { %> 6 6 <div class="welcome-actions"> 7 <a href="/auth/register" class="btn btn-primary"> Beheerder aanmaken</a>8 <a href="/auth/login" class="btn"> Al een account? Inloggen</a>7 <a href="/auth/register" class="btn btn-primary"><%= t('auth.create_admin') %></a> 8 <a href="/auth/login" class="btn"><%= t('welcome.have_account') %></a> 9 9 </div> 10 <p class="welcome-note"> Maak je beheerdersaccount aan om te beginnen — daarna is registratie gesloten.</p>10 <p class="welcome-note"><%= t('welcome.note') %></p> 11 11 <% } else { %> 12 <p> Hi <%= user.username %>! No site is configured yet.</p>12 <p><%= t('welcome.nosite', { user: user.username }) %></p> 13 13 <% } %> 14 14 </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)