diff blast2html.html.jinja @ 76:7d0d46168fd5 py2.6

Format all numbers in a predictable way
author Jan Kanis <jan.code@jankanis.nl>
date Thu, 19 Jun 2014 14:07:00 +0200
parents 4d2c25baf5a3
children 4378d11f0ed7
line wrap: on
line diff
--- a/blast2html.html.jinja	Wed Jun 18 17:50:32 2014 +0200
+++ b/blast2html.html.jinja	Thu Jun 19 14:07:00 2014 +0200
@@ -467,7 +467,7 @@
                   <div class=graphicrow>
                     <div>
                       {% for s in result|queryscale %}
-                      <div class=graphicitem style="width: {{s.width}}%">
+                      <div class=graphicitem style="width: {{s.width|numfmt}}%">
                         {% if s.width > 3.0 %}
                         <div>{{s.label}}</div>
                         {% else %}
@@ -490,7 +490,7 @@
                   <div class="matchrow graphicrow">
                     {% for hit in line.colors %}
                     <div class="matchitem graphicitem"
-                         style="background-color: {{hit[1]}}; width: {{hit[0]}}%"></div>
+                         style="background-color: {{hit[1]}}; width: {{hit[0]|numfmt}}%"></div>
                     {% endfor %}
                   </div>
                 </a>