diff blast2html.html.jinja @ 110:e17aae23cc1c

report query parameters for each query
author Jan Kanis <jan.code@jankanis.nl>
date Wed, 09 Jul 2014 15:04:37 +0200
parents 02b795b784e1
children 7aa28753d7b3
line wrap: on
line diff
--- a/blast2html.html.jinja	Tue Jul 08 17:51:22 2014 +0200
+++ b/blast2html.html.jinja	Wed Jul 09 15:04:37 2014 +0200
@@ -396,6 +396,18 @@
 
       {% else %}
 
+      <section class=header>
+
+        <h1>Nucleotide Blast results</h1>
+
+        <table class=headerdata>
+          {% for param, value in params %}
+          <tr><td class=param>{{param}}:</td><td>{{value}}</td></tr>
+          {% endfor %}
+        </table>
+
+      </section>
+
       {% if blast.BlastOutput_iterations.findall('Iteration') | length > 1 %}
       <section class=index>
         <h1>Queries</h1>
@@ -420,7 +432,7 @@
         <section class=header>
 
           <table class=headerdata>
-            {% for param, value in params %}
+            {% for param, value in result|params %}
             <tr><td class=param>{{param}}:</td><td>{{value}}</td></tr>
             {% endfor %}
           </table>