Moderation part 2: drop course-scoped moderation + moderation tree + explanation texts everywhere#382
Merged
Merged
Conversation
…s, and permission wiring
- Drop course-scoped moderation — moderators can edit any document
- Add promoted_by FK on User to track who granted moderator rights
- Add moderation tree view (lobste.rs-style) showing the chain of trust
- Add public about page explaining the moderation system
- Fix document edit logging bug (old values were captured after form binding)
- Replace all hardcoded href="/" paths in templates with {% url %} tags
- Add isort skip for .venv to prevent corrupting installed packages
- Add comprehensive moderation test suite (18 tests)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
645b5b4 to
34775c6
Compare
… and layout polish
- Add moderation profile page per moderator showing their action log
- Move about page to /moderation/, dashboard to /moderation/home/
- Move pending requests to /moderation/manage/, rename from /moderators/
- Add breadcrumbs to all moderation pages
- Add moderation tree view and profile links from the log
- Move "Retirer" button to the profile page (admin only)
- Replace gendered French with inclusive forms (modérateur·trice, étudiant·e, délégué·e)
- Redesign pending request cards: no avatar, no date, refusal field on demand via <details>
- Show not-found error as inline form error instead of a banner
- Replace hardcoded href="/" with {% url %} tags across all templates
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Thanks to @mnietona we have the biggest part of a moderation system. This PR adds the missing parts: