training/views/changelog.ejs

24 lines
643 B
Plaintext
Raw Normal View History

2024-05-30 19:24:40 +02:00
<%- include('partials/header') %>
<h1>Changelog</h1>
<% if (session.userName==='klaas') { %>
<form method="post" action="/changelog">
<input name="title">
<textarea name="body"></textarea>
<button type="submit" class="btn btn-success">Speichern</button>
</form>
<% } %>
<% changes.forEach(change => { %>
<% date = new Date(change.datetime) %>
<div>
<strong><u> <%= change.title %> </strong><%= date.getDate() %>.<%= date.getMonth() + 1 %>.<%= date.getFullYear() %> - <%= date.getHours() %>:<%= date.getMinutes() %></u>
<p> <%= change.body %> </p>
</div>
<% }) %>
</body>
</html>
<%- include('partials/footer') %>