diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-06-10 17:46:47 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-06-13 14:36:59 -0700 |
commit | 210f39a845e676e162eaa73d7ca401a8d3d89bcf (patch) | |
tree | ddeea7c9f1785a5f9553d942ede30645bf133a77 /python/fatcat_web/routes.py | |
parent | 682f263e8053aab9ecce427eee9f3c589816941b (diff) | |
download | fatcat-210f39a845e676e162eaa73d7ca401a8d3d89bcf.tar.gz fatcat-210f39a845e676e162eaa73d7ca401a8d3d89bcf.zip |
entity view tweaks
Diffstat (limited to 'python/fatcat_web/routes.py')
-rw-r--r-- | python/fatcat_web/routes.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/python/fatcat_web/routes.py b/python/fatcat_web/routes.py index e44f4f9b..ebb70d90 100644 --- a/python/fatcat_web/routes.py +++ b/python/fatcat_web/routes.py @@ -198,6 +198,10 @@ def generic_entity_view(entity_type, ident, view_template): elif entity.state == "deleted": return render_template('deleted_entity.html', entity_type=entity_type, entity=entity) + metadata = entity.to_dict() + metadata.pop('extra') + entity._metadata = metadata + return render_template(view_template, entity=entity, editgroup_id=None) def generic_editgroup_entity_view(editgroup_id, entity_type, ident, view_template): @@ -285,9 +289,9 @@ def webcapture_editgroup_view(editgroup_id, ident): def release_view(ident): return generic_entity_view('release', ident, 'release_view.html') -@app.route('/release/<ident>/files', methods=['GET']) -def release_view_files(ident): - return generic_entity_view('release', ident, 'release_files.html') +@app.route('/release/<ident>/contribs', methods=['GET']) +def release_view_contribs(ident): + return generic_entity_view('release', ident, 'release_contribs.html') @app.route('/release/<ident>/references', methods=['GET']) def release_view_references(ident): |