aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/fatcat_web/entity_helpers.py1
-rw-r--r--python/fatcat_web/templates/editgroup_view.html2
2 files changed, 2 insertions, 1 deletions
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 %}
</div>
{% if edit.revision %}
- Revision: <small><code>{{ edit.revision }}</code></small>
+ Revision: <small><code><a href="/{{ entity_type }}/rev/{{ edit.revision }}">{{ edit.revision }}</a></code></small>
{% endif %}
{% if edit.extra %}
<b>Extra Metadata (raw JSON)</b>