Update templates to consistently use {% static %} instead of hard coding paths
[htsworkflow.git] / htsworkflow / frontend / templates / samples / species_detail.html
index 5e47679a94a83d9f6f2e8f0932a8902464364a16..d22c9cd58b6ffad4aa5acea4df3ae72d4b868e4e 100644 (file)
@@ -1,9 +1,10 @@
 {% extends "base_site.html" %}
-{% load adminmedia humanize i18n %}
+{% load staticfiles %}
+{% load humanize i18n %}
 {% block extrahead %}
     <!-- App Stuff -->
-    <link type="text/css" rel="stylesheet" href="/static/css/app.css" />
-    <script type="text/javascript" src="/static/js/jquery.min.js"></script>
+    <link type="text/css" rel="stylesheet" href="{% static "css/app.css" %}" />
+    <script type="text/javascript" src="{% static 'js/jquery.min.js" %}></script>
     
     {% block additional_javascript %}
     {% endblock %}
@@ -13,8 +14,8 @@
 <div id="genome_detail">
   <h2>About this Genome</h2>
   <b>Common Name</b>: 
-     <span property="libns:species">{{ species.common_name}}</span><br/>
+     <span property="libns:species_name">{{ species.common_name}}</span><br/>
   <b>Scientific Name</b>: 
-     <span property="libns:species">{{ species.scientific_name}}</span><br/>
+     <span property="libns:species_name">{{ species.scientific_name}}</span><br/>
 </div>  
 {% endblock %}