?? saved-searches.html.tmpl
字號:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({ METADATA => { 'modtime' => '1185015660', 'name' => 'account/prefs/saved-searches.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 52 "template\en\default\account\prefs\saved-searches.html.tmpl" if ($stash->get(['user', 0, 'can_bless', 0])) { $output .= "\n <script type=\"text/javascript\"><!--\n function update_checkbox(group) {\n var bless_groups = ["; #line 31 "template\en\default\account\prefs\saved-searches.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('js') || $context->throw($context->error); $output .= $stash->get(['bless_group_ids', 0, 'join', [ ',' ]]); &$_tt_filter($output); }; $output .= "];\n var checkbox = document.getElementById(group.name.replace(/share_(\\d+)/, \"force_\$1\"));\n\n // Check if the selected group is in the bless group array\n var found = false;\n for (var i = 0; i < bless_groups.length; i++) {\n if (bless_groups[i] == group.value) {\n found = true;\n break;\n }\n }\n\n // Enable or disable checkbox\n if (found) {\n checkbox.disabled = false;\n } else {\n checkbox.disabled = true;\n checkbox.checked = false;\n }\n } //-->\n </script>"; } $output .= "\n\n<p>Your saved searches are as follows:</p>\n\n<blockquote>\n <table border=\"1\" cellpadding=\"3\"> \n <tr>\n <th>\n Search\n </th>\n <th>\n Run\n </th>\n <th>\n Edit\n </th>\n <th>\n Forget\n </th>\n <th>\n Show in\n Footer\n </th>"; #line 75 "template\en\default\account\prefs\saved-searches.html.tmpl" $stash->set('may_share', $stash->get(['user', 0, 'in_group', [ $stash->get(['Param', [ 'querysharegroup' ]]) ]]) && $stash->get(['queryshare_groups', 0, 'size', 0])); #line 80 "template\en\default\account\prefs\saved-searches.html.tmpl" if ($stash->get('may_share')) { $output .= "\n <th>\n Share With a Group\n </th>"; } $output .= "\n </tr>\n <tr>\n <td>My "; #line 83 "template\en\default\account\prefs\saved-searches.html.tmpl" $output .= $stash->get(['terms', 0, 'Bugs', 0]); $output .= "</td>\n <td>"; #line 85 "template\en\default\account\prefs\saved-searches.html.tmpl" # CAPTURE $stash->set('filtered_username', do { my $output = ''; # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('url_quote') || $context->throw($context->error); $output .= $stash->get(['user', 0, 'login', 0]); &$_tt_filter($output); }; $output; }); $output .= "\n <a href=\""; #line 86 "template\en\default\account\prefs\saved-searches.html.tmpl" $output .= $stash->get(['Param', [ 'mybugstemplate' ], 'replace', [ '%userid%', $stash->get('filtered_username') ]]); $output .= "\">Run</a>\n </td>\n <td>\n \n </td>\n <td>\n \n </td>\n <td align=\"center\">\n <input type=\"checkbox\" \n name=\"showmybugslink\"\n value=\"1\""; #line 98 "template\en\default\account\prefs\saved-searches.html.tmpl" if ($stash->get(['user', 0, 'showmybugslink', 0])) { $output .= ' checked'; } $output .= ">\n </td>"; #line 104 "template\en\default\account\prefs\saved-searches.html.tmpl" if ($stash->get('may_share')) { $output .= "\n <td>\n —\n </td>"; } $output .= "\n </tr>"; #line 154 "template\en\default\account\prefs\saved-searches.html.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get(['user', 0, 'queries', 0]); unless (UNIVERSAL::isa($_tt_list, 'Template::Iterator')) { $_tt_list = Template::Config->iterator($_tt_list) || die $Template::Config::ERROR, "\n"; } ($_tt_value, $_tt_error) = $_tt_list->get_first(); eval { $_tt_oldloop = $stash->get('loop') }; $stash->set('loop', $_tt_list); eval { LOOP: while (! $_tt_error) { $stash->{'q'} = $_tt_value; $output .= "\n <tr>\n <td>"; #line 108 "template\en\default\account\prefs\saved-searches.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['q', 0, 'name', 0]); &$_tt_filter($output); }; $output .= "</td>\n <td>\n <a href=\"buglist.cgi?cmdtype=runnamed&namedcmd="; #line 110 "template\en\default\account\prefs\saved-searches.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('url_quote') || $context->throw($context->error); $output .= $stash->get(['q', 0, 'name', 0]); &$_tt_filter($output); }; $output .= "\">Run</a>\n </td>\n <td>\n <a href=\"query.cgi?"; #line 113 "template\en\default\account\prefs\saved-searches.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['q', 0, 'edit_link', 0]); &$_tt_filter($output); }; $output .= "&known_name="; #line 114 "template\en\default\account\prefs\saved-searches.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('url_quote') || $context->throw($context->error); $output .= $stash->get(['q', 0, 'name', 0]); &$_tt_filter($output); }; $output .= "\">Edit</a>\n </td>\n <td>"; #line 122 "template\en\default\account\prefs\saved-searches.html.tmpl" if ($stash->get(['q', 0, 'used_in_whine', 0])) { $output .= "\n Remove from <a href=\"editwhines.cgi\">whining</a> first"; } else { $output .= "\n <a href=\"buglist.cgi?cmdtype=dorem&remaction=forget&namedcmd="; #line 121 "template\en\default\account\prefs\saved-searches.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('url_quote') || $context->throw($context->error); $output .= $stash->get(['q', 0, 'name', 0]); &$_tt_filter($output); }; $output .= "\">Forget</a>"; } $output .= "\n </td>\n <td align=\"center\">\n <input type=\"checkbox\" \n name=\"link_in_footer_"; #line 126 "template\en\default\account\prefs\saved-searches.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['q', 0, 'id', 0]); &$_tt_filter($output); }; $output .= "\"\n value=\"1\"\n alt=\""; #line 128 "template\en\default\account\prefs\saved-searches.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['q', 0, 'name', 0]); &$_tt_filter($output); }; $output .= "\""; #line 129 "template\en\default\account\prefs\saved-searches.html.tmpl" if ($stash->get(['q', 0, 'link_in_footer', 0])) { $output .= ' checked'; } $output .= ">\n </td>"; #line 152 "template\en\default\account\prefs\saved-searches.html.tmpl" if ($stash->get('may_share')) { $output .= "\n <td>\n <select name=\"share_"; #line 133 "template\en\default\account\prefs\saved-searches.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['q', 0, 'id', 0]); &$_tt_filter($output); }; $output .= "\""; #line 134 "template\en\default\account\prefs\saved-searches.html.tmpl" if ($stash->get(['user', 0, 'can_bless', 0])) { $output .= " onchange=\"update_checkbox(this);\""; } $output .= ">\n <option value=\"\">Don't share</option>"; #line 141 "template\en\default\account\prefs\saved-searches.html.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get('queryshare_groups'); unless (UNIVERSAL::isa($_tt_list, 'Template::Iterator')) { $_tt_list = Template::Config->iterator($_tt_list) || die $Template::Config::ERROR, "\n"; } ($_tt_value, $_tt_error) = $_tt_list->get_first();
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -