add application launcher buttons for stexaminer and relationship mapper
[scpubgit/stemmatology.git] / stemmaweb / root / src / stexaminer.tt
CommitLineData
cf9626aa 1[% PROCESS header.tt
2 pagetitle = "Stexaminer - $text_title"
57acbbe2 3 applicationjs = c.uri_for('/js/stexaminer.js')
4 applicationstyle = c.uri_for('/css/stexaminer.css')
cf9626aa 5%]
6 <h1>Stexaminer</h1>
7 <h2>[% text_title %]</h2>
8 <div id="statistics">
9 <p>Analyzed [% total %] variant locations, of which [% genealogical %] entirely followed the stemma. [% conflict %] readings conflicted with the stemma.</p>
10 </div>
11 <div id="stemma_graph">
12 [% svg %]
13 </div>
14 <div id="variants_table">
15 <table>
16[% FOREACH row IN variants -%]
17[% INCLUDE variantrow %]
18[% END -%]
19 </table>
20 </div>
21[% PROCESS footer.tt %]
22
6b70c348 23
24[% BLOCK variantrow -%]
25[% SET rowclass = 'class="genealogical"' IF row.genealogical -%]
26[% SET rowclass = 'class="coincidental"' UNLESS row.genealogical -%]
27 <tr [% rowclass %]>
28 <th><span class="rowid">[% row.id %]</span></th>
29[% FOREACH reading IN row.readings -%]
30[% SET cellclass = 'clickable conflict' IF reading.conflict -%]
31[% SET cellclass = 'clickable' IF !reading.conflict -%]
32 <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>
33[% END -%]
34[% FILTER repeat( row.empty ) -%]
35 <td/>
36[% END -%]
37 </tr>
38[% END -%]