X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=TreeOfTexts%2Froot%2Fsrc%2Findex.tt;h=9d7b5a8d080dfc62e453884a0a908e152983e0ec;hb=732152b1ae3962d3d27d501e8a687a32fb80e04f;hp=66e3edb9af0fb37e490c1ca43c042c8fa4b03257;hpb=dbcf12a6e95d88f8b01211177542430a92a94d81;p=scpubgit%2Fstemmatology.git diff --git a/TreeOfTexts/root/src/index.tt b/TreeOfTexts/root/src/index.tt index 66e3edb..9d7b5a8 100644 --- a/TreeOfTexts/root/src/index.tt +++ b/TreeOfTexts/root/src/index.tt @@ -5,29 +5,40 @@ + + [% INCLUDE style.tt2 %] -
+

Stexaminer

+

[% text_title %]

+
[% svg %]
-
- - [% FOREACH row IN variants -%] - [% INCLUDE variantrow %] - [% END -%] -
-
+
+ +[% FOREACH row IN variants -%] +[% INCLUDE variantrow %] +[% END -%] +
+
+
+

Analyzed [% total %] variant locations, of which [% genealogical %] entirely followed the stemma. [% conflict %] readings conflicted with the stemma.

+
-[% BLOCK variantrow %] - - [% row.id %] - [% FOREACH reading IN row.readings -%] - [% reading.text %] - [% END -%] - [% FILTER repeat( row.empty ) -%] - - [% END -%] - -[% END %] \ No newline at end of file +[% BLOCK variantrow -%] +[% SET rowclass = 'class="genealogical"' IF row.genealogical -%] +[% SET rowclass = 'class="coincidental"' UNLESS row.genealogical -%] + + [% row.id %] +[% FOREACH reading IN row.readings -%] +[% SET cellclass = 'clickable conflict' IF reading.conflict -%] +[% SET cellclass = 'clickable' IF !reading.conflict -%] + [% reading.text %] +[% END -%] +[% FILTER repeat( row.empty ) -%] + +[% END -%] + +[% END -%] \ No newline at end of file