24 lines
643 B
Plaintext
24 lines
643 B
Plaintext
<%- 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') %> |