From 6a14c4be59794e6fedcd5874e09407cecf76cfdf Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 13 Jun 2019 11:38:14 -0700 Subject: revision links from editgroup, and typofix --- python/fatcat_web/entity_helpers.py | 1 + python/fatcat_web/templates/editgroup_view.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/python/fatcat_web/entity_helpers.py b/python/fatcat_web/entity_helpers.py index ba481ddd..8a28deb3 100644 --- a/python/fatcat_web/entity_helpers.py +++ b/python/fatcat_web/entity_helpers.py @@ -32,6 +32,7 @@ def generic_get_editgroup_entity(editgroup, entity_type, ident): edits = editgroup.edits.containers else: raise NotImplementedError + revision_id = None for e in edits: if e.ident == ident: revision_id = e.revision diff --git a/python/fatcat_web/templates/editgroup_view.html b/python/fatcat_web/templates/editgroup_view.html index 52b55d43..41434a42 100644 --- a/python/fatcat_web/templates/editgroup_view.html +++ b/python/fatcat_web/templates/editgroup_view.html @@ -32,7 +32,7 @@ {% endif %} {% if edit.revision %} - Revision: {{ edit.revision }} + Revision: {{ edit.revision }} {% endif %} {% if edit.extra %} Extra Metadata (raw JSON) -- cgit v1.2.3