📄 saved-searches.html.tmpl
字号:
eval { $_tt_oldloop = $stash->get('loop') }; $stash->set('loop', $_tt_list); eval { LOOP: while (! $_tt_error) { $stash->{'group'} = $_tt_value; $output .= "\n <option value=\""; #line 137 "template\en\default\account\prefs\saved-searches.html.tmpl" $output .= $stash->get(['group', 0, 'id', 0]); $output .= "\""; #line 138 "template\en\default\account\prefs\saved-searches.html.tmpl" if ($stash->get(['q', 0, 'shared_with_group', 0, 'id', 0]) eq $stash->get(['group', 0, 'id', 0])) { $output .= ' selected="selected"'; } $output .= "\n >"; #line 140 "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(['group', 0, 'name', 0]); &$_tt_filter($output); }; $output .= "</option>";; ($_tt_value, $_tt_error) = $_tt_list->get_next(); } }; $stash->set('loop', $_tt_oldloop); die $@ if $@; $_tt_error = 0 if $_tt_error && $_tt_error eq Template::Constants::STATUS_DONE; die $_tt_error if $_tt_error; }; $output .= "\n </select>"; #line 150 "template\en\default\account\prefs\saved-searches.html.tmpl" if ($stash->get(['user', 0, 'can_bless', 0])) { $output .= "\n <input type=\"checkbox\" id=\"force_"; #line 144 "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 name=\"force_"; #line 145 "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 .= "\" value=\"1\""; #line 0 "template\en\default\account\prefs\saved-searches.html.tmpl" if (! $stash->get(['bless_group_ids', 0, 'grep', [ ("^" . $stash->get(['q', 0, 'shared_with_group', 0, 'id', 0]) . "\$") ], 0, 0])) { $output .= ' disabled'; } $output .= ">\n <label for=\"force_"; #line 149 "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 .= "\">Add to footer</label>"; } $output .= "\n </td>"; } $output .= "\n </tr>";; ($_tt_value, $_tt_error) = $_tt_list->get_next(); } }; $stash->set('loop', $_tt_oldloop); die $@ if $@; $_tt_error = 0 if $_tt_error && $_tt_error eq Template::Constants::STATUS_DONE; die $_tt_error if $_tt_error; }; $output .= "\n </table>"; #line 160 "template\en\default\account\prefs\saved-searches.html.tmpl" if ($stash->get(['user', 0, 'can_bless', 0])) { $output .= "\n <p>Note that for every search that has the \"Add to footer\" selected, a\n link to the shared search is added to the footer of every user that is\n a direct member of the group at the time you click Submit Changes.</p>"; } $output .= "\n</blockquote>\n\n<p>You may use these searches saved and shared by others:</p>\n\n<blockquote>\n <table border=\"1\" cellpadding=\"3\"> \n <tr>\n <th>\n Search\n </th>\n <th>\n Shared By\n </th>\n <th>\n Run\n </th>\n <th>\n Show in\n Footer\n </th>\n </tr>"; #line 182 "template\en\default\account\prefs\saved-searches.html.tmpl" $stash->set('found_shared_query', 0); #line 201 "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_available', 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; #line 184 "template\en\default\account\prefs\saved-searches.html.tmpl" $stash->set('found_shared_query', 1); $output .= "\n <tr>\n <td>"; #line 186 "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>"; #line 187 "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, 'user', 0, 'identity', 0]); &$_tt_filter($output); }; $output .= "</td>\n <td>\n <a href=\"buglist.cgi?cmdtype=dorem&remaction=run&namedcmd="; #line 190 "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 .= "&sharer_id="; #line 191 "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, 'user', 0, 'id', 0]); &$_tt_filter($output); }; $output .= "\">Run</a>\n </td>\n <td align=\"center\">\n <input type=\"checkbox\" \n name=\"link_in_footer_"; #line 195 "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 197 "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 198 "template\en\default\account\prefs\saved-searches.html.tmpl" if ($stash->get(['q', 0, 'link_in_footer', 0])) { $output .= ' checked'; } $output .= ">\n </td>\n </tr>";; ($_tt_value, $_tt_error) = $_tt_list->get_next(); } }; $stash->set('loop', $_tt_oldloop); die $@ if $@; $_tt_error = 0 if $_tt_error && $_tt_error eq Template::Constants::STATUS_DONE; die $_tt_error if $_tt_error; }; #line 208 "template\en\default\account\prefs\saved-searches.html.tmpl" if (! $stash->get('found_shared_query')) { $output .= "\n <tr>\n <td colspan=\"4\" style=\"text-align: center\">\n <None>\n </td>\n </tr>"; } $output .= "\n </table>\n</blockquote>\n"; } }; if ($@) { $_tt_error = $context->catch($@, \$output); die $_tt_error unless $_tt_error->type eq 'return'; } return $output; }, DEFBLOCKS => { },});
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -