about summary refs log tree commit diff
path: root/templates/tableview0.html
diff options
context:
space:
mode:
authorhakangunturkun2020-03-04 12:02:15 -0600
committerhakangunturkun2020-03-04 12:02:15 -0600
commitcea42615bd0c0c02bad574db42fc7c44c5ca5c66 (patch)
treed654a9cc3bb21c2dae3e6fc800de53a0118ff942 /templates/tableview0.html
parentafa556f338cb8a250fd00b78e8ef8039b9074382 (diff)
downloadgenecup-cea42615bd0c0c02bad574db42fc7c44c5ca5c66.tar.gz
fix 0 hit history view
Diffstat (limited to 'templates/tableview0.html')
-rw-r--r--templates/tableview0.html17
1 files changed, 9 insertions, 8 deletions
diff --git a/templates/tableview0.html b/templates/tableview0.html
index c0299ce..a81f412 100644
--- a/templates/tableview0.html
+++ b/templates/tableview0.html
@@ -2,14 +2,14 @@
 {% block content %}
 
 <script src="https://cdnjs.cloudflare.com/ajax/libs/cytoscape/3.6.0/cytoscape.min.js" integrity="sha256-uZV2wRlscgr52q3Wb3Oew0rKCPsM3g4aBTv46sF4qzg=" crossorigin="anonymous"></script>
+
 <head>
     {%if num_gene==1%}
-        <h2> <b>GENE(S): {{gene_name}}</b> </h2>
+        <h2> <b>GENE:  {{gene_name}}</b> </h2>
     {%else%}
     <h2> <b>GENES: {{gene_name}}</b> </h2>
     {%endif%}
 </head>
-
 <style>
     * {
       box-sizing: border-box;
@@ -70,12 +70,13 @@
         var x=document.getElementById('myTable').insertRow(1);
         
         control=0;
-        {%for p1 in jedges['data']%}
-            {%if p1['target'] == p['id']%}
-                control=1
-            {%endif%}
-        {%endfor%}
-
+        {%if nodata_temp!=1%}
+          {%for p1 in jedges['data']%}
+              {%if p1['target'] == p['id']%}
+                  control=1
+              {%endif%}
+          {%endfor%}
+        {%endif%}
         if(control !=1){
             y= x.insertCell(0);
             y.innerHTML='{{p['id']}}';