Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rnacentral/portal/templates/portal/genome-browser.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ <h1><i class="fa fa-map-marker"></i> Genome browser</h1>
<br><br>

<rnacentral-genome-browser></rnacentral-genome-browser>
{% if request.get_host == 'test.rnacentral.org' or request.get_host == 'localhost:8000' %}
{% if request.get_host == 'test.rnacentral.org' or request.get_host == 'test-2.rnacentral.org' or request.get_host == 'localhost:8000' %}
<script type="text/javascript" src="{% static "rnacentral-genome-browser/build/genome-browser.js" %}"></script>
{% else %}
<script type="text/javascript" src="https://rnacentral.github.io/rnacentral-genome-browser/build/genome-browser.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion rnacentral/portal/templates/portal/r2dt.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ <h1><i class="fa fa-search"></i> R2DT</h1>
"hideRnacentral": "true"
}'
/>
{% if request.get_host == 'test.rnacentral.org' or request.get_host == 'localhost' %}
{% if request.get_host == 'test.rnacentral.org' or request.get_host == 'test-2.rnacentral.org' or request.get_host == 'localhost' %}
<script type="text/javascript" src="{% static "r2dt-web/dist/r2dt-web.js" %}"></script>
{% else %}
<script type="text/javascript" src="https://rnacentral.github.io/r2dt-web/dist/r2dt-web.js"></script>
Expand Down
6 changes: 3 additions & 3 deletions rnacentral/portal/templates/portal/sequence.html
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ <h2>

{% if rna.has_secondary_structure %}
<!-- Load r2dt-web script early to prevent rendering errors -->
{% if request.get_host == 'test.rnacentral.org' or request.get_host == 'localhost:8000' %}
{% if request.get_host == 'test.rnacentral.org' or request.get_host == 'test-2.rnacentral.org' or request.get_host == 'localhost:8000' %}
<script type="text/javascript" src="{% static "r2dt-web/dist/r2dt-web.js" %}"></script>
{% else %}
<script type="text/javascript" src="https://rnacentral.github.io/r2dt-web/dist/r2dt-web.js"></script>
Expand Down Expand Up @@ -218,7 +218,7 @@ <h2 ng-if="taxid">
<div style="padding-left: 1rem; margin-top: -10px">
<rnacentral-genome-browser data='{"urs": "{{ context.upi }}", "taxid": "{{ context.taxid }}"}'></rnacentral-genome-browser>
</div>
{% if request.get_host == 'test.rnacentral.org' or request.get_host == 'localhost:8000' %}
{% if request.get_host == 'test.rnacentral.org' or request.get_host == 'test-2.rnacentral.org' or request.get_host == 'localhost:8000' %}
<script type="text/javascript" src="{% static "rnacentral-genome-browser/build/genome-browser.js" %}"></script>
{% else %}
<script type="text/javascript" src="https://rnacentral.github.io/rnacentral-genome-browser/build/genome-browser.js"></script>
Expand Down Expand Up @@ -455,7 +455,7 @@ <h2>Molecular Relationships</h2>
database='{"name": "RNAcentral"}'
customStyle='{"fixCss": "true", "articleTitleSize": "16px", "hideRnacentral": "true"}'
/>
{% if request.get_host == 'test.rnacentral.org' or request.get_host == 'localhost:8000' %}
{% if request.get_host == 'test.rnacentral.org' or request.get_host == 'test-2.rnacentral.org' or request.get_host == 'localhost:8000' %}
<script type="text/javascript" src="{% static "rnacentral-litscan/dist/rnacentral-litscan.js" %}"></script>
{% else %}
<script type="text/javascript" src="https://rnacentral.github.io/rnacentral-litscan/dist/rnacentral-litscan.js"></script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ <h1><i class="fa fa-search"></i> Sequence search</h1>
"trackingID": "G-37T22PHH90"
}'
/>
{% if ENVIRONMENT == "DEV" %}
{% if ENVIRONMENT == "DEV" or ENVIRONMENT == "HX" or ENVIRONMENT == "HH" %}
<script type="text/javascript" src="{% static "rnacentral-sequence-search-embed/dist/RNAcentral-sequence-search.js" %}"></script>
{% else %}
<script type="text/javascript" src="https://rnacentral.github.io/rnacentral-sequence-search-embed/dist/RNAcentral-sequence-search.js"></script>
Expand Down