changeset 23:6995a6f34f3f

fix sectioning, add footer
author Jan Kanis <jan.code@jankanis.nl>
date Thu, 15 May 2014 11:05:39 +0200
parents efce16c98650
children c8347745bbad
files blast2html.html.jinja blast2html.py
diffstat 2 files changed, 19 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/blast2html.html.jinja	Thu May 15 10:48:09 2014 +0200
+++ b/blast2html.html.jinja	Thu May 15 11:05:39 2014 +0200
@@ -340,6 +340,15 @@
       color: #222222;
       }
 
+      footer {
+      text-align: center;
+      color: #cccccc;
+      font-size: 70%;
+      margin-top: 1em;
+      }
+      footer :link {
+      color: #5588cc;
+      }
       
     </style>
 
@@ -394,7 +403,7 @@
 
           <table class=headerdata>
             {% for param, value in params %}
-              <tr><td class=param>{{param}}:</td><td>{{value}}</td></tr>
+            <tr><td class=param>{{param}}:</td><td>{{value}}</td></tr>
             {% endfor %}
           </table>
 
@@ -585,10 +594,15 @@
           </div></div>
         </section>
         {% endif %}
+      </section>
+      {% endfor %}
+      {% endif %}
 
-        {% endfor %}
-        {% endif %}
     </div>
+
+    <footer>
+      This page was generated by <a href="...">blast2html</a>.
+    </footer>
   </body>
 </html>
 
--- a/blast2html.py	Thu May 15 10:48:09 2014 +0200
+++ b/blast2html.py	Thu May 15 11:05:39 2014 +0200
@@ -232,11 +232,10 @@
         percent_multiplier = 100 / query_length
         for i in range(1, query_length+1):
             if i % skip == 0:
-                yield dict(label = i, width = skip * percent_multiplier, shorter = False\)
+                yield dict(label = i, width = skip * percent_multiplier)
         if query_length % skip != 0:
             yield dict(label = query_length,
-                       width = (query_length % skip) * percent_multiplier,
-                       shorter = True)
+                       width = (query_length % skip) * percent_multiplier)
 
     @filter
     def hit_info(self, result):