aboutsummaryrefslogtreecommitdiffstats
path: root/pysite/views (follow)
Commit message (Collapse)AuthorAgeLines
...
* [Jams] Fix ordering on view pageGravatar Gareth Coles2018-05-19-3/+6
|
* [Jams] Basics may now be edited at any pointGravatar Gareth Coles2018-05-19-3/+0
|
* Merge remote-tracking branch 'origin/master'Gravatar Gareth Coles2018-05-19-6/+166
|\
| * Snake cog (#71)Gravatar Leon Sandøy2018-05-19-6/+166
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Tables that are initialized with JSON files in the table_init folder will now sync properly if the JSON file is changed after initialization. Any lines that are either added or removed will be updated whenever site is rebooted. * Initial API endpoint for snake_quiz * reverting database.py * I WILL KILL YOU * Added the snake_fact API endpoint * Moving snake tables to the new migrations system * Set up initial data for all new tables, added table objects, wrote endpoints, and wrote tests for the new endpoints. * Removing the snake_movies endpoint. That idea didn't pan out. * Added an endpoint for getting special snake cases * broken json * Fixing the initial data slightly, better picture of bob. * Changing JSON indentation to be 4 spaces consistently in all initial_data, to address Aperture's review. Also changing all the endpoints to have correct namespacing, addressing gdude's review. * Fixing tests to point to new API endpoints
* | GDPR compliance for jammer profilesGravatar Gareth Coles2018-05-19-0/+13
| |
* | Jammer profilesGravatar Gareth Coles2018-05-19-2/+71
| |
* | Fix infractions setupGravatar Gareth Coles2018-05-19-9/+8
| |
* | [Jams] Signups code is more or less done, just a few things leftGravatar Gareth Coles2018-05-19-9/+180
|/
* [Jams] Some amount of public display, but links not ready yetGravatar Gareth Coles2018-05-19-3/+15
|
* Messed up my lint earlierGravatar Gareth Coles2018-05-19-2/+2
|
* [Jams] Linting and infractionsGravatar Gareth Coles2018-05-19-7/+69
|
* Fix some small question-editing bugsGravatar Gareth Coles2018-05-19-0/+2
|
* [Jams] Complete question listing/editing/etcGravatar Gareth Coles2018-05-19-0/+172
|
* [Jams] Add non-task info text to be displayed at jam announcementGravatar Gareth Coles2018-05-19-1/+2
|
* [Jams] A bunch more work. That's all for tonight, though.Gravatar Gareth Coles2018-05-18-3/+135
|
* [Jams] Huge amount of work on code jam admin areaGravatar Gareth Coles2018-05-18-2/+390
|
* [Jams] More restructuringGravatar Gareth Coles2018-05-17-1/+1
|
* Restructure code jams page layoutGravatar Gareth Coles2018-05-17-3/+26
|
* First draft of privacy pageGravatar Gareth Coles2018-05-15-0/+7
|
* Add snowflake index on oauth_data and use it for deletionsGravatar Gareth Coles2018-05-15-2/+2
| | | | We were using id previously, but that was no longer the correct key
* Main site redirects should be 302sGravatar Gareth Coles2018-05-15-0/+3
|
* Add RedirectView class for views that only redirect elsewhereGravatar Gareth Coles2018-05-15-29/+13
|
* Fix editing wiki in debug modeGravatar Gareth Coles2018-05-15-9/+10
|
* Add TemplateView class for views that only render a templateGravatar Gareth Coles2018-05-15-36/+21
|
* [GDPR] Also remove OAuth dataGravatar Gareth Coles2018-05-15-1/+21
|
* [GDPR] Small fixesGravatar Gareth Coles2018-05-15-2/+2
|
* [GDPR] Users are now updated and removed correctlyGravatar Gareth Coles2018-05-15-1/+49
|
* Migration runner and migrations (#69)Gravatar Gareth Coles2018-05-14-4/+234
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Migration runner and migrations * Remove demo wiki data * [Staff] Table management pages * Fix weird travis build omission * Address review and comments by @Volcyy * [Tables] Fix pagination * Move table definitions to new file with nameduple * Linting * Address lemon's review comments * Address @Volcyy's review * Address lemon's review * Update search placeholder * Search by key now available
* [Wiki] Fix an editor dumb: `not not`Gravatar Gareth Coles2018-05-07-1/+1
|
* [Wiki] Case-insensitive searchingGravatar Gareth Coles2018-05-06-3/+3
|
* [Wiki] Misc improvements, plus a beta search featureGravatar Gareth Coles2018-05-06-2/+74
|
* I linted that, I swearGravatar Gareth Coles2018-05-06-2/+2
|
* [Wiki] Move page functionGravatar Gareth Coles2018-05-06-1/+87
|
* [Wiki] Implement page deletions and improve sidebar constructionGravatar Gareth Coles2018-05-02-0/+67
|
* [All Pages] Fix the other half of that dumbGravatar Gareth Coles2018-05-02-0/+3
|
* [All Pages] Account for pages without a title when sortingGravatar Gareth Coles2018-05-02-3/+1
|
* Add special pages and an "all pages" special pageGravatar Gareth Coles2018-05-02-0/+37
|
* [Bug Fix] Fix the Edit & Source links on Wiki revision viewerGravatar Joseph2018-05-01-1/+3
|
* Fix for wiki.history.show with slashes in URLGravatar Joseph2018-04-29-1/+1
|
* Declaring the encoding to be utf-8 is not necessary in Python3 projects, as ↵Gravatar Leon Sandøy2018-04-27-40/+0
| | | | this is the default encoding. Encoding declarations are only useful in py3 if you want to declare it to be something _other_ than utf-8. This was, however, a very useful convention in py2. (#56)
* [#1eeu1] Hiphopify (#54)Gravatar Leon Sandøy2018-04-20-0/+178
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Changed the dev-mode logic to be the same as prod for creating new tables if they don't exist. Also added a new feature where a table can be initialized with data if you create a JSON file in the pysite/database/table_init/ folder and fill it with a list of dicts where each dict represents a row in your table. Included a hiphoppers json so that I can actually test if it works in production. It will only init the table if the table is empty. * Not sure if this will solve it, but I think so. * Renamed the tables and primary keys, and alphabetized the dict. Now complies with the gdudes holy wishes. * Almost done with the initial build for this. Implemented GET and DELETE, in order to finish POST I need to expand the database.py interface class. * Alphabetized database convenience wrappers. * Fixed a few typehints and added the sample convenience wrapper to the database class. * Finishing up the POST method and adding a duration parser to the utils folder so we can handle strings like 2w3d and turn them into a timestamp. * Fixed API blueprint loading, which was broken by the setup method in the DBMixIn. I'd forgotten to remove the check for table_name attribute. Also adde some logging and got the DELETE route working. * Added timezone-sensitivity to the duration parser so it will work with rethink. renamed the json and fixed some bugs in the hiphopify API. * Added a utility to test if rdb timestamps are expired, and only returning data from the GET calls if it isn't expired. * changed some log wording * Setting up Lil Joseph as default image. Adding some rappers to the list. * Adding a bunch of logging * These tests no longer apply. New tests must be written in the long run, removing them for now. * Addressing review comments left by Volcyy * Fixed misleading comment.
* Pass can_edit into revisions listGravatar Joseph2018-04-18-1/+1
|
* Pass `can_edit` into history templatesGravatar Joseph2018-04-18-1/+34
|
* Fix sidebar routesGravatar Joseph2018-04-18-1/+1
|
* Add wiki audit logs (#52)Gravatar Joseph2018-04-17-7/+204
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add wiki audit logs * Flake8 issues * Forgot to remove debug prints * Removed print but forgot to remove `.text` * Futile attempt to increase coverage * Reading up on API docs asks us to send User-Agent with our info in it * Add tests for wiki * Well played, Travis * Nothing in my local env is working on travis lol * Why does it appear it can't decide between 200 & 302 :thinking: * Flake8 * Post route * Same issue with local env working differently from Travis env * Add page to show page is being edited * Lock page when it is being edited * Add JS to keep refreshing lock on article * Add compare route to render diff * Add revision table to database * Add revision storage * Add revision list route * JS for Revision list radio buttons * Add revision comparison template * Add revision list template * flak8 my ass * [Unit Tests] New unit tests for history routes :sparkles: * Does this fix things? * Address gdude's reviews * Noticed a bug in the diff generation route which meant that empty posts could potentially error * Flake 8 * Audit logs were logging after change, meaning it was comparing after & after, which didn't work * Change table name * Remove whitespace from line to fix flake8 issue * Address reviews * Git hook made me do something wrong, apologies * Switch from werkzeug redirect to flask one * Address Apertures reviews
* Initial data for tables and refactoring the dev-mode database handling to be ↵Gravatar Leon Sandøy2018-04-15-8/+0
| | | | | | | | | | similar to prod-mode. (#53) * Changed the dev-mode logic to be the same as prod for creating new tables if they don't exist. Also added a new feature where a table can be initialized with data if you create a JSON file in the pysite/database/table_init/ folder and fill it with a list of dicts where each dict represents a row in your table. Included a hiphoppers json so that I can actually test if it works in production. It will only init the table if the table is empty. * Not sure if this will solve it, but I think so. * Renamed the tables and primary keys, and alphabetized the dict. Now complies with the gdudes holy wishes.
* Added an About category with Partners view (#1pv7h) (#50)Gravatar Jeremiah Boby2018-04-14-3/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added Partners view, and Navbar item * Moved info/rules to about/rules and fixed references * Added Partner images, and populated the partners page * Fixed responsiveness on smaller displays Added like 2 characters to the column tag, to enable stacking of columns if the display width is lower than 960 pixels. * Fixed indentation * Updated Code Monkeys Banner Added the shiny new CM Banner, and rearranged the partner cards. * Fixed newlines at end of HTML files * Partners page updated to generate from JSON file • The templates/main/about/partners.html file now uses the static/partners.json file to generate the Partner cards. • Flexboxes are nice. * Rearranged containers on Partners page I have no idea how flexboxes work :DDD * Updated Partners page to fix styling issues * Moved tag styling to the appropriate CSS file * Changed code style of stylesheet :D * Addresses Lemon's code style issues • Partner cards now have id="partner-card", which is selected with a CSS selector for styling, rather than styling all card objects. • Removed nonbreaking spaces that PyCharm didn't tell me about • Indented conditional HTML content to match Jinja conditionals • Fixed unclosed image tag * Removed div bloating, and increased specifity of CSS selection
* [Wiki] Fix pages being wiped when saved without editsGravatar Gareth Coles2018-04-12-0/+5
|
* [Wiki] Some excellent shitcode for document TOCsGravatar Gareth Coles2018-04-12-4/+7
|
* [Wiki] Fix dodgy staff edit redirect query paramGravatar Gareth Coles2018-04-12-1/+1
|