Close votes automatically after 7 days

Closes #1
This commit is contained in:
ricola 2025-06-08 15:57:26 -06:00
parent cac94c2379
commit e474a9a8ea
14 changed files with 283 additions and 97 deletions

View file

@ -8,6 +8,15 @@
<script src="/Chart.bundle.js"></script>
<link rel="stylesheet" href="/style.css">
</head>
<script>
fetch('/timezone', {
method: 'post',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ timezone: Intl.DateTimeFormat().resolvedOptions().timeZone })
});
</script>
<body>
<% if current_user %>
<p><%= _("Logged in as %{email}.") % { email: current_user.email } %> <a href="/logout"><%= _("Logout") %></a></p>