]> git.openstreetmap.org Git - rails.git/commit
Add expiry type functionality to moderation zones
authorSachin Kumar <sachinkumar905846@gmail.com>
Thu, 29 Oct 2026 06:30:35 +0000 (12:00 +0530)
committerSachin Kumar <sachinkumar905846@gmail.com>
Thu, 29 Oct 2026 06:30:35 +0000 (12:00 +0530)
commit25b075aaf19f51fde48d7cf4943b17d9cd4c8fc1
tree16a57db1e796c67fe8360ded33a83510940b5eac
parent7bb3d9737fae84426aed4c71657ea16fb658df57
Add expiry type functionality to moderation zones

- Introduced radio buttons for selecting expiry type (relative/absolute) in the moderation zone form.
- Updated controller to handle different parameters based on the selected expiry type.
- Enhanced helper methods to manage expiry date and time inputs.
- Added tests for creating and updating moderation zones with both expiry types.
app/assets/javascripts/moderation_zone.js
app/controllers/moderation_zones_controller.rb
app/helpers/moderation_zones_helper.rb
app/models/moderation_zone.rb
app/views/moderation_zones/_form.html.erb
config/locales/en.yml
test/controllers/moderation_zones_controller_test.rb
test/models/moderation_zone_test.rb
test/system/manage_moderation_zones_test.rb