aboutsummaryrefslogtreecommitdiffstats
path: root/pysite/views (follow)
Commit message (Collapse)AuthorAgeLines
...
* Add page source view to wikiGravatar Gareth Coles2018-04-12-0/+45
|
* Update resources page with new icons and formatting.Gravatar Gareth Coles2018-04-11-0/+39
| | | | NOTE: This does change the JSON!
* Snowflakes should be handled as stringsGravatar Gareth Coles2018-04-10-2/+2
|
* Moved all redirects into a folder and added one for github.Gravatar Leon Sandøy2018-04-10-3/+15
|
* Abstract rst away and add icon directiveGravatar Gareth Coles2018-04-09-12/+7
|
* Easier debugging and optimised importsGravatar Gareth Coles2018-04-08-8/+8
| | | | Simply set FLASK_DEBUG=1 in your env to skip OAuth checks
* Allow helpers to edit pages alsoGravatar Gareth Coles2018-04-07-7/+7
|
* Display improvementsGravatar Gareth Coles2018-04-07-3/+5
|
* Considerable progress on the wikiGravatar Gareth Coles2018-04-07-9/+19
|
* Flake8Gravatar Gareth Coles2018-04-06-7/+7
|
* Updated wiki editing system with live-previewingGravatar Gareth Coles2018-04-06-2/+40
|
* 5XX error view non-werkzeug exception supportGravatar JoeBanks132018-04-05-1/+9
|
* Flake8Gravatar Gareth Coles2018-04-05-1/+1
|
* More work towards the wikiGravatar Gareth Coles2018-04-05-3/+3
|
* More work towards the wikiGravatar Gareth Coles2018-04-05-3/+47
|
* That was a little dumb.Gravatar Gareth Coles2018-04-05-1/+1
|
* RST test error catchingGravatar Gareth Coles2018-04-05-1/+1
|
* RST test error catchingGravatar Gareth Coles2018-04-05-3/+8
|
* A few smaller fixesGravatar Gareth Coles2018-04-05-1/+5
|
* Attempt to fix CSRF; add debug info to staff pageGravatar Gareth Coles2018-04-05-1/+5
|
* Flake8Gravatar Gareth Coles2018-04-04-2/+2
|
* Early wiki work including a WS test route for RST parsingGravatar Gareth Coles2018-04-04-5/+85
|
* CSRF error route doesn't do shit, sadlyGravatar Gareth Coles2018-04-04-36/+0
|
* CSRF error route for APIGravatar Gareth Coles2018-04-04-0/+36
|
* Basic wiki routesGravatar Gareth Coles2018-04-03-0/+36
|
* Fix staff route nameGravatar Gareth Coles2018-04-03-1/+1
|
* Fix logging, restrict staff index routeGravatar Gareth Coles2018-04-01-0/+3
|
* Accept username/discriminator from the bot and remove it from oauthGravatar Gareth Coles2018-03-30-6/+3
|
* Flake8Gravatar Gareth Coles2018-03-30-1/+1
|
* Collect all roles from users instead of just a single oneGravatar Gareth Coles2018-03-30-3/+5
|
* Change to PyCharm importsGravatar Gareth Coles2018-03-30-2/+0
|
* Rewrite URLs in templates to use `url_for()`Gravatar Gareth Coles2018-03-29-1/+1
|
* Fix error routing and more work on static filesGravatar Gareth Coles2018-03-29-3/+1
|
* Fix error handler managementGravatar Gareth Coles2018-03-29-16/+4
|
* Fix static files for staff subdomainGravatar Gareth Coles2018-03-29-0/+15
|
* Fix up route namesGravatar Gareth Coles2018-03-29-14/+14
|
* Attempt to fix HTTPS and more OAuth issuesGravatar Gareth Coles2018-03-29-2/+1
|
* Oauth (#45)Gravatar Nate the great2018-03-29-1/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Creating a OAUTH login for the site. We still need to have a way to fill in credentials however. Signed-off-by: Zwork101 <[email protected]> * How ya like me now Travis? Signed-off-by: Zwork101 <[email protected]> * Fix slight error in database insertion * Revert "Fix slight error in database insertion" (wrong branch) This reverts commit 9ac6cbb * Don't have snekchek working, but I'll try again. Signed-off-by: Zwork101 <[email protected]> * Please enter the commit message for your changes. Lines starting * Adding Oauth2 login to site. * Add prefix * Add prefix * This never happened * Flipping Travis I still can't get snekchek to work locally. * Added a whole bunch of stuff, ready to be used. Signed-off-by: Zwork101 <[email protected]> * Making sessions more secure, and future safe. Signed-off-by: Zwork101 <[email protected]> * Adding some quick stuff Signed-off-by: Zwork101 <[email protected]> * Appease the flake8 gods Signed-off-by: Zwork101 <[email protected]> * Appease the flake8 gods Signed-off-by: Zwork101 <[email protected]> * Whoops Signed-off-by: Zwork101 <[email protected]> * Add comments, fix user_data function. Signed-off-by: Zwork101 <[email protected]> * Whooops, forgot to flake :/ Signed-off-by: Zwork101 <[email protected]> * Make it look nicer, thanks Aperture. Signed-off-by: Zwork101 <[email protected]> * Fixing login issues and added button * Add a OauthMixin to allow for easy data access. Clean stuff up. Signed-off-by: Zwork101 <[email protected]> * Fix a test, and use self.assertEqual rather then self.assertEquals! Signed-off-by: Zwork101 <[email protected]> * Please don't ask how that happened. Signed-off-by: Zwork101 <[email protected]> * Added some tests, moved a bunch of stuff around. Mainly cleaned stuff up. Signed-off-by: Zwork101 <[email protected]> * Add a ton of tests, try to please the coverall gods :D, moved some code into a function for testing. Signed-off-by: Zwork101 <[email protected]> * Just some stupid stuff I missed. Signed-off-by: Zwork101 <[email protected]> * Fix an issue with the test, and add docs Signed-off-by: Zwork101 <[email protected]> * Remove pointless function. (join_user) Signed-off-by: Zwork101 <[email protected]> * Fix test consistency
* CountdownGravatar JoeBanks132018-03-21-10/+0
|
* Added a Code Jam Countdown (#1eevq) (#43)Gravatar Sam Wedgwood2018-03-21-0/+10
| | | | | | | | | | | | * added countdown * updated jam dates * added test * flake8 * flake8 (i did it on wrong file)
* Copy code from API error view over to normal error views because that's the ↵Gravatar JoeBanks132018-03-21-21/+24
| | | | way it should be.
* Early bersion of the code jams pageGravatar Gareth Coles2018-03-14-0/+10
|
* Remove unused importGravatar Gareth Coles2018-03-13-2/+0
|
* Update info section with an indexGravatar Gareth Coles2018-03-13-1/+1
|
* Minor bugfix to allow tag.delete to return success as False if the tag ↵Gravatar Leon Sandøy2018-03-13-5/+8
| | | | doesn't exist
* API for tags (#34)Gravatar Leon Sandøy2018-03-06-57/+156
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Help page and misc improvements Committing so I can go home >:| * [WIP] - API improvements for the tag features. Not completed. * renaming tag.py to tags.py and refactoring the nomenclature of docs to tags * fixed error message in tags, cleaning up app_test.py * tests for the tags feature * ignoring jsonify returns cause coverall can't handle them * Catch-all error view for the API blueprint * cleaning up APIErrorView a little * bringing coverage for tags.py to 100% * how did this get in here? * how did this get in here? ROUND 2 * Removing the 503 database error handling. It's not in use and we should probably rethink that whole custom error handling system anyway. * Converting the tags file to use the @api_params decorator instead of validating manually. Tested with bot staging.
* Info pages #13xan #13xak (#36)Gravatar Gareth Coles2018-03-04-34/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Info pages and templates * Info pages and templates * Info pages and templates * Update navigation and fix up HTML * Navigation HTML spacing for readability * Fix error views not using `self.render()` * `render()` method should accept Any for context values * Change header linking CSS to a dedicated class * Rules page * Basic resources page setup * Fix headers for new CSS class * Resource categories and initial resource data * Add link to JSON file on GH - won't work until the branch is merged * Remove info overview page and redirect info root url to resources * Flake8 * Add some tests * Line lengths
* Switch type from NotFound to HTTPException & add post support to 5XX and 4XXGravatar JoeBanks132018-03-01-2/+26
|
* Fix spacing issuesGravatar JoeBanks132018-03-01-2/+2
|
* Instead of making flask error when rendering unsupported status codes just ↵Gravatar JoeBanks132018-03-01-1/+4
| | | | send 500