2 pagetitle = "Stexaminer - $text_title"
3 applicationjs = c.uri_for('/js/stexaminer.js')
4 applicationstyle = c.uri_for('/css/stexaminer.css')
6 <script type="text/javascript">
7 var readingstats = [% reading_statistics %];
8 var graphdot = '[% graphdot %]';
12 <h2>[% text_title %]</h2>
13 <div id="variants_table">
15 [% FOREACH row IN variants -%]
16 [% INCLUDE variantrow %]
21 <div id="stemma_graph">
24 <div id="row_statistics">
25 <h3>Aggregate text statistics</h3>
27 <li>Total number of variant locations analyzed: [% total %]</li>
28 <li>Number of fully genealogical locations: [% genealogical %]</li>
29 <li>Number of readings that conflict with the stemma: [% conflict %]</li>
30 <li>Genealogical reading transitions by relationship type: [% todo %]</li>
32 <p>(Choose a row in the table to display statistics about individual readings.)</p>
36 <div id="stats_template" class="template">
37 <h3>Statistics for readings at <span id="statrank"></span>:</h3>
38 <!-- reading_template will be appended here for each reading -->
41 <div id="reading_template" class="template">
42 <div class="reading_statistics">
43 <span class="readinglabel"></span> - copied <span class="reading_copied"></span> time(s), changed <span class="reading_changed"></span> time(s)<br/>
44 Reading root(s) at <span class="readingroots"></span><br/>
45 <!-- reading_parent_template will be appended here if there are parents -->
49 <div id="reading_parent_template" class="template">
50 <div class="parent_statistics">
52 <ul class="reading_parent_list"></ul>
56 [% PROCESS footer.tt %]
59 [% BLOCK variantrow -%]
60 [% SET rowclass = 'class="genealogical"' IF row.genealogical -%]
61 [% SET rowclass = 'class="coincidental"' UNLESS row.genealogical -%]
63 <th><span class="rowid" onclick="handle_row_click($(this))">[% row.id %]</span></th>
64 [% FOREACH reading IN row.readings -%]
65 [% SET cellclass = 'clickable conflict' IF reading.conflict -%]
66 [% SET cellclass = 'clickable' IF !reading.conflict -%]
67 <td class="[% cellclass %]"><span onclick="color_nodes($(this).parent().index(), [% reading.group %], [% row.missing %]);$(this).parents('tr').addClass('active_variant_row');$(this).parent().addClass('active_variant_cell cellb'+($(this).parent().index()-1))">[% reading.text %]</span></td>
69 [% FILTER repeat( row.empty ) -%]