Unverified Commit 56ca6523 authored by Carlos Eduardo Ribas's avatar Carlos Eduardo Ribas Committed by GitHub
Browse files

Merge branch 'master-python3' into python3-version

parents 07dbdda6 14b22d96
......@@ -30,7 +30,7 @@ examples = [
'description': 'Parcubacteria LOOT RNA',
},
{
'uid': 'URS0000D9E279',
'uid': 'URS0001BC256D',
'taxid': '9606',
'description': 'Human FGF-2 internal ribosome entry site',
},
......
......@@ -137,6 +137,12 @@ def rna_view(request, upi, taxid=None):
except AttributeError:
summary_so_terms = ''
# Check if r2dt-web is installed
path = os.path.join(
settings.PROJECT_PATH, 'rnacentral', 'portal', 'static', 'r2dt-web', 'dist', 'r2dt-web.js'
)
plugin_installed = True if os.path.isfile(path) else False
context = {
'upi': upi,
'symbol_counts': symbol_counts,
......@@ -152,6 +158,7 @@ def rna_view(request, upi, taxid=None):
'mirna_regulators': rna.get_mirna_regulators(taxid=taxid),
'annotations_from_other_species': rna.get_annotations_from_other_species(taxid=taxid),
'intact': rna.get_intact(taxid),
'plugin_installed': plugin_installed,
}
response = render(request, 'portal/sequence.html', {'rna': rna, 'context': context})
# define canonical URL for Google
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment