diff --git a/NEMO/templates/customizations/customizations_upload.html b/NEMO/templates/customizations/customizations_upload.html index 0a9ad599d..ae80f37ca 100644 --- a/NEMO/templates/customizations/customizations_upload.html +++ b/NEMO/templates/customizations/customizations_upload.html @@ -1,6 +1,7 @@ {% load static %} {% load custom_tags_and_filters %} {% with element_name=name.split|join:"_"|lower extension=extension|default:"html" %} + {% file_url file_name=element_name|concat:"."|concat:extension as element_file_url %}
@@ -12,7 +13,7 @@ onchange="this.style.color = 'inherit';$('#{{ element_name }}_span').hide()"> {% if element %} {{ element_link_name|default:element_name }}.{{ extension }} {% endif %} @@ -25,8 +26,7 @@ {% if element and not hide_content %}
- {% get_media_prefix as media_prefix %} - {% button type="info" url=media_prefix|concat:element_name|concat:"."|concat:extension target="_blank" value="Show current content" icon="glyphicon-eye-open" %} + {% button type="info" url=element_file_url target="_blank" value="Show current content" icon="glyphicon-eye-open" %}
{% endif %} diff --git a/NEMO/templates/jumbotron/jumbotron.html b/NEMO/templates/jumbotron/jumbotron.html index 4632ef58b..045692f23 100644 --- a/NEMO/templates/jumbotron/jumbotron.html +++ b/NEMO/templates/jumbotron/jumbotron.html @@ -19,7 +19,7 @@ Jumbotron + style="{% if watermark %}background-image:linear-gradient(rgba(255,255,255,0.5), rgba(255,255,255,0.5)), url('{% file_url file_name="jumbotron_watermark.png" %}'){% endif %}">
diff --git a/NEMO/templates/safety/safety_data_sheets.html b/NEMO/templates/safety/safety_data_sheets.html index f57ddb123..e6389b715 100644 --- a/NEMO/templates/safety/safety_data_sheets.html +++ b/NEMO/templates/safety/safety_data_sheets.html @@ -65,7 +65,7 @@ {{ hazard.name }} logo + src="{{ hazard.logo.url }}" /> {% endfor %}