comparison 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
comparison
equal deleted inserted replaced
75:4d2c25baf5a3 76:7d0d46168fd5
465 <div class=scale> 465 <div class=scale>
466 <div>query:</div> 466 <div>query:</div>
467 <div class=graphicrow> 467 <div class=graphicrow>
468 <div> 468 <div>
469 {% for s in result|queryscale %} 469 {% for s in result|queryscale %}
470 <div class=graphicitem style="width: {{s.width}}%"> 470 <div class=graphicitem style="width: {{s.width|numfmt}}%">
471 {% if s.width > 3.0 %} 471 {% if s.width > 3.0 %}
472 <div>{{s.label}}</div> 472 <div>{{s.label}}</div>
473 {% else %} 473 {% else %}
474 <div>&nbsp;</div> 474 <div>&nbsp;</div>
475 <div class=lastlabel>{{s.label}}</div> 475 <div class=lastlabel>{{s.label}}</div>
488 onmouseout='document.getElementById("defline{{result|nodeid}}").innerHTML="Mouse-over to show defline and scores, click to show alignments"' 488 onmouseout='document.getElementById("defline{{result|nodeid}}").innerHTML="Mouse-over to show defline and scores, click to show alignments"'
489 title="{{line.defline}}"> 489 title="{{line.defline}}">
490 <div class="matchrow graphicrow"> 490 <div class="matchrow graphicrow">
491 {% for hit in line.colors %} 491 {% for hit in line.colors %}
492 <div class="matchitem graphicitem" 492 <div class="matchitem graphicitem"
493 style="background-color: {{hit[1]}}; width: {{hit[0]}}%"></div> 493 style="background-color: {{hit[1]}}; width: {{hit[0]|numfmt}}%"></div>
494 {% endfor %} 494 {% endfor %}
495 </div> 495 </div>
496 </a> 496 </a>
497 497
498 {% endfor %} 498 {% endfor %}