Commit graph

73 commits

Author SHA1 Message Date
a5a9e92e18 Allow editing candidates 2025-12-04 01:26:32 +01:00
62e70e3935 Make sure the candidate belongs to the vote 2025-12-04 01:25:18 +01:00
5a278fcddf Rewrite views with Bootstrap 2025-12-04 01:03:46 +01:00
529f7118b1 Fix using format_date on first page after login 2025-12-03 22:41:25 +01:00
134ebec01f Use Bootstrap badge 2025-12-03 19:02:45 +01:00
d87d191cc9 Add Bootstrap header and navigation 2025-12-03 18:49:39 +01:00
be9c415048 Move editing the vote description to a dedicated page
So that /votes/:id remains a preview page, even for organizers.
2025-12-03 18:05:54 +01:00
888dcc1a99 Allow spoofing admin in development environment 2025-12-03 17:49:59 +01:00
1d4f7af63d Simplify 2025-10-13 20:22:45 +02:00
0b59a74cf6 Update PO files and Catalan translation 2025-10-13 20:21:08 +02:00
507a8dfaea Fix translations 2025-10-13 20:20:46 +02:00
8d8bce3207 Translate value labels 2025-10-13 20:10:15 +02:00
b07b0da672 Force ratings on all candidates before saving 2025-10-13 20:07:34 +02:00
fa57d465be Limit width of text 2025-10-07 11:02:22 +02:00
0dd3d03b67 Read RACK_ENV but apply RAILS_ENV
Ruby whenever uses RAILS_ENV in crontab.
2025-10-07 11:01:30 +02:00
fa1a58bea2 Render descriptions as Markdown 2025-09-27 19:16:24 +02:00
4593bf2b2a Ignore config/environments/production.rb as well 2025-09-27 17:29:31 +02:00
5fa73da51a Add admin panel for users and votes
Closes #2
2025-06-08 20:47:09 -06:00
9993d04ab0 Improve indentation 2025-06-08 18:17:56 -06:00
b41a0d0417 Close votes automatically after 7 days
Closes #1
2025-06-08 16:07:20 -06:00
cac94c2379 Allow voting on open votes only 2025-06-08 15:04:37 -06:00
0afc881b5d Clarify button labels 2025-06-07 20:05:28 -06:00
dc22a5bc7c Hash reset codes in database
Otherwise, they can be reused if the database gets leaked.
2025-06-07 19:28:58 -06:00
fa4f77c365 Add password reset
Closes #15
2025-06-07 18:38:33 -06:00
84278741a5 Improve terminology in Catalan
Closes #11
2025-06-07 15:09:59 -06:00
0f472c6829 Update PO files 2025-06-07 15:08:34 -06:00
2ca2d010df Fix responsiveness 2025-05-28 17:37:16 -06:00
0046a54418 Fix application name 2025-05-29 01:30:09 +02:00
6abf6cbceb Fix dependencies for production 2025-05-29 01:29:26 +02:00
8f29a17e33 Disable shared gems 2025-05-29 01:29:26 +02:00
6106e088df Change app name 2025-04-06 18:25:13 -06:00
b4a328554c Update translations 2025-04-06 17:05:07 -06:00
dc01cb61ad Require at least 2 candidates to open a vote 2025-04-06 17:05:07 -06:00
440013890e Add Chartkick 2025-04-06 17:05:07 -06:00
b7bcd661b8 Add missing template 2025-04-06 17:05:07 -06:00
cef9c51835 Update translations 2025-04-06 17:05:07 -06:00
4faa4fd555 Validate email and password 2025-04-06 17:05:07 -06:00
069d565ba9 Format headings as th 2025-04-06 17:05:07 -06:00
058b512b7d Add color to ratings 2025-04-06 17:05:07 -06:00
c4ebe12408 Add bar chart 2025-04-06 17:05:07 -06:00
582562dae0 Fix parameters 2025-04-06 17:05:07 -06:00
7731c0e59a Factorize require_organizer and require_{draft,open,closed}_vote 2025-04-06 17:05:07 -06:00
dc702d0723 Factorize find_vote 2025-04-06 17:05:07 -06:00
c042f0c3a5 Factorize require_login 2025-04-06 17:05:07 -06:00
e826d79240 Translate to Catalan 2025-04-06 17:05:07 -06:00
3fa8c69a49 Set up localization 2025-04-06 17:05:07 -06:00
c9aee4ae20 Prepare for production 2025-04-06 17:05:07 -06:00
42b0bab6a2 Display results as a table 2025-04-06 17:05:07 -06:00
9810cdb615 Configure rating scale as class instance variable of MajorityJudgment 2025-04-06 17:05:07 -06:00
9c2adb1072 Delete ratings when change a vote back to draft 2025-04-06 17:05:07 -06:00