## search.html
<%!
from itertools import cycle
colors = cycle( [ 'even', 'odd' ] )
%>
<%inherit file="base.html"/>
<%def name="title()">
Search
%def>
Search
% if param.word:
% if len(query)>0:
Showing the best ${len(query)} matches
Name
| Chromosome
| Start:End
| Type
|
% for color, row in zip(colors, query):
${makerow(color, row)}
% endfor
% else:
No results found
% endif
%endif
<%def name="makerow(color, row)">
${row.name} |
${row.chrom} |
${row.start}:${row.end} |
${row.label.name} |
%def>