⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 per-bug-queries.html.tmpl

📁 buzilla软件
💻 TMPL
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({    METADATA => {        'modtime' => '1171144522',        'name' => 'global/per-bug-queries.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";    #line 101 "template\en\default\global\per-bug-queries.html.tmpl"    if ($stash->get(['user', 0, 'id', 0]) && $stash->get(['user', 0, 'settings', 0, 'per_bug_queries', 0, 'value', 0]) eq 'on') {    $output .=  "\n  <li id=\"links-special\">\n    <script type=\"text/javascript\">\n      <!--\n      function update_text() {\n        // 'lob' means list_of_bugs.\n        var lob_action = document.getElementById('lob_action');\n        var action = lob_action.options[lob_action.selectedIndex].value;\n        var text = document.getElementById('lob_direction');\n        var new_query_text = document.getElementById('lob_new_query_text');\n\n        if (action == \"add\") {\n          text.innerHTML = \"to\";\n          new_query_text.style.display = 'inline';\n        }\n        else {\n          text.innerHTML = \"from\";\n          new_query_text.style.display = 'none';\n        }\n      }\n\n      function manage_old_lists() {\n        var old_lists = document.getElementById('lob_oldqueryname');\n        // If there is no saved searches available, returns.\n        if (!old_lists) return;\n\n        var new_query = document.getElementById('lob_newqueryname').value;\n\n        if (new_query != \"\") {\n          old_lists.disabled = true;\n        }\n        else {\n          old_lists.disabled = false;\n        }\n      }\n      //-->\n    </script>\n\n    ";    #line 56 "template\en\default\global\per-bug-queries.html.tmpl"    $stash->set('lists_of_bugs', [ ]);        #line 60 "template\en\default\global\per-bug-queries.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;    #line 58 "template\en\default\global\per-bug-queries.html.tmpl"    if (!($stash->get(['q', 0, 'bug_ids_only', 0]))) {    ($_tt_value, $_tt_error) = $_tt_list->get_next();    next LOOP;        }        #line 59 "template\en\default\global\per-bug-queries.html.tmpl"    $output .=  $stash->get(['lists_of_bugs', 0, 'push', [ $stash->get(['q', 0, 'name', 0]) ]]);;                ($_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    <div class=\"label\"></div>\n    <ul class=\"links\"><li class=\"form\">\n      <form id=\"list_of_bugs\" action=\"buglist.cgi\" method=\"get\">\n        <input type=\"hidden\" name=\"cmdtype\" value=\"doit\">\n        <input type=\"hidden\" name=\"remtype\" value=\"asnamed\">\n        <input type=\"hidden\" name=\"list_of_bugs\" value=\"1\">\n        <select id=\"lob_action\" name=\"action\" onchange=\"update_text();\">\n          <option value=\"add\">Add</option>";    #line 71 "template\en\default\global\per-bug-queries.html.tmpl"    if ($stash->get(['lists_of_bugs', 0, 'size', 0])) {    $output .=  "\n            <option value=\"remove\">Remove</option>";    }        $output .=  "\n        </select>\n";    #line 78 "template\en\default\global\per-bug-queries.html.tmpl"    if ($stash->get(['Param', [ 'docs_urlbase' ]])) {    $output .=  "\n          <a href=\"";    #line 75 "template\en\default\global\per-bug-queries.html.tmpl"    $output .=  $stash->get(['Param', [ 'docs_urlbase' ]]);    $output .=  "query.html#individual-buglists\">the named tag</a>";    }    else {    $output .=  "\n          the named tag";    }        $output .=  "\n";    #line 86 "template\en\default\global\per-bug-queries.html.tmpl"    if ($stash->get(['lists_of_bugs', 0, 'size', 0])) {    $output .=  "\n          <select id=\"lob_oldqueryname\" name=\"oldqueryname\">";    #line 84 "template\en\default\global\per-bug-queries.html.tmpl"        # FOREACH     do {        my ($_tt_value, $_tt_error, $_tt_oldloop);        my $_tt_list = $stash->get('lists_of_bugs');                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->{'query'} = $_tt_value;    $output .=  "\n              <option value=\"";    #line 83 "template\en\default\global\per-bug-queries.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get('query');                &$_tt_filter($output);    };        $output .=  "\">";    #line 83 "template\en\default\global\per-bug-queries.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get('query');                &$_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>";    }        $output .=  "\n        <span id=\"lob_new_query_text\">";    #line 88 "template\en\default\global\per-bug-queries.html.tmpl"    if ($stash->get(['lists_of_bugs', 0, 'size', 0])) {    $output .=  ' or create and add the tag';    }        $output .=  "\n          <input class=\"txt\" type=\"text\" id=\"lob_newqueryname\"\n                 size=\"20\" maxlength=\"64\" name=\"newqueryname\"\n                 onkeyup=\"manage_old_lists();\">\n        </span>\n        <span id=\"lob_direction\">to</span>\n        ";    #line 94 "template\en\default\global\per-bug-queries.html.tmpl"    $output .=  $stash->get(['terms', 0, 'bugs', 0]);    $output .=  "\n        <input type=\"text\" name=\"bug_ids\" size=\"12\" maxlength=\"80\"";    #line 0 "template\en\default\global\per-bug-queries.html.tmpl"    if ($stash->get('bugids')) {    $output .=  (" value=\"" . $stash->get('bugids') . "\"");    }        $output .=  ">\n        <input type=\"submit\" value=\"Commit\" id=\"commit_list_of_bugs\">\n      </form>\n    </li></ul>\n  </li>";    }        $output .=  "\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 + -