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?a=commitdiff_plain;h=457430a63c319dac8dc4369431960a1cf4437f86;p=scpubgit%2Fstemmaweb.git add help text to relationship mapper --- diff --git a/lib/stemmaweb/Controller/Relation.pm b/lib/stemmaweb/Controller/Relation.pm index 832a447..4ca7a25 100644 --- a/lib/stemmaweb/Controller/Relation.pm +++ b/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/lib/stemmaweb/View/TT.pm b/lib/stemmaweb/View/TT.pm index 493f8a6..55061d7 100644 --- a/lib/stemmaweb/View/TT.pm +++ b/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/root/css/relationship.css b/root/css/relationship.css index c0d1d8b..0d85213 100644 --- a/root/css/relationship.css +++ b/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/root/js/relationship.js b/root/js/relationship.js index 2cbd7ee..414b78c 100644 --- a/root/js/relationship.js +++ b/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/root/src/header.tt b/root/src/header.tt index 6d844a1..1bd5508 100644 --- a/root/src/header.tt +++ b/root/src/header.tt @@ -10,6 +10,7 @@ + [% IF applicationjs -%] diff --git a/root/src/relate.tt b/root/src/relate.tt index 17ffc96..72ea8e1 100644 --- a/root/src/relate.tt +++ b/root/src/relate.tt @@ -11,6 +11,9 @@ $(function() { [% END %]
+

Relationship mapper

[% text_title %]

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

- +