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') 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 @@