fix JS paths
[scpubgit/stemmatology.git] / stemmaweb / root / src / stexaminer.tt
CommitLineData
cf9626aa 1[% PROCESS header.tt
2 pagetitle = "Stexaminer - $text_title"
801332be 3 applicationjs = base _ "js/stexaminer.js"
cf9626aa 4%]
5 <h1>Stexaminer</h1>
6 <h2>[% text_title %]</h2>
7 <div id="statistics">
8 <p>Analyzed [% total %] variant locations, of which [% genealogical %] entirely followed the stemma. [% conflict %] readings conflicted with the stemma.</p>
9 </div>
10 <div id="stemma_graph">
11 [% svg %]
12 </div>
13 <div id="variants_table">
14 <table>
15[% FOREACH row IN variants -%]
16[% INCLUDE variantrow %]
17[% END -%]
18 </table>
19 </div>
20[% PROCESS footer.tt %]
21
6b70c348 22
23[% BLOCK variantrow -%]
24[% SET rowclass = 'class="genealogical"' IF row.genealogical -%]
25[% SET rowclass = 'class="coincidental"' UNLESS row.genealogical -%]
26 <tr [% rowclass %]>
27 <th><span class="rowid">[% row.id %]</span></th>
28[% FOREACH reading IN row.readings -%]
29[% SET cellclass = 'clickable conflict' IF reading.conflict -%]
30[% SET cellclass = 'clickable' IF !reading.conflict -%]
31 <td class="[% cellclass %]"><span onclick="color_nodes($(this).parent().index(), [% reading.group %], [% reading.missing %]);$(this).parents('tr').addClass('active_variant_row');$(this).parent().addClass('active_variant_cell cellb'+($(this).parent().index()-1))">[% reading.text %]</span></td>
32[% END -%]
33[% FILTER repeat( row.empty ) -%]
34 <td/>
35[% END -%]
36 </tr>
37[% END -%]