summaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/templates/entity_macros.html
diff options
context:
space:
mode:
authorMartin Czygan <martin@archive.org>2020-04-24 22:43:46 +0000
committerMartin Czygan <martin@archive.org>2020-04-24 22:43:46 +0000
commit9b4d87a4e20e97fa40c0a4ff37d459628f1978b2 (patch)
tree0d24bf46c7722daa1b9a063ac5753d605ea5facf /python/fatcat_web/templates/entity_macros.html
parent661579dfc7025a9443bc41fd8f344096119cdfd3 (diff)
parent149140e2b9f66f389299914c058c648d8bba8120 (diff)
downloadfatcat-9b4d87a4e20e97fa40c0a4ff37d459628f1978b2.tar.gz
fatcat-9b4d87a4e20e97fa40c0a4ff37d459628f1978b2.zip
Merge branch 'bnewbold-non-ident-fix' into 'master'
fix ident=None broken links Closes #3 See merge request webgroup/fatcat!49
Diffstat (limited to 'python/fatcat_web/templates/entity_macros.html')
-rw-r--r--python/fatcat_web/templates/entity_macros.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/fatcat_web/templates/entity_macros.html b/python/fatcat_web/templates/entity_macros.html
index 7c5436c6..3308a3d5 100644
--- a/python/fatcat_web/templates/entity_macros.html
+++ b/python/fatcat_web/templates/entity_macros.html
@@ -54,10 +54,12 @@
</a>
</div>
+{% if entity.ident %}
<div class="two ui buttons bottom attached">
<a href="{% if editgroup %}/editgroup/{{ editgroup.editgroup_id }}{% endif %}/{{ entity_type }}/{{ entity.ident }}/edit" class="ui blue button">Edit Metadata</a>
<a href="/{{ entity_type }}/{{ entity.ident }}/history" class="ui button">View History</a>
</div>
+{% endif %}
{%- endmacro %}