summaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/templates
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-03-19 19:09:28 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-03-19 19:09:30 -0700
commit06e73a9e4a9592ad4faaad4c082c829f77919ab8 (patch)
treedc575c44fa8f0a8426a89d97be99771d350a9b3b /python/fatcat_web/templates
parent4227f573dbfcdfe3a43837858f4a8f63ff508b86 (diff)
downloadfatcat-06e73a9e4a9592ad4faaad4c082c829f77919ab8.tar.gz
fatcat-06e73a9e4a9592ad4faaad4c082c829f77919ab8.zip
localhost JSON links fro dev.fatcat.wiki
Might be better/simpler to set up DNS A records on 'dev.fatcat.wiki', but that would require some hack to make offline dev work correctly.
Diffstat (limited to 'python/fatcat_web/templates')
-rw-r--r--python/fatcat_web/templates/entity_macros.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/fatcat_web/templates/entity_macros.html b/python/fatcat_web/templates/entity_macros.html
index e38527f2..13e2d305 100644
--- a/python/fatcat_web/templates/entity_macros.html
+++ b/python/fatcat_web/templates/entity_macros.html
@@ -15,7 +15,7 @@
Revision:
<br><small><code>{{ entity.revision }}</code></small>
{% endif %}
- <br><a href="https://api.{{ config.FATCAT_DOMAIN }}/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 }}/{{ entity.ident }}{% if expand %}?expand={{ expand}}{% endif %}">As JSON object via API</a>
</div>
<div class="two ui buttons bottom attached">