CollateX format for GraphML output changed; parser update
[scpubgit/stemmatology.git] / stemmaweb / root / src / stexaminer.tt
index 3867a94..9a30643 100644 (file)
@@ -1,15 +1,13 @@
 [% PROCESS header.tt
        pagetitle = "Stexaminer - $text_title"
-       applicationjs = "/js/stexaminer.js"
+       applicationjs = c.uri_for('/js/stexaminer.js')
+       applicationstyle = c.uri_for('/css/stexaminer.css')
 %]
     <h1>Stexaminer</h1>
     <h2>[% text_title %]</h2>
     <div id="statistics">
       <p>Analyzed [% total %] variant locations, of which [% genealogical %] entirely followed the stemma.  [% conflict %] readings conflicted with the stemma.</p>
     </div>
-    <div id="stemma_graph">
-      [% svg %]
-    </div>
     <div id="variants_table">
       <table>
 [% FOREACH row IN variants -%]
@@ -17,6 +15,9 @@
 [% END -%]
      </table>
     </div>
+    <div id="stemma_graph">
+      [% svg %]
+    </div>
 [% PROCESS footer.tt %]
     
 
@@ -28,7 +29,7 @@
 [% FOREACH reading IN row.readings -%]
 [% SET cellclass = 'clickable conflict' IF reading.conflict -%]
 [% SET cellclass = 'clickable' IF !reading.conflict -%]
-          <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>
+          <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>
 [% END -%]
 [% FILTER repeat( row.empty ) -%]
           <td/>