aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/staff (follow)
Commit message (Collapse)AuthorAgeLines
* Bump Django To 3.2Gravatar Hassan Abouelela2022-07-11-1/+1
| | | | | | | | | | Bumps the current django version to 3.2 For the most part, there are no major changes here. The app configuration names were incorrect, and the new version no longer ignores that, so those were updated. The new version also requires explicitly defining the field type for primary keys if they are not defined on the model. Signed-off-by: Hassan Abouelela <[email protected]>
* Add tests for new embed colour typesGravatar Chris Lovering2022-04-21-1/+11
|
* Support color string being when converting to hex codeGravatar Chris Lovering2022-04-21-3/+7
| | | | | | Int he latest version of discord.py Embed colours could be sent to site as hex strings, if set using a discord.Color, rather tha an int. Closes #715 Closes SITE-25
* Move subdomains to query paths.Gravatar Johannes Christ2021-06-08-13/+9
| | | | | | | | | | | | | | In more detail: - Use Django URL namespaces (e.g. `api:bot:infractions`) instead of `django_hosts` host argument. - Update the hosts file setup documentation to remove subdomain entries. - Update the hosts file setup documentation to mention that the entry of `pythondiscord.local` is not required and mainly for convenience. - Rename the `APISubdomainTestCase` to the more fitting `AuthenticatedAPITestCase`, as authentication is all that is left that the class is doing. - Drop dependency to `django_hosts`.
* Migration: Delete RoleMapping.Gravatar Leon Sandøy2020-10-11-0/+16
|
* Remove files related to django-allauth.Gravatar Leon Sandøy2020-10-04-40/+0
|
* Remove references to wiki from other apps.Gravatar Leon Sandøy2020-10-04-3/+1
|
* Merge branch 'master' into admin-api-pages-improvementsGravatar scragly2020-09-18-9/+92
|\ | | | | | | | | # Conflicts: # pydis_site/apps/api/admin.py
| * Alter staff tests to make use of new user roles syntaxGravatar Joseph Banks2020-06-02-1/+1
| |
| * No longer accept or track avatar_hash.Gravatar Leon Sandøy2020-05-27-1/+0
| | | | | | | | | | | | This should completely remove avatar_hash from the site - both in our tests, in the model itself, and from the database (as a result of the migration).
| * Merge branch 'master' into deleted-messages-visible-line-endingsGravatar Joseph2020-02-02-0/+40
| |\
| | * Merge branch 'bot#549-show-attachments-staff' of ↵Gravatar Akarys422019-11-20-0/+23
| | |\ | | | | | | | | | | | | https://github.com/python-discord/site into bot#549-show-attachments-staff
| | | * Merge branch 'master' into bot#549-show-attachments-staffGravatar Matteo Bertucci2019-11-15-0/+23
| | | |\
| | | | * Add user settings modal, with connections management and account deletionGravatar Gareth Coles2019-10-23-1/+1
| | | | |
| | | | * Add role mapping migration I forgot to commitGravatar Gareth Coles2019-10-23-0/+18
| | | | |
| | | | * Add is_staff to role mappings, and the logic to go with itGravatar Gareth Coles2019-10-20-0/+5
| | | | |
| | * | | Test for the attachment image to be in the staff logGravatar Akarys422019-11-20-0/+15
| | |/ /
| | * / Write tests for message.attachmentsGravatar Akarys422019-10-28-0/+2
| | |/
| * / Make newlines visible in deleted messagesGravatar Sebastiaan Zeeff2019-10-31-7/+51
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://github.com/python-discord/site/issues/302 This commit makes newlines in deleted messages visible in the deleted messages front-end and makes sure they are not stripped during the conversion to HTML. To represent newlines, I've chosen a commonly used symbol: `↵`. In addition, I've kaizened the colour filter that translates integer representations of colours to their RGB hex-value. The Discord dark theme shows black colours (int: 0; hex: #000000) as white instead, to make reading them against the dark background easier. This commit makes sure our front-end displays the same behavior. This closes #302
* / Adjust deleted message test to account for new ordering of newest created first.Gravatar scragly2019-10-20-1/+1
|/
* Signals: Handle (and test) mapping updates/deletionsGravatar Gareth Coles2019-10-11-2/+4
| | | | This also enforces unique values for both attributes on the RoleMapping model. Supporting configurations where this isn't the case would introduce quite a lot of added complexity.
* Remove app_label from role mapping modelGravatar Gareth Coles2019-10-03-3/+0
| | | | Turns out, setting this *does* move the model to a different category under the admin - but it also reparents it to the referenced app, so the migrations are created under that app instead. Nasty.
* Add model to map Discord roles to Django permissions groupsGravatar Gareth Coles2019-10-03-0/+61
|
* Applying PR Feedback: Colour constants for readability & absolute importGravatar Sebastiaan Zeeff2019-09-01-6/+18
|
* Changing LogView to DetailView, as per Volcy's reviewGravatar Sebastiaan Zeeff2019-08-24-27/+5
|
* Adding tests for deleted message viewGravatar Sebastiaan Zeeff2019-08-23-2/+98
| | | | | | | Tests include: - Properly escaping html; - Correct messages have been passed to templates; - Embeds are both rendered by the template.
* Adding tests for filters and the deleted message front-end viewGravatar Sebastiaan Zeeff2019-08-23-0/+85
|
* Making the deleted-messages-frontend functional with changes, including:Gravatar Sebastiaan Zeeff2019-08-23-6/+42
| | | | | | | | | - Adding support for embeds to both the template and the css; - Adding Discord fonts to create a Discord-realistic rendering; - Adding Discord color int to html hex filter for use in templates; - Removing unnecessary int -> hex property from role model (see previous point); - Adding support to compute timestamp from snowflake int in the message model; - Forcing the order of deleted messages list view to snowflake `id` to guarantee chronological order.
* Adding message display to frontendGravatar Sebastiaan Zeeff2019-08-23-1/+2
|
* Adding initial staff app to DjangoGravatar Sebastiaan Zeeff2019-08-23-0/+36