diff visualise.html.jinja @ 6:d20ce91e1297

slight update
author Jan Kanis <jan.code@jankanis.nl>
date Wed, 07 May 2014 19:02:20 +0200
parents 1df2bfce5c24
children 9e7927673089
line wrap: on
line diff
--- 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>