Commit | Line | Data |
d5514865 |
1 | [% WRAPPER header.tt |
fb6e49b3 |
2 | pagetitle = "Stexaminer - $text_title" |
f007ac1e |
3 | applicationjs = c.uri_for('/js/stexaminer.js') |
4 | applicationstyle = c.uri_for('/css/stexaminer.css') |
fb6e49b3 |
5 | %] |
d5514865 |
6 | <script type="text/javascript"> |
7 | var readingstats = [% reading_statistics %]; |
be8bf746 |
8 | var graphdot = '[% graphdot %]'; |
d5514865 |
9 | </script> |
10 | [% END -%] |
e816672a |
11 | <div id="topbanner"> |
12 | <div id="bannerinfo"> |
2fd8f80c |
13 | <a href="help" title="Stexaminer help" class="navlink" id="aboutlink">Help / About</a> |
e816672a |
14 | </div> |
15 | <h1>Stexaminer</h1> |
16 | <h2>[% text_title %]</h2> |
2fd8f80c |
17 | <p><span class="navlink" onClick="$('#options').dialog('open')">Analysis options</span></p> |
0c236c96 |
18 | </div> |
fb6e49b3 |
19 | <div id="variants_table"> |
20 | <table> |
21 | [% FOREACH row IN variants -%] |
22 | [% INCLUDE variantrow %] |
23 | [% END -%] |
24 | </table> |
25 | </div> |
be8bf746 |
26 | <div> |
27 | <div id="stemma_graph"> |
28 | [% svg %] |
29 | </div> |
30 | <div id="row_statistics"> |
31 | <h3>Aggregate text statistics</h3> |
32 | <ul> |
33 | <li>Total number of variant locations analyzed: [% total %]</li> |
34 | <li>Number of fully genealogical locations: [% genealogical %]</li> |
35 | <li>Number of readings that conflict with the stemma: [% conflict %]</li> |
36 | <li>Genealogical reading transitions by relationship type: [% todo %]</li> |
37 | </ul> |
38 | <p>(Choose a row in the table to display statistics about individual readings.)</p> |
39 | </div> |
d5514865 |
40 | </div> |
ef3db56f |
41 | |
42 | <div id="stats_template" class="template"> |
43 | <h3>Statistics for readings at <span id="statrank"></span>:</h3> |
44 | <!-- reading_template will be appended here for each reading --> |
45 | </div> |
46 | |
be8bf746 |
47 | <div id="reading_template" class="template"> |
ef3db56f |
48 | <div class="reading_statistics"> |
be8bf746 |
49 | <span class="readinglabel"></span> - copied <span class="reading_copied"></span> time(s), changed <span class="reading_changed"></span> time(s)<br/> |
ef3db56f |
50 | Reading root(s) at <span class="readingroots"></span><br/> |
f7371955 |
51 | <span class="readingreversions">Reading reversion(s) at <span class="reversionroots"></span><br/></span> |
52 | <!-- source_parent_template will be appended here if there are parents --> |
53 | <!-- reversion_parent_template will be appended here if there are reversions --> |
ef3db56f |
54 | </div> |
d5514865 |
55 | </div> |
ef3db56f |
56 | |
f7371955 |
57 | <div id="reading_source_template" class="template"> |
ef3db56f |
58 | <div class="parent_statistics"> |
59 | Reading parent(s): |
f7371955 |
60 | <ul class="reading_source_list"></ul> |
61 | </div> |
62 | </div> |
63 | <div id="reading_reversion_template" class="template"> |
64 | <div class="parent_statistics"> |
65 | Reverted reading parent(s): |
66 | <ul class="reading_reversion_list"></ul> |
ef3db56f |
67 | </div> |
68 | </div> |
2fd8f80c |
69 | |
70 | <div id="options" title="Analysis options..."> |
71 | <form id="use_variants_form" name="use_variants_form"> |
72 | <fieldset> |
73 | <input type="radio" name="ignore_variant" value="none" [% 'checked="true"' IF ignore_variant == 'none' %]>Analyze all variation</input><br/> |
74 | <input type="radio" name="ignore_variant" value="orthographic" [% 'checked="true"' IF ignore_variant == 'orthographic' %]>Ignore orthographic variation</input><br/> |
75 | <input type="radio" name="ignore_variant" value="spelling" [% 'checked="true"' IF ignore_variant == 'spelling' %]>Ignore orthographic and spelling variation</input> |
76 | </fieldset> |
77 | <fieldset> |
78 | <input type="checkbox" name="show_type1" [% 'checked="true"' IF show_type1 %]>Include type-1 variation</input> |
79 | </fieldset> |
80 | </form> |
81 | </div> |
82 | |
d5514865 |
83 | |
fb6e49b3 |
84 | [% PROCESS footer.tt %] |
85 | |
b8a92065 |
86 | |
87 | [% BLOCK variantrow -%] |
f7371955 |
88 | [% SET rowclass = 'class="coincidental"' -%] |
b8a92065 |
89 | [% SET rowclass = 'class="genealogical"' IF row.genealogical -%] |
b8a92065 |
90 | <tr [% rowclass %]> |
be8bf746 |
91 | <th><span class="rowid" onclick="handle_row_click($(this))">[% row.id %]</span></th> |
b8a92065 |
92 | [% FOREACH reading IN row.readings -%] |
f7371955 |
93 | [% SET cellclass = 'clickable' -%] |
94 | [% SET cellclass = 'clickable reversion' IF reading.is_reverted -%] |
95 | [% SET cellclass = 'clickable conflict' IF reading.is_conflict -%] |
0737e7dd |
96 | <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> |
b8a92065 |
97 | [% END -%] |
b8a92065 |
98 | </tr> |
99 | [% END -%] |