?? diff-header.html.tmpl
字號(hào):
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({ METADATA => { 'modtime' => '1224525394', 'name' => 'attachment/diff-header.html.tmpl', }, BLOCK => sub { my $context = shift || die "template sub called without context\n"; my $stash = $context->stash; my $output = ''; my $_tt_error; eval { BLOCK: { $output .= "\n"; $output .= "\n\n"; $output .= "\n"; #line 24 "template\en\default\attachment\diff-header.html.tmpl" $output .= $context->process('global/variables.none.tmpl'); $output .= "\n"; #line 32 "template\en\default\attachment\diff-header.html.tmpl" # CAPTURE $stash->set('title', do { my $output = ''; #line 31 "template\en\default\attachment\diff-header.html.tmpl" if ($stash->get('attachid')) { $output .= "\nAttachment #"; #line 28 "template\en\default\attachment\diff-header.html.tmpl" $output .= $stash->get('attachid'); $output .= " for "; #line 28 "template\en\default\attachment\diff-header.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= " #"; #line 28 "template\en\default\attachment\diff-header.html.tmpl" $output .= $stash->get('bugid'); } else { $output .= "\nInterdiff of #"; #line 30 "template\en\default\attachment\diff-header.html.tmpl" $output .= $stash->get('oldid'); $output .= " and #"; #line 30 "template\en\default\attachment\diff-header.html.tmpl" $output .= $stash->get('newid'); $output .= " for "; #line 30 "template\en\default\attachment\diff-header.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= " #"; #line 30 "template\en\default\attachment\diff-header.html.tmpl" $output .= $stash->get('bugid'); } $output; }); $output .= "\n"; #line 103 "template\en\default\attachment\diff-header.html.tmpl" # CAPTURE $stash->set('style', do { my $output = ''; $output .= "\n.file_head {\n font-weight: bold;\n font-size: 1em;\n background-color: #c3c3c3;\n border: 1px solid black;\n width: 100%;\n}\n\n.file_head a {\n text-decoration: none; \n font-family: monospace; \n font-size: 1.1em;\n}\n\n.file_collapse {\n display: none;\n}\n\n.section_head {\n width: 100%;\n background-color: #f0f0f0;\n border: 1px solid black;\n text-align: left;\n}\n\ntable.file_table {\n table-layout: fixed;\n width: 100%;\n empty-cells: show;\n border-spacing: 0px;\n border-collapse: collapse;\n /* draw border below last open context section in listing */\n border-bottom: 1px solid black;\n}\n\ntbody.file td {\n border-left: 1px dashed black;\n border-right: 1px dashed black;\n width: 50%;\n}\n\ntbody.file pre {\n display: inline;\n white-space: pre-wrap; /* CSS 3 & CSS 2.1 */\n white-space: -moz-pre-wrap; /* Gecko < 1.9.1 */\n white-space: -o-pre-wrap; /* Opera 7 */\n font-size: 0.9em;\n}\n\ntbody.file pre:empty {\n display: block;\n}\n\n.changed {\n background-color: lightblue;\n}\n\n.added {\n background-color: lightgreen;\n}\n\n.removed {\n background-color: #FFCC99;\n}\n\n.warning {\n color: red\n}"; $output; }); $output .= "\n\n"; #line 203 "template\en\default\attachment\diff-header.html.tmpl" # CAPTURE $stash->set('javascript', do { my $output = ''; $output .= "\n function collapse_all() {\n var elem = document.checkboxform.firstChild;\n while (elem != null) {\n if (elem.firstChild != null) {\n var tbody = elem.firstChild.nextSibling;\n if (tbody.className == 'file') {\n tbody.className = 'file_collapse';\n twisty = get_twisty_from_tbody(tbody);\n twisty.firstChild.nodeValue = '(+)';\n twisty.nextSibling.checked = false;\n }\n }\n elem = elem.nextSibling;\n }\n return false;\n }\n\n function expand_all() {\n var elem = document.checkboxform.firstChild;\n while (elem != null) {\n if (elem.firstChild != null) {\n var tbody = elem.firstChild.nextSibling;\n if (tbody.className == 'file_collapse') {\n tbody.className = 'file';\n twisty = get_twisty_from_tbody(tbody);\n twisty.firstChild.nodeValue = '(-)';\n twisty.nextSibling.checked = true;\n }\n }\n elem = elem.nextSibling;\n }\n return false;\n }\n\n var current_restore_elem;\n\n function restore_all() {\n current_restore_elem = null;\n incremental_restore();\n }\n\n function incremental_restore() {\n if (!document.checkboxform.restore_indicator.checked) {\n return;\n }\n var next_restore_elem;\n if (current_restore_elem) {\n next_restore_elem = current_restore_elem.nextSibling;\n } else {\n next_restore_elem = document.checkboxform.firstChild;\n }\n while (next_restore_elem != null) {\n current_restore_elem = next_restore_elem;\n if (current_restore_elem.firstChild != null) {\n restore_elem(current_restore_elem.firstChild.nextSibling);\n }\n next_restore_elem = current_restore_elem.nextSibling;\n }\n }\n\n function restore_elem(elem, alertme) {\n if (elem.className == 'file_collapse') {\n twisty = get_twisty_from_tbody(elem);\n if (twisty.nextSibling.checked) {\n elem.className = 'file';\n twisty.firstChild.nodeValue = '(-)';\n }\n } else if (elem.className == 'file') {\n twisty = get_twisty_from_tbody(elem);\n if (!twisty.nextSibling.checked) {\n elem.className = 'file_collapse';\n twisty.firstChild.nodeValue = '(+)';\n }\n }\n }\n\n function twisty_click(twisty) {\n tbody = get_tbody_from_twisty(twisty);\n if (tbody.className == 'file') {\n tbody.className = 'file_collapse';\n twisty.firstChild.nodeValue = '(+)';\n twisty.nextSibling.checked = false;\n } else {\n tbody.className = 'file';\n twisty.firstChild.nodeValue = '(-)';\n twisty.nextSibling.checked = true;\n }\n return false;\n }\n\n function get_tbody_from_twisty(twisty) {\n return twisty.parentNode.parentNode.parentNode.nextSibling;\n }\n function get_twisty_from_tbody(tbody) {\n return tbody.previousSibling.firstChild.firstChild.firstChild;\n }"; $output; }); $output .= "\n"; #line 205 "template\en\default\attachment\diff-header.html.tmpl" $stash->set('onload', 'restore_all(); document.checkboxform.restore_indicator.checked = true'); $output .= "\n"; $output .= "\n"; #line 240 "template\en\default\attachment\diff-header.html.tmpl" if ($stash->get('headers')) { #line 222 "template\en\default\attachment\diff-header.html.tmpl" # CAPTURE $stash->set('header', do { my $output = ''; #line 220 "template\en\default\attachment\diff-header.html.tmpl" if ($stash->get('attachid')) { $output .= "\n Attachment #"; #line 214 "template\en\default\attachment\diff-header.html.tmpl" $output .= $stash->get('attachid'); $output .= ": "; #line 214 "template\en\default\attachment\diff-header.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('description'); &$_tt_filter($output); }; } else { $output .= "\n Diff Between \n #"; #line 217 "template\en\default\attachment\diff-header.html.tmpl" $output .= $stash->get('oldid'); $output .= ": <a href=\""; #line 217 "template\en\default\attachment\diff-header.html.tmpl" $output .= $context->process('diffurl', { 'id' => $stash->get('oldid') }); $output .= "\">"; #line 217 "template\en\default\attachment\diff-header.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('old_desc'); &$_tt_filter($output); }; $output .= "</a>\n and \n #"; #line 219 "template\en\default\attachment\diff-header.html.tmpl" $output .= $stash->get('newid'); $output .= ": <a href=\""; #line 219 "template\en\default\attachment\diff-header.html.tmpl" $output .= $context->process('diffurl', { 'id' => $stash->get('newid') }); $output .= "\">"; #line 219 "template\en\default\attachment\diff-header.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('new_desc'); &$_tt_filter($output); }; $output .= "</a>"; } $output .= "\n for <a href=\"show_bug.cgi?id="; #line 221 "template\en\default\attachment\diff-header.html.tmpl" $output .= $stash->get('bugid'); $output .= "\">"; #line 221 "template\en\default\attachment\diff-header.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= " #"; #line 221 "template\en\default\attachment\diff-header.html.tmpl" $output .= $stash->get('bugid'); $output .= "</a>"; $output; }); #line 225 "template\en\default\attachment\diff-header.html.tmpl" # CAPTURE $stash->set('subheader', do { my $output = ''; #line 224 "template\en\default\attachment\diff-header.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('bugsummary'); &$_tt_filter($output); }; $output; }); #line 226 "template\en\default\attachment\diff-header.html.tmpl" $output .= $context->process('global/header.html.tmpl'); } else { $output .= "\n <html>\n <head>\n <style type=\"text/css\">"; #line 231 "template\en\default\attachment\diff-header.html.tmpl" $output .= $stash->get('style'); $output .= "\n </style>\n <script type=\"text/javascript\">\n <!--"; #line 235 "template\en\default\attachment\diff-header.html.tmpl" $output .= $stash->get('javascript'); $output .= "\n -->\n </script>\n </head>\n <body onload=\""; #line 239 "template\en\default\attachment\diff-header.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('onload'); &$_tt_filter($output); }; $output .= "\">"; } $output .= "\n \n"; #line 274 "template\en\default\attachment\diff-header.html.tmpl" if ($stash->get('attachid')) { $output .= "\n "; #line 249 "template\en\default\attachment\diff-header.html.tmpl" if ($stash->get('headers')) { $output .= "\n <a href=\""; #line 246 "template\en\default\attachment\diff-header.html.tmpl" $output .= $context->process('viewurl', { 'id' => $stash->get('attachid') }); $output .= "\">View</a>\n | <a href=\""; #line 247 "template\en\default\attachment\diff-header.html.tmpl" $output .= $context->process('editurl', { 'id' => $stash->get('attachid') }); $output .= "\">Details</a>\n | <a href=\""; #line 248 "template\en\default\attachment\diff-header.html.tmpl" $output .= $context->process('diffurl', { 'id' => $stash->get('attachid') }); $output .= "&context="; #line 248 "template\en\default\attachment\diff-header.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('url_quote') || $context->throw($context->error); $output .= $stash->get('context'); &$_tt_filter($output); }; $output .= "&collapsed="; #line 248 "template\en\default\attachment\diff-header.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('url_quote') || $context->throw($context->error); $output .= $stash->get('collapsed'); &$_tt_filter($output); }; $output .= "&headers="; #line 248 "template\en\default\attachment\diff-header.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('url_quote') || $context->throw($context->error); $output .= $stash->get('headers'); &$_tt_filter($output); }; $output .= "&format=raw\">Raw Unified</a>"; } #line 267 "template\en\default\attachment\diff-header.html.tmpl" if ($stash->get(['other_patches', 0, 'size', 0]) > 0) { #line 251 "template\en\default\attachment\diff-header.html.tmpl" if ($stash->get('headers')) { $output .= " |"; } $output .= "\n Differences between\n <form style=\"display: inline\" action=\"attachment.cgi\">\n <select name=\"oldid\">"; #line 259 "template\en\default\attachment\diff-header.html.tmpl" # FOREACH do {
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -