aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site (follow)
Commit message (Collapse)AuthorAgeLines
...
| * | | | | | | Make newlines visible in deleted messagesGravatar Sebastiaan Zeeff2019-10-31-10/+53
| | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | | | | | Add new rules.Gravatar scragly2019-10-26-32/+18
| |/ / / / /
| * | | | | Merge branch 'master' into patch-1Gravatar Sebastiaan Zeeff2019-10-25-3/+32
| |\ \ \ \ \
| | * \ \ \ \ Merge branch 'master' into bot#466-reminder-jump_urlGravatar Sebastiaan Zeeff2019-10-25-2/+2
| | |\ \ \ \ \ | | | | |_|/ / | | | |/| | |
| | | * | | | Set SECRET_KEY to constant in debug modeGravatar Sebastiaan Zeeff2019-10-22-1/+1
| | | | |/ / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The SECRET_KEY in debug mode was auto-generated each time the config file was loaded. This had the unwanted side-effect of requiring testers to login again on the site as the SECRET_KEY had changed during the reload process. This commit resolves that by turning it into a constant. Since having a constant secret results in the linting error `S105`, I have added a specific `noqa` ignore for that.
| | | * | | Add bulma content class to home page content for proper formatting.Gravatar scragly2019-10-21-1/+1
| | | |/ /
| | * | | Add migrations for the reminder modelGravatar Akarys422019-10-21-0/+19
| | | | |
| | * | | Change reminder.jump_url field to URLFieldGravatar Akarys422019-10-21-1/+1
| | | | | | | | | | | | | | | | | | | | This make sure that the data receivied is valid
| | * | | Add max_lengh for reminder.jump_urlGravatar Akarys422019-10-19-0/+1
| | | | |
| | * | | Add a jump-url field in the reminder modelGravatar Akarys422019-10-19-1/+10
| | |/ /
| * / / Remove breadcrumb truncationGravatar Benjamin Soyka2019-10-20-2/+2
| |/ / | | | | | | As per discussion in #meta
* | | Add new test for deleted message context log_url.Gravatar scragly2019-10-20-3/+24
| | |
* | | Adjust deleted message test to account for new ordering of newest created first.Gravatar scragly2019-10-20-1/+1
| | |
* | | Add tag search and rendered preview.Gravatar scragly2019-10-20-2/+26
| | |
* | | Show role colour style and add hex value, link perms to calc page, add role ↵Gravatar scragly2019-10-20-1/+33
| | | | | | | | | | | | search.
* | | Add search field to off topic admin page.Gravatar scragly2019-10-20-1/+7
| | |
* | | Improve nominations admin list and page, add search and filter by active.Gravatar scragly2019-10-20-1/+43
| | |
* | | Improve infractions admin list and page, add search and filters.Gravatar scragly2019-10-20-1/+45
| | |
* | | Order roles by positioning, add filters and search to api user admin page.Gravatar scragly2019-10-20-2/+48
| | |
* | | Add message log links, improved formatting to message deletion admin pages.Gravatar scragly2019-10-20-7/+75
| | |
* | | Set newest-first sorting for message deletion models, add log_url property.Gravatar scragly2019-10-20-2/+14
|/ /
* | Add Code of Conduct to navbar submenuGravatar Sebastiaan Zeeff2019-10-17-0/+3
| | | | | | | | | | | | This commit adds a link to the Code of Conduct to the dropdown menu in the navbar. It does not include a direct link to the CoC policies, which are accessible via the Code of Conduct page.
* | Merge pull request #284 from python-discord/faviconsGravatar Johannes Christ2019-10-14-11/+9
|\ \ | | | | | | Forgot to update base.html template with favicon changes
| * | Forgot to update base.html template with favicon changesGravatar ByteCommander2019-10-12-11/+9
| | |
* | | Wiki: Show breadcrumb without menus for users that can't edit, without the ↵Gravatar Gareth Coles2019-10-14-52/+58
| | | | | | | | | | | | root shown
* | | Wiki: Remove Django messages from Wiki templatesGravatar Gareth Coles2019-10-14-25/+0
| | | | | | | | | | | | We've already got this handled in the main base template for the site.
* | | Wiki: Hide breadcrumbs bar if the user can't editGravatar Gareth Coles2019-10-14-1/+3
| | |
* | | Remove accidental comment before docstringGravatar Gareth Coles2019-10-14-1/+1
| | |
* | | Wiki: Permissions hotfixGravatar Gareth Coles2019-10-14-0/+24
| | |
* | | Merge branch 'master' into #201-django-allauthGravatar Gareth Coles2019-10-14-33/+25
|\| |
| * | Merge branch 'master' into faviconsGravatar Leon Sandøy2019-10-12-50/+203
| |\ \
| | * \ Merge branch 'master' into fix-home-responsiveGravatar Leon Sandøy2019-10-11-24/+227
| | |\ \
| | * | | Improve homepage flex responsivenessGravatar ByteCommander2019-10-09-26/+18
| | | |/ | | |/|
| * | | Update favicons (rounded corners, other improvements)Gravatar ByteCommander2019-10-11-7/+7
| | | |
* | | | Allauth: Address reviews by @lemonsaurusGravatar Gareth Coles2019-10-14-39/+119
| | | |
* | | | Merge branch 'master' into #201-django-allauthGravatar Gareth Coles2019-10-11-13/+11
|\ \ \ \ | | |_|/ | |/| |
| * | | Merge branch 'master' into tizzysaurus_landing_page_textGravatar Leon Sandøy2019-10-11-11/+216
| |\ \ \
| * | | | Make the homepage paragraphier.Gravatar Leon Sandøy2019-10-05-6/+4
| | | | |
| * | | | Address code review from Scragly and Mark.Gravatar Leon Sandøy2019-10-05-4/+4
| | | | | | | | | | | | | | | | | | | | Makes various minor changes to commas and formulations.
| * | | | Update the landing page text.Gravatar Leon Sandøy2019-10-01-7/+7
| | |_|/ | |/| | | | | | | | | | | | | | The new text was written by Tizzysaurus in his website cleanup project, and lifted from his google doc.
* | | | Merge branch 'master' into #201-django-allauthGravatar Gareth Coles2019-10-11-11/+216
|\ \ \ \ | | |/ / | |/| |
| * | | Deny manual `LogEntry` creation.Gravatar Johannes Christ2019-10-11-0/+4
| | | |
| * | | Resolve migration merge conflicts.Gravatar Johannes Christ2019-10-11-1/+1
| | | |
| * | | Improve formatting for `has_delete_permission`, typespec.Gravatar Johannes Christ2019-10-11-1/+8
| | | |
| * | | Merge branch 'master' into simple-admin-log-entry-viewGravatar Johannes Christ2019-10-11-0/+131
| |\ \ \
| | * \ \ Merge pull request #269 from ↵Gravatar Johannes Christ2019-10-11-5/+100
| | |\ \ \ | | | |_|/ | | |/| | | | | | | | | | | | python-discord/migrate-nominations-to-nominations-models Migrate nominations to the new Nomination model
| | | * | Migrate nominations to new Nomination modelGravatar Sebastiaan Zeeff2019-09-30-5/+100
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before the migration to Django, we stored meta data on a nomination, such as the `reason` and `end_reason`, in the infraction table using "note" infractions, using a special prefix for the `reason`. We have since decided to move nominations out of the infraction context by creating a special `Nomination` model. However, given the complexity of the data migration, we did not yet migrate the old nomination data to this new model. This commit migrates that data by performing a data migration. The data migration works as follows: - Query all nomination data in chronological order; - Replay all nominations and add them to the `Nomination` model; - Delete the now obsolete `Infraction` entry. In addition, this commit also adds a useful string representation for `Nomination` objects.
| | * | | Add favicons; workaround for gitattributesGravatar ByteCommander2019-10-08-0/+42
| | | |/ | | |/|
| * | | Deny `LogEntry` deletion.Gravatar Johannes Christ2019-10-11-0/+5
| | | |
| * | | Allow filtering through metadata, and searching by message.Gravatar Johannes Christ2019-10-11-0/+2
| | | |