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 b41a0d0417
14 changed files with 284 additions and 97 deletions

View file

@ -1,5 +1,9 @@
<h1><%= @vote.title %></h1>
<% if @vote.expire_on %>
<p><%= _("Closing date: #{format_date(@vote.expire_on)}") %></p>
<% end %>
<p><%= @vote.description %></p>
<h2><%= _("Your ratings") %></h2>
@ -39,7 +43,7 @@
<% end %>
</ul>
<% if @vote.users.exists?(current_user.id) %>
<% if @vote.users.exists?(current_user.id) and @vote.expire_on.nil? %>
<h3><%= _("Actions for organizers") %></h3>