aboutsummaryrefslogtreecommitdiffstats
path: root/pysite/views/wiki (follow)
Commit message (Collapse)AuthorAgeLines
* Initial project layout for djangoGravatar Gareth Coles2018-08-07-693/+0
|
* Check that the page is not NoneType before checking that the page has no ↵Gravatar Joseph2018-07-11-10/+11
| | | | content to prevent trying to NoneType.get()
* Do not add lock to page if there is no content on itGravatar Joseph2018-07-10-1/+4
|
* All domains: sitemap.xml and robots.txtGravatar Gareth Coles2018-07-10-0/+37
|
* s/color/colour/gGravatar Joseph2018-06-17-3/+3
|
* Change which key is being fetched, should be last commit to fix thisGravatar Joseph2018-06-17-1/+1
|
* Add param to audit_log function so that old data can be None and still workGravatar Joseph2018-06-17-5/+5
|
* Switch key argument to sorted to be a keyword argumentGravatar Joseph2018-06-17-1/+1
|
* Wiki audit logsGravatar Joseph Banks2018-06-17-109/+55
|
* Update GitLab URLGravatar Gareth Coles2018-06-12-1/+1
|
* Replace GitHub with GitLab across the projectGravatar Gareth Coles2018-06-07-1/+1
|
* [RST] Add directive for UIKit buttonsGravatar Gareth Coles2018-06-07-1/+1
|
* [Wiki] Fix actions not showing in some desirable casesGravatar Gareth Coles2018-06-03-5/+5
|
* Revisions improvements (#77)Gravatar Joseph2018-05-29-0/+12
| | | | | | * Support moving of revisions * Support removal of revisions upon page delete
* Privacy/Usability updates (#75)Gravatar Gareth Coles2018-05-20-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Use less intrusive oauth scopes, add login redirect method * Remove debugging prints, add missing __init__ * Work towards new privacy policy * Fix judging state icons on code jam management page * Jammer profile retraction and punishments based on jam status * Linting * [Jams] Deny profile saving for users < 13 years, and finish removal page * Fix tests * Clean up and address Volcyy's review * Add proper login redirection to require_roles decorator * Fix template is_staff() and add staff link to navigation * Address lemon's review * Linting * Privacy page formatting * Privacy page formatting
* Add RedirectView class for views that only redirect elsewhereGravatar Gareth Coles2018-05-15-8/+4
|
* 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-6/+3
|
* Migration runner and migrations (#69)Gravatar Gareth Coles2018-05-14-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-7/+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)
* 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-6/+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.
* [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-3/+6
|
* [Wiki] Fix dodgy staff edit redirect query paramGravatar Gareth Coles2018-04-12-1/+1
|
* Add page source view to wikiGravatar Gareth Coles2018-04-12-0/+45
|
* Abstract rst away and add icon directiveGravatar Gareth Coles2018-04-09-8/+5
|
* Easier debugging and optimised importsGravatar Gareth Coles2018-04-08-1/+3
| | | | 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
|
* 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
|