Commit Graph

3455 Commits

Author SHA1 Message Date
Andreas Nedbal 24be74a5a2 Split and reuse question actions in partial 2022-08-21 15:04:54 +02:00
Andreas Nedbal 2a2f1a9988 Split actions from comments into separate partial 2022-08-21 15:04:12 +02:00
Andreas Nedbal 5562bd0de0 Split actions from answerbox into separate partials 2022-08-21 15:03:42 +02:00
Andreas Nedbal 56a1c70fae add `admin?` shorthand to users 2022-08-21 15:02:49 +02:00
Andreas Nedbal ffc0ba05e1 Add missing newline 2022-08-21 13:17:45 +02:00
Andreas Nedbal b46fae5ebd Rename index action to show action 2022-08-21 13:17:45 +02:00
Andreas Nedbal 9c159bd5cc Appease the robot dog 2022-08-21 13:17:45 +02:00
Andreas Nedbal 6e80598b35 Add test param to spec 2022-08-21 13:17:45 +02:00
Andreas Nedbal 9874ffac19 Add base spec for `Moderation::QuestionsController` 2022-08-21 13:17:45 +02:00
Andreas Nedbal f521b5f160 Implement moderation question view layout 2022-08-21 13:17:45 +02:00
Andreas Nedbal 778cf90f85 Add `Moderation::QuestionsController` 2022-08-21 13:17:45 +02:00
Andreas Nedbal 6f19d806f7 Prevent layout markup duplication 2022-08-21 01:13:10 +02:00
Andreas Nedbal 8a69d7c583 Adjust `fails to access route` spec for role-constrained routes 2022-08-21 01:13:10 +02:00
Andreas Nedbal d75bff937e Adjust role-constrained routes spec 2022-08-21 01:13:10 +02:00
Andreas Nedbal 45f288ef4f Apply review suggestions from @nilsding
Co-authored-by: Georg Gadinger <nilsding@nilsding.org>
2022-08-21 01:13:10 +02:00
Andreas Nedbal 3bb91932b5 Appease the robot dog 2022-08-21 01:13:10 +02:00
Andreas Nedbal bedd29f7e8 Add base spec for `Moderation::ReportsController` 2022-08-21 01:13:10 +02:00
Andreas Nedbal 922799f123 Adjust route and alias naming 2022-08-21 01:13:10 +02:00
Andreas Nedbal 883d669d13 Move views to new location 2022-08-21 01:13:10 +02:00
Andreas Nedbal 3f7a94d56c Move actions from `ModerationController` to `Moderation::ReportsController` 2022-08-21 01:13:10 +02:00
Karina Kwiatek 41caf06e70
Merge pull request #621 from Retrospring/🦊🔇
Site-wide anonymous blocking
2022-08-20 19:57:14 +02:00
Karina Kwiatek 48f70c9e47
Prevent default event handling on block anon option
Co-authored-by: Andreas Nedbal <github-bf215181b5140522137b3d4f6b73544a@desu.email>
2022-08-20 19:37:51 +02:00
Karina Kwiatek 4814ccdaa5 Use null-safe navigation for destroying inbox entries when blocking 2022-08-20 19:18:28 +02:00
Karina Kwiatek c7418b5de7 Make `user_id` on `anonymous_blocks` nullable 2022-08-20 19:05:55 +02:00
Karina Kwiatek b59c9b3af2 Add tests for management endpoint for site-wide muting 2022-08-20 19:05:55 +02:00
Karina Kwiatek 2d01d9b365 Apply review suggestions
Co-authored-by: Andreas Nedbal <git@pixelde.su>
Co-authored-by: Georg Gadinger <nilsding@nilsding.org>
2022-08-20 19:05:55 +02:00
Karina Kwiatek 92a5095c00 Appease the robot canine 2022-08-20 19:05:55 +02:00
Karina Kwiatek 136eac8bdd Add page for managing site-wide anonymous-blocks 2022-08-20 19:05:55 +02:00
Karina Kwiatek ae5d8931af Implement frontend for blocking users site-wide 2022-08-20 19:03:05 +02:00
Karina Kwiatek 74e309e9fc Apply anonymous blocks without an owner as global 2022-08-20 19:02:37 +02:00
Karina Kwiatek 0bbb435858 Allow anonymous blocks without an owner 2022-08-20 19:02:37 +02:00
Georg Gadinger 1a4096a42a
Merge pull request #632 from Retrospring/freude-schöner-götterfunken
🇪🇺🇪🇺🇪🇺🇪🇺🇪🇺🇪🇺🇪🇺🇪🇺🇪🇺🇪🇺🇪🇺🇪🇺🇪🇺🇪🇺🇪🇺🇪🇺🇪🇺🇪🇺🇪🇺🇪🇺🇪🇺🇪🇺🇪🇺🇪🇺🇪🇺🇪🇺🇪🇺🇪🇺🇪🇺🇪🇺🇪🇺🇪🇺🇪🇺🇪🇺🇪🇺🇪🇺🇪🇺🇪🇺🇪🇺🇪🇺🇪🇺🇪🇺🇪🇺🇪🇺🇪🇺🇪🇺🇪🇺🇪🇺🇪🇺🇪🇺🇪🇺🇪🇺🇪🇺🇪🇺🇪🇺🇪🇺🇪🇺🇪🇺🇪🇺🇪🇺🇪🇺🇪🇺🇪🇺🇪🇺
2022-08-20 18:00:09 +02:00
Georg Gadinger ccbd42666d locales: rewrite it in European (and the rest of the world) 2022-08-20 17:37:33 +02:00
Georg Gadinger b41983a2bf
Disgustingly merge pull request #598 from Retrospring/feature/norway
Add new translations in various places
2022-08-20 17:22:37 +02:00
Andreas Nedbal 866894563e Apply review suggestions from @nilsding
Co-authored-by: Georg Gadinger <nilsding@nilsding.org>
2022-08-20 17:21:47 +02:00
Andreas Nedbal c4d01a4f74 Appease the robot dog 2022-08-20 17:21:47 +02:00
Andreas Nedbal b00a12b322 Always return a boolean value from `moderation_view?` 2022-08-20 17:21:47 +02:00
Andreas Nedbal f5f7b0d22b Add tests for `User#questions` action and cases 2022-08-20 17:21:47 +02:00
Andreas Nedbal 6693864fbc Move `belongs_to_current_user?` to UserController 2022-08-20 17:21:47 +02:00
Andreas Nedbal 87c2ed3ab7 List direct questions for current users or mods 2022-08-20 17:21:47 +02:00
Georg Gadinger 85d2ffc5ec
Merge pull request #631 from Retrospring/answer-is-too-lo…
answerbox: use ActiveSupport's String#truncate
2022-08-20 14:36:35 +02:00
Georg Gadinger 8f86f8bc96 answerbox: use ActiveSupport's String#truncate
this change cuts off the answer after a word and not within one.
2022-08-19 16:49:08 +02:00
Andreas Nedbal 2a8711e7db Fix asked header in question and answerbox 2022-08-17 22:18:37 +02:00
dependabot[bot] 455e478e45 Bump webpack-dev-server from 4.7.3 to 4.10.0
Bumps [webpack-dev-server](https://github.com/webpack/webpack-dev-server) from 4.7.3 to 4.10.0.
- [Release notes](https://github.com/webpack/webpack-dev-server/releases)
- [Changelog](https://github.com/webpack/webpack-dev-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-dev-server/compare/v4.7.3...v4.10.0)

---
updated-dependencies:
- dependency-name: webpack-dev-server
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-15 18:23:18 +02:00
dependabot[bot] b73bc4b13d Bump @melloware/coloris from 0.15.0 to 0.16.0
Bumps [@melloware/coloris](https://github.com/melloware/coloris-npm) from 0.15.0 to 0.16.0.
- [Release notes](https://github.com/melloware/coloris-npm/releases)
- [Commits](https://github.com/melloware/coloris-npm/compare/0.15.0...0.16.0)

---
updated-dependencies:
- dependency-name: "@melloware/coloris"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-15 16:50:37 +02:00
dependabot[bot] 380b516d32
Merge pull request #626 from Retrospring/dependabot/bundler/bullet-7.0.3 2022-08-15 09:14:04 +00:00
dependabot[bot] a959fc1fa8
Bump bullet from 7.0.2 to 7.0.3
Bumps [bullet](https://github.com/flyerhzm/bullet) from 7.0.2 to 7.0.3.
- [Release notes](https://github.com/flyerhzm/bullet/releases)
- [Changelog](https://github.com/flyerhzm/bullet/blob/master/CHANGELOG.md)
- [Commits](https://github.com/flyerhzm/bullet/compare/7.0.2...7.0.3)

---
updated-dependencies:
- dependency-name: bullet
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-15 09:09:32 +00:00
dependabot[bot] d596f5e909
Merge pull request #625 from Retrospring/dependabot/bundler/rubocop-1.35.0 2022-08-15 09:07:12 +00:00
dependabot[bot] 11dbf2b67f
Merge pull request #623 from Retrospring/dependabot/bundler/brakeman-5.3.1 2022-08-15 09:06:46 +00:00
dependabot[bot] 69e35ab5cd
Merge pull request #613 from Retrospring/dependabot/bundler/oj-3.13.20 2022-08-15 09:06:44 +00:00