Tom Hughes
a119240216
Add database checks to issue and report controllers
...
Fixes #3875
2023-01-11 11:12:36 +00:00
Tom Hughes
9cd96bd452
Fix new rubocop warnings
2022-09-09 22:45:58 +01:00
Harry Wood
fcbccb6a44
Report verification render not redirect
...
Fix an issue with the report verification, causing it to lose the text of a report if the user fails to fill in a category.
By using a `render` instead of a `redirect_to`, the rails standard verification behaviour works better. It means we also get a nice red "can't be blank" message highlighting the specific missing field.
2022-05-04 19:42:36 +01:00
Tom Hughes
1f880528bd
Fix new rubocop warnings
2019-07-18 16:47:08 +01:00
Andy Allan
dfb9e40820
Move issues and reports to authorization system
2018-10-10 16:34:44 +02:00
Tom Hughes
e5604ce98e
Assign vandalism reports for users to moderators
2018-06-17 11:14:19 +01:00
Tom Hughes
5ea1ba8d84
Set the locale for issue and report views
2018-06-16 12:14:58 +01:00
Tom Hughes
2aca6920dc
Use lazy lookups for translations in issues
2018-06-10 16:59:58 +01:00
Andy Allan
32d1afbb18
Create a report_link helper, and use text instead of a flag icon
2018-03-28 11:05:46 +08:00
Andy Allan
696bbd169b
Redirect to the reportable after creating a report.
2018-03-14 17:24:41 +08:00
Andy Allan
2fc70be734
Add a redirect and error message if user ends up trying to report something without the correct parameters
2018-03-14 17:09:57 +08:00
Andy Allan
3a386f185c
Reopen issues if necessary when creating a report.
2018-01-21 11:18:24 +00:00
Andy Allan
e0faf68437
Remove new issue notifications for now
...
This can be re-implemented later.
2017-12-13 16:29:46 +00:00
Andy Allan
63992d83bd
Store the report category.
2017-12-13 16:02:55 +00:00
Andy Allan
d7612f42d0
Refactor creating a new report to use a ReportsController
...
It's really a report that the user is creating, the issue is created indirectly. Similar
refactoring will be required for issue comments.
2017-09-06 18:06:21 +01:00