| #------------------------------------------------------------------------ |
| # Compiled template generated by the Template Toolkit version 2.15 |
| #------------------------------------------------------------------------ |
| |
| Template::Document->new({ |
| METADATA => { |
| 'modtime' => '1138010588', |
| 'name' => 'global/help-header.html.tmpl', |
| }, |
| BLOCK => sub { |
| my $context = shift || die "template sub called without context\n"; |
| my $stash = $context->stash; |
| my $output = ''; |
| my $error; |
| |
| eval { BLOCK: { |
| $output .= "\n"; |
| $output .= "\n"; |
| #line 22 "template/en/custom/global/help-header.html.tmpl" |
| # USE |
| $stash->set('Bugzilla', |
| $context->plugin('Bugzilla')); |
| #line 23 "template/en/custom/global/help-header.html.tmpl" |
| $stash->set('cgi', $stash->get(['Bugzilla', 0, 'cgi', 0])); |
| $output .= "\n"; |
| #line 90 "template/en/custom/global/help-header.html.tmpl" |
| if ($stash->get('help')) { |
| #line 82 "template/en/custom/global/help-header.html.tmpl" |
| if ($stash->get(['cgi', 0, 'user_agent', [ 'Mozilla/5' ]])) { |
| $output .= "\n <style type=\"text/css\">\n .help {\n border-style: solid;\n border-color: #F0A000;\n background-color: #FFFFFF;\n padding: 5;\n position: absolute;\n }\n </style>\n\n <script type=\"text/javascript\">\n var currentHelp;\n\n function initHelp() {\n for (var i = 0; i < document.forms.length; i++) {\n for (var j = 0; j < document.forms[i].elements.length; j++) {\n "; |
| $output .= "\n if (document.forms[i].elements[j].tagName != 'FIELDSET') {\n document.forms[i].elements[j].onmouseover = showHelp;\n }\n }\n }\n\n document.body.onclick = hideHelp;\n }\n\n function showHelp() { \n hideHelp();\n var newHelp = document.getElementById(this.name + '_help');\n if (newHelp) {\n currentHelp = newHelp;\n\n var mytop = this.offsetTop;\n var myleft = this.offsetLeft;\n var myparent = this.offsetParent;\n while (myparent.tagName != 'BODY') {\n mytop = mytop + myparent.offsetTop;\n myleft = myleft + myparent.offsetLeft;\n myparent = myparent.offsetParent;\n }\n\n currentHelp.style.top = mytop + this.offsetHeight + 5 + \"px\";\n currentHelp.style.left = myleft + \"px\";\n currentHelp.style.display='';\n }\n }\n\n function hideHelp() {\n if (currentHelp) {\n currentHelp.style.display='none';\n }\n }\n </script>"; |
| } |
| |
| } |
| else { |
| $output .= "\n <script type=\"text/javascript\">\n <!--\n "; |
| $output .= "\n function initHelp() {}\n // -->\n </script>"; |
| } |
| |
| $output .= "\n\n"; |
| } }; |
| if ($@) { |
| $error = $context->catch($@, \$output); |
| die $error unless $error->type eq 'return'; |
| } |
| |
| return $output; |
| }, |
| DEFBLOCKS => { |
| |
| }, |
| }); |