Add admin panel for users and votes

Closes #2
This commit is contained in:
ricola 2025-06-08 20:46:37 -06:00
parent 9993d04ab0
commit 5fa73da51a
12 changed files with 484 additions and 82 deletions

View file

@ -1,12 +1,12 @@
<h1><%= @vote.title %></h1>
<% if @vote.expire_on %>
<p><%= _("Closing date: #{format_date(@vote.expire_on)}") %></p>
<p><%= _("Closing date: %{date}" % { date: format_date_and_time(@vote.expire_on) }) %></p>
<% end %>
<p><%= @vote.description %></p>
<% if @vote.ratings.length > 0 %>
<% unless @vote.ratings.blank? %>
<h2><%= _("All ratings") %></h2>