Repository 'blast2html'
hg clone https://toolshed.g2.bx.psu.edu/repos/jankanis/blast2html

Changeset 6:d20ce91e1297 (2014-05-07)
Previous changeset 5:1df2bfce5c24 (2014-05-07) Next changeset 7:9e7927673089 (2014-05-08)
Commit message:
slight update
modified:
visualise.html.jinja
b
diff -r 1df2bfce5c24 -r d20ce91e1297 visualise.html.jinja
--- a/visualise.html.jinja Wed May 07 18:49:54 2014 +0200
+++ b/visualise.html.jinja Wed May 07 19:02:20 2014 +0200
[
@@ -92,7 +92,17 @@
       height: 5px;
       width: 40em;
       align: center;
-      margin: 5px auto;
+      margin: 4px auto 0 auto;
+      }
+      table.matchresult tr {
+      height: 5px;
+      }
+      table.matchresult td {
+      height: 5px;
+      }
+      a.matchlink {
+      display: block;
+      heigth: 5px;
       }
     </style>
 
@@ -128,11 +138,13 @@
      </tr></table>
 
      {% for line in match_colors %}
-     <table class=matchresult><tr>
- {% for match in line.colors %}
- <td width={{match[0]}} style="background-color: {{match[1]}}">&nbsp</td>
- {% endfor %}
-     </tr></table>
+     <a href={{line.link}}>
+       <table class=matchresult><tr>
+   {% for match in line.colors %}
+   <td style="background-color: {{match[1]}}; width: {{match[0]}}px" />
+   {% endfor %}
+       </tr></table>
+     </a>
      {% endfor %}
      
      <p>hoi</p>