diff options
author | Martin Czygan <martin.czygan@gmail.com> | 2021-03-10 21:24:25 +0100 |
---|---|---|
committer | Martin Czygan <martin.czygan@gmail.com> | 2021-03-10 21:24:25 +0100 |
commit | 9ec27599bad4b36e6313ee0cd15948a5425731ad (patch) | |
tree | 5efcf9a2d162e3121c446cd89c906db670942a68 /python | |
parent | 8e5941f6599bbb7de9d0627797320eba1232c58b (diff) | |
download | fatcat-9ec27599bad4b36e6313ee0cd15948a5425731ad.tar.gz fatcat-9ec27599bad4b36e6313ee0cd15948a5425731ad.zip |
changelog template: fix api link
When assumed "live" point to the external api link, for any other
instance use the configured value.
Diffstat (limited to 'python')
-rw-r--r-- | python/fatcat_web/templates/changelog.html | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/python/fatcat_web/templates/changelog.html b/python/fatcat_web/templates/changelog.html index 322f3e3b..3ad01d63 100644 --- a/python/fatcat_web/templates/changelog.html +++ b/python/fatcat_web/templates/changelog.html @@ -37,7 +37,11 @@ inspect every change all the way back to the start. </table> <div style="float: right; font-size: smaller;"> - <a href="{{ config.FATCAT_API_HOST }}/changelog">As JSON via API</a> + {% if config.FATCAT_DOMAIN == "fatcat.wiki" %} + <a href="https://api.fatcat.wiki/v0/changelog">As JSON via API</a> + {% else %} + <a href="{{ config.FATCAT_API_HOST }}/changelog">As JSON via API</a> + {% endif %} </div> {% endblock %} |