aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/templates/entity_macros.html
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-04-04 20:24:02 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-04-04 20:24:02 -0700
commit5621d42127ad11dd032842b8b99903ff002c73d0 (patch)
tree50bfcc4a2a33e3473d8604777b3dd3b06f881c9f /python/fatcat_web/templates/entity_macros.html
parentb665ea21aea1773735558f2486252b01a79f45b2 (diff)
downloadfatcat-5621d42127ad11dd032842b8b99903ff002c73d0.tar.gz
fatcat-5621d42127ad11dd032842b8b99903ff002c73d0.zip
web editing of container urls
Diffstat (limited to 'python/fatcat_web/templates/entity_macros.html')
-rw-r--r--python/fatcat_web/templates/entity_macros.html8
1 files changed, 8 insertions, 0 deletions
diff --git a/python/fatcat_web/templates/entity_macros.html b/python/fatcat_web/templates/entity_macros.html
index 3e83b9d4..6d9ceed0 100644
--- a/python/fatcat_web/templates/entity_macros.html
+++ b/python/fatcat_web/templates/entity_macros.html
@@ -35,6 +35,14 @@
<tr><td class="three wide right aligned"><code>{{ key }}.{{ inner_key }}</code></td>
<td class="seven wide"><code>{{ inner_value }}</code>
{% endfor %}
+ {% elif key in ("urls") and value and value is iterable and value is not string %}
+ <tr><td class="three wide right aligned"><code>{{ key }}</code></td>
+ <td class="seven wide">
+ <code>
+ {% for u in value %}
+ <a href="{{ u }}">{{ u }}</a><br>
+ {% endfor %}
+ </code>
{% else %}
<tr><td class="three wide right aligned"><code>{{ key }}</code></td>
<td class="seven wide"><code>{{ value }}</code>