diff options
Diffstat (limited to 'python')
-rw-r--r-- | python/fatcat_web/templates/entity_macros.html | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/python/fatcat_web/templates/entity_macros.html b/python/fatcat_web/templates/entity_macros.html index e553fe79..4d6e80f2 100644 --- a/python/fatcat_web/templates/entity_macros.html +++ b/python/fatcat_web/templates/entity_macros.html @@ -37,7 +37,21 @@ Revision: <br><small><code><a href="/{{ entity_type }}/rev/{{ entity.revision }}">{{ entity.revision }}</a></code></small> {% endif %} - <br><a href="{% if config.FATCAT_DOMAIN == 'dev.fatcat.wiki' %}http://localhost:9411{% else %}https://api.{{ config.FATCAT_DOMAIN }}{% endif %}/v0/{{ entity_type }}/{{ entity.ident }}{% if expand %}?expand={{ expand}}{% endif %}">As JSON object via API</a> + <br><a href=" + {%- if config.FATCAT_DOMAIN == 'dev.fatcat.wiki' -%} + http://localhost:9411 + {%- else -%} + https://api.{{ config.FATCAT_DOMAIN }} + {%- endif -%} + /v0/{{ entity_type }} + {%- if entity.ident -%} + /{{ entity.ident }} + {%- elif entity.revision -%} + /rev/{{ entity.revision }} + {% endif %} + {% if expand %}?expand={{ expand}}{% endif %}"> + As JSON object via API + </a> </div> <div class="two ui buttons bottom attached"> |