summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-09-28 13:14:21 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-09-28 13:14:21 -0700
commit66104716163f347a9ebbe052efc88f371ff305d6 (patch)
tree6c28bc569ff6f7ab13960bc002d42f4fcc8bd574 /python
parentb51bd93ce7d7ab758b00a938cc665a091d2e2995 (diff)
downloadfatcat-66104716163f347a9ebbe052efc88f371ff305d6.tar.gz
fatcat-66104716163f347a9ebbe052efc88f371ff305d6.zip
try to shorten extra metadata
Diffstat (limited to 'python')
-rw-r--r--python/fatcat/templates/release_view.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/fatcat/templates/release_view.html b/python/fatcat/templates/release_view.html
index 22234755..57fe5725 100644
--- a/python/fatcat/templates/release_view.html
+++ b/python/fatcat/templates/release_view.html
@@ -67,7 +67,7 @@ formal publications, etc) linked to the same work.
{% if release.extra != None %}
<h3>Extra Metadata (raw JSON)</h3>
{% for (key, value) in release.extra.items() %}
-<code><b>{{ key }}:</b> {{ value }}</code><br>
+<code><b>{{ key }}:</b> {% if len(value) > 80 %} {{ value[:80] }}... {% else %} {{ value }} {% endif %}</code><br>
{% endfor %}
{% endif %}