From 1a371b894a80510241c5804a8fba43a744174716 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 1 Apr 2019 20:48:34 -0700 Subject: allow HTML in flash messages (dangerous) This change means we need to be careful constructing flash messages (not allow user input in them). --- python/fatcat_web/templates/base.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/fatcat_web/templates/base.html') diff --git a/python/fatcat_web/templates/base.html b/python/fatcat_web/templates/base.html index d3353ca4..fcd7ccdf 100644 --- a/python/fatcat_web/templates/base.html +++ b/python/fatcat_web/templates/base.html @@ -84,7 +84,7 @@
Now Hear This...
-- cgit v1.2.3 From 668076105a975c2898c912c6259aa0189a7662a7 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 3 Apr 2019 12:10:54 -0700 Subject: reviewable view; improvments to editgroup views --- python/fatcat_web/routes.py | 9 +++++++++ python/fatcat_web/templates/base.html | 4 ++-- python/fatcat_web/templates/changelog.html | 2 +- .../fatcat_web/templates/editgroup_reviewable.html | 23 ++++++++++++++++++++++ python/fatcat_web/templates/editor_editgroups.html | 22 +++++++++++++-------- python/fatcat_web/templates/editor_view.html | 2 +- 6 files changed, 50 insertions(+), 12 deletions(-) create mode 100644 python/fatcat_web/templates/editgroup_reviewable.html (limited to 'python/fatcat_web/templates/base.html') diff --git a/python/fatcat_web/routes.py b/python/fatcat_web/routes.py index 57b5d5af..7a148e94 100644 --- a/python/fatcat_web/routes.py +++ b/python/fatcat_web/routes.py @@ -416,6 +416,15 @@ def changelog_entry_view(index): abort(ae.status) return render_template('changelog_view.html', entry=entry, editgroup=entry.editgroup) +@app.route('/reviewable', methods=['GET']) +def reviewable_view(): + try: + #limit = int(request.args.get('limit', 10)) + entries = api.get_editgroups_reviewable() + except ApiException as ae: + abort(ae.status) + return render_template('editgroup_reviewable.html', entries=entries) + ### Search ################################################################## @app.route('/release/search', methods=['GET', 'POST']) diff --git a/python/fatcat_web/templates/base.html b/python/fatcat_web/templates/base.html index fcd7ccdf..37641c90 100644 --- a/python/fatcat_web/templates/base.html +++ b/python/fatcat_web/templates/base.html @@ -59,8 +59,8 @@