aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat/routes.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-06-25 10:46:42 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-06-25 10:46:42 -0700
commit7ac552af63a14ed2ca36a767e762399904652d44 (patch)
treefd9a7670058185fb67f6673e7de4d9ea2cb8824d /python/fatcat/routes.py
parentde3eefb2125c22661950ce21c2524b83e0688ea8 (diff)
downloadfatcat-7ac552af63a14ed2ca36a767e762399904652d44.tar.gz
fatcat-7ac552af63a14ed2ca36a767e762399904652d44.zip
WIP on UI update
Diffstat (limited to 'python/fatcat/routes.py')
-rw-r--r--python/fatcat/routes.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/python/fatcat/routes.py b/python/fatcat/routes.py
index 77aecff3..5bd68ba1 100644
--- a/python/fatcat/routes.py
+++ b/python/fatcat/routes.py
@@ -86,11 +86,15 @@ def release_view(ident):
try:
entity = api.get_release(str(ident))
files = api.get_release_files(str(ident))
+ container = None
+ if entity.container_id is not None:
+ container = api.get_container(entity.container_id)
except ApiException as ae:
abort(ae.status)
authors = [c for c in entity.contribs if c.role in ('author', None)]
authors = sorted(authors, key=lambda c: c.index)
- return render_template('release_view.html', release=entity, authors=authors, files=files)
+ return render_template('release_view.html', release=entity,
+ authors=authors, files=files, container=container)
@app.route('/release/lookup', methods=['GET'])
def release_lookup():