aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-06-13 11:38:14 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-06-13 11:38:14 -0700
commit6a14c4be59794e6fedcd5874e09407cecf76cfdf (patch)
tree4b7eb8004b93e24a31fcf7b9d5c53ff8f0491583
parent71f2816bef7fec5e7d2c4bca6681569781ef85fb (diff)
downloadfatcat-6a14c4be59794e6fedcd5874e09407cecf76cfdf.tar.gz
fatcat-6a14c4be59794e6fedcd5874e09407cecf76cfdf.zip
revision links from editgroup, and typofix
-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>