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 = [ ...@@ -30,7 +30,7 @@ examples = [
'description': 'Parcubacteria LOOT RNA', 'description': 'Parcubacteria LOOT RNA',
}, },
{ {
'uid': 'URS0000D9E279', 'uid': 'URS0001BC256D',
'taxid': '9606', 'taxid': '9606',
'description': 'Human FGF-2 internal ribosome entry site', 'description': 'Human FGF-2 internal ribosome entry site',
}, },
......
...@@ -137,6 +137,12 @@ def rna_view(request, upi, taxid=None): ...@@ -137,6 +137,12 @@ def rna_view(request, upi, taxid=None):
except AttributeError: except AttributeError:
summary_so_terms = '' 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 = { context = {
'upi': upi, 'upi': upi,
'symbol_counts': symbol_counts, 'symbol_counts': symbol_counts,
...@@ -152,6 +158,7 @@ def rna_view(request, upi, taxid=None): ...@@ -152,6 +158,7 @@ def rna_view(request, upi, taxid=None):
'mirna_regulators': rna.get_mirna_regulators(taxid=taxid), 'mirna_regulators': rna.get_mirna_regulators(taxid=taxid),
'annotations_from_other_species': rna.get_annotations_from_other_species(taxid=taxid), 'annotations_from_other_species': rna.get_annotations_from_other_species(taxid=taxid),
'intact': rna.get_intact(taxid), 'intact': rna.get_intact(taxid),
'plugin_installed': plugin_installed,
} }
response = render(request, 'portal/sequence.html', {'rna': rna, 'context': context}) response = render(request, 'portal/sequence.html', {'rna': rna, 'context': context})
# define canonical URL for Google # 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