aboutsummaryrefslogtreecommitdiffstats
path: root/pysite/oauth.py (unfollow)
Commit message (Collapse)AuthorLines
2018-04-17Fix revision list JS & add menu item for revisionsGravatar Joseph-2/+7
2018-04-17Add wiki audit logs (#52)Gravatar Joseph-10/+388
* 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
2018-04-16JSON file had the wrong name. I should be incarcerated.Gravatar Leon Sandøy-1/+1
2018-04-16I guess we were testing for log level handling. Removed these tests. We ↵Gravatar Leon Sandøy-18/+1
always want TRACE level logging, we can filter in datadog.
2018-04-16We don't really need this env var anymore. We always want TRACE logging.Gravatar Leon Sandøy-3/+1
2018-04-16Adding the TRACE log level monkey patch from botGravatar Leon Sandøy-1/+20
2018-04-16Adding some trace logging to the table init to figure out what's going wrong.Gravatar Leon Sandøy-0/+9
2018-04-15Fixed the weird navbar sizingGravatar Jeremiah Boby-0/+5
Increased the navbar image max-width to 110%
2018-04-15Initial data for tables and refactoring the dev-mode database handling to be ↵Gravatar Leon Sandøy-21/+1373
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.
2018-04-14Added an About category with Partners view (#1pv7h) (#50)Gravatar Jeremiah Boby-18/+164
* 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
2018-04-13[Wiki] Fix wiki page interpreted text roleGravatar Gareth Coles-17/+11
Page slugs may contain slashes after all
2018-04-13Small styling fix for RST listsGravatar Gareth Coles-0/+8
2018-04-12oops, what are you doing here?Gravatar Leon Sandøy-1/+1
2018-04-12[Wiki] Fix contents shown on pages with no headersGravatar Gareth Coles-1/+1
2018-04-12[Wiki] Fix pages being wiped when saved without editsGravatar Gareth Coles-1/+13
2018-04-12[Wiki] TOC divider should be inside conditionalGravatar Gareth Coles-1/+1
2018-04-12[Wiki] Lower initial header level to 3Gravatar Gareth Coles-1/+3
2018-04-12[Wiki] Some excellent shitcode for document TOCsGravatar Gareth Coles-5/+96
2018-04-12[Wiki] Fix dodgy staff edit redirect query paramGravatar Gareth Coles-1/+1
2018-04-12[Wiki] Rearrange sidebarGravatar Gareth Coles-24/+24
2018-04-12[Wiki] Fix sidebar edit linkGravatar Gareth Coles-1/+2
2018-04-12Add page source view to wikiGravatar Gareth Coles-6/+149
2018-04-11Update resources page with new icons and formatting.Gravatar Gareth Coles-44/+179
NOTE: This does change the JSON!
2018-04-10Fix unit testsGravatar Gareth Coles-2/+2
2018-04-10Snowflakes should be handled as stringsGravatar Gareth Coles-10/+12
2018-04-10Allow contribs to edit wiki pagesGravatar Gareth Coles-1/+2
2018-04-10oops, forgot to update the testGravatar Leon Sandøy-3/+3
2018-04-10Moved all redirects into a folder and added one for github.Gravatar Leon Sandøy-3/+15
2018-04-10Whoops, Flake8Gravatar Gareth Coles-1/+1
2018-04-10Wiki page text roleGravatar Gareth Coles-1/+38
2018-04-10padding should be on the nav, not the container. my bad.Gravatar Leon Sandøy-4/+3
2018-04-10Flash of Unstyled Content fixGravatar Leon Sandøy-3/+63
2018-04-10[Wiki] Improve editor previewGravatar Gareth Coles-5/+11
Also, Flake8.
2018-04-10[Wiki] Prevent page saving if there's an errorGravatar Gareth Coles-1/+5
2018-04-10[Wiki] Add url_for text roleGravatar Gareth Coles-1/+39
2018-04-10[Wiki] Add code highlightingGravatar Gareth Coles-1/+74
2018-04-09[Wiki] Blurple sidebarGravatar Gareth Coles-1/+1
2018-04-09Forces the sidebar and the rest of that container div to fill the pageGravatar Leon Sandøy-2/+2
2018-04-09Abstract rst away and add icon directiveGravatar Gareth Coles-12/+68
2018-04-09[Wiki] Fix editorGravatar Gareth Coles-1/+1
2018-04-09Revert unnecessary changeGravatar Gareth Coles-2/+2
2018-04-09Add font-awesome pro, and default to port 80Gravatar Gareth Coles-4/+4
2018-04-09Update CONTRIBUTING.mdGravatar Gareth Coles-1/+2