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

@ -0,0 +1,7 @@
<%= _("Results:") %>
<% i = 0 %><% vote.candidates.sort { |a, b| a.mj <=> b.mj }.reverse.each do |candidate| %><% i = i + 1 %>
<%= "#{i}. #{candidate.name}" %>
<% end %>
<%= _("Visit this link to see the full results:") %>
<%= "#{settings.base_url}votes/#{vote.secure_id}" %>