afde0cdf20c451eae6c9fbae8e5ed6c1fdef3043
[scpubgit/stemmatology.git] / stemmaweb / root / src / index.tt
1 [% WRAPPER header.tt
2         pagetitle = "Stemmaweb - Text tradition tools"
3         applicationjs = c.uri_for( 'js/componentload.js' )
4 %]
5     <script type="text/javascript">
6 var selectedTextID;
7 $(document).ready(function() {
8     // call out to load the directory div
9     $('#directory').load( "[% c.uri_for( 'directory' ) %]" );
10 });
11     </script>
12
13 [% END %]
14
15     <div id="topbanner">
16       <h1>Stemmaweb - a collection of tools for analysis of collated texts</h1>
17       <span class="mainnav"><a href="[% c.uri_for( 'about.html' ) %]">About<a> | <a href="[% c.uri_for( 'doc.html' ) %]">Help</a></span>
18     </div>
19     <div id="directory_container">
20       <h2>Text directory</h2>
21       <div id="directory">
22         <h3>Loading texts, please wait...</h3>
23         <img src="[% c.uri_for( 'images', 'ajax-loader.gif' ) %]" />
24       </div>
25     </div>
26     <div id="stemma_container">
27       <h2>Stemma for <span class="texttitle">selected text</span></h2>
28       <div id="stemma_graph"></div>
29       <form id="run_stexaminer" action="" method="GET" name="run_stexaminer">
30         <div class="button" id="stexaminer_button" onClick="$('#run_stexaminer').submit()">
31           <span>Examine variants against this stemma</span>
32         </div>
33       </form>
34     </div>
35     <div id="variant_container">
36       <div style="float: left"><h2>Variant graph for <span class="texttitle">selected text</span></h2></div>
37       <form id="run_relater" action="" method="GET" name="run_relater">
38         <div class="button" id="relater_button" onClick="$('#run_relater').submit()">
39           <span>Run relationship mapper</span>
40         </div>
41       </form>
42       <div id="variant_graph"></div>
43     </div>
44
45 [% PROCESS footer.tt %]