From: Tara L Andrews Date: Wed, 7 Mar 2012 12:13:43 +0000 (+0100) Subject: add help text to relationship mapper X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=scpubgit%2Fstemmatology.git;a=commitdiff_plain;h=593d570074f9df38e362f594d963089e57539ab6 add help text to relationship mapper --- diff --git a/stemmaweb/lib/stemmaweb/Controller/Relation.pm b/stemmaweb/lib/stemmaweb/Controller/Relation.pm index 832a447..4ca7a25 100644 --- a/stemmaweb/lib/stemmaweb/Controller/Relation.pm +++ b/stemmaweb/lib/stemmaweb/Controller/Relation.pm @@ -29,6 +29,19 @@ sub index :Path :Args(0) { $c->stash->{'template'} = 'relate.tt'; } +=head2 help + + GET relation/help + +Returns the help window HTML. + +=cut + +sub help :Local :Args(0) { + my( $self, $c ) = @_; + $c->stash->{'template'} = 'relatehelp.tt'; +} + =head2 definitions GET relation/definitions diff --git a/stemmaweb/lib/stemmaweb/View/TT.pm b/stemmaweb/lib/stemmaweb/View/TT.pm index 493f8a6..55061d7 100644 --- a/stemmaweb/lib/stemmaweb/View/TT.pm +++ b/stemmaweb/lib/stemmaweb/View/TT.pm @@ -10,6 +10,7 @@ __PACKAGE__->config( INCLUDE_PATH => [ stemmaweb->path_to( 'root', 'src' ), ], + ENCODING => 'utf-8', render_die => 1, ); diff --git a/stemmaweb/root/css/relationship.css b/stemmaweb/root/css/relationship.css index c0d1d8b..0d85213 100644 --- a/stemmaweb/root/css/relationship.css +++ b/stemmaweb/root/css/relationship.css @@ -13,10 +13,19 @@ body { height: 100px; margin-top: 20px; } +#bannerinfo { + float: right; + margin-right: 12%; + margin-top: 15px; +} #logoimg { float: left; margin-left: 20px; } +.helptag { + color: #488dd2; + text-decoration: underline; +} #logotitle { float: left; margin-left: 30px; diff --git a/stemmaweb/root/js/relationship.js b/stemmaweb/root/js/relationship.js index 2cbd7ee..414b78c 100644 --- a/stemmaweb/root/js/relationship.js +++ b/stemmaweb/root/js/relationship.js @@ -586,6 +586,15 @@ $(document).ready(function () { } }); + $('.helptag').popupWindow({ + height:500, + width:800, + top:50, + left:50, + scrollbars:1 + }); + + function toggle_relation_active( node_id ) { $('#svgenlargement .relation').find( "title:contains('" + node_id + "')" ).each( function(index) { matchid = new RegExp( "^" + node_id ); diff --git a/stemmaweb/root/src/header.tt b/stemmaweb/root/src/header.tt index 6d844a1..1bd5508 100644 --- a/stemmaweb/root/src/header.tt +++ b/stemmaweb/root/src/header.tt @@ -10,6 +10,7 @@ + [% IF applicationjs -%] diff --git a/stemmaweb/root/src/relate.tt b/stemmaweb/root/src/relate.tt index 17ffc96..72ea8e1 100644 --- a/stemmaweb/root/src/relate.tt +++ b/stemmaweb/root/src/relate.tt @@ -11,6 +11,9 @@ $(function() { [% END %]
+

Relationship mapper

[% text_title %]

@@ -36,7 +39,7 @@ $(function() {

- +