Changeset fe6aac9 in Klonkt for src/views/pages/admin-updates.ejs


Ignore:
Timestamp:
06/23/2026 04:27:27 PM (3 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
475eeda
Parents:
d5e78f7
Message:

feat: Updates page shows the last 5 changes (git log)

Admin -> Updates now shows a 'Recent changes' card with the 5 newest commits
on main (message + date), so you can see what you're getting before updating.
i18n NL/EN/DE (aupd.changes_heading).

Co-Authored-By: Claude <noreply@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/views/pages/admin-updates.ejs

    rd5e78f7 rfe6aac9  
    5151    </p>
    5252  </section>
     53
     54  <% if (changes && changes.length) { %>
     55  <section class="set-card" style="margin-top:1rem">
     56    <h2><%= t('aupd.changes_heading') %></h2>
     57    <ul class="upd-changes">
     58      <% changes.forEach(function (c) { %>
     59        <li><span class="upd-ch-date"><%= c.date %></span> <span class="upd-ch-msg"><%= c.msg %></span></li>
     60      <% }) %>
     61    </ul>
     62  </section>
     63  <% } %>
    5364</div>
    5465
     
    7283.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
    7384.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
     85.upd-changes { list-style: none; padding: 0; margin: 0; }
     86.upd-changes li { display: flex; gap: .7rem; padding: .45rem 0; border-bottom: 1px solid var(--rule); font-size: .9rem; align-items: baseline; }
     87.upd-changes li:last-child { border-bottom: 0; }
     88.upd-ch-date { color: var(--ink-muted); flex-shrink: 0; font-size: .8rem; font-variant-numeric: tabular-nums; }
     89.upd-ch-msg { word-break: break-word; }
    7490</style>
Note: See TracChangeset for help on using the changeset viewer.