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

📄 common-links.html.tmpl

📁 buzilla软件
💻 TMPL
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({    METADATA => {        'modtime' => '1225907650',        'name' => 'global/common-links.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 23 "template\en\default\global\common-links.html.tmpl"    $stash->set('btn_id', 'find', 1);        $output .=  "\n\n<ul class=\"links\">\n  <li><a href=\"./\">Home</a></li>\n  <li><span class=\"separator\">| </span><a href=\"enter_bug.cgi\">New</a></li>\n  <li><span class=\"separator\">| </span><a href=\"query.cgi\">Search</a></li>\n\n  <li class=\"form\">\n    <span class=\"separator\">| </span>\n    <form action=\"buglist.cgi\" method=\"get\"\n        onsubmit=\"if (this.quicksearch.value == '')\n                  { alert('Please enter one or more search terms first.');\n                    return false; } return true;\">\n    <input class=\"txt\" type=\"text\" name=\"quicksearch\">\n    <input class=\"btn\" type=\"submit\" value=\"Find\" id=\"";    #line 37 "template\en\default\global\common-links.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get('btn_id');                &$_tt_filter($output);    };        $output .=  "\">";        $output .=  "</form></li>\n\n  <li><span class=\"separator\">| </span><a href=\"report.cgi\">Reports</a></li>\n\n  <li>\n    <span class=\"separator\">| </span>";    #line 49 "template\en\default\global\common-links.html.tmpl"    if ($stash->get(['user', 0, 'id', 0])) {    $output .=  "\n      <a href=\"request.cgi?requester=";    #line 45 "template\en\default\global\common-links.html.tmpl"        # 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 .=  "&amp;requestee=";    #line 46 "template\en\default\global\common-links.html.tmpl"        # 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 .=  "&amp;do_union=1&amp;group=type\">My Requests</a>";    }    else {    $output .=  "\n      <a href=\"request.cgi\">Requests</a>";    }            $output .=  "</li>\n";    #line 54 "template\en\default\global\common-links.html.tmpl"    if ($stash->get(['user', 0, 'id', 0]) && $stash->get(['Param', [ 'usevotes' ]])) {    $output .=  "\n    <li><span class=\"separator\">| </span><a href=\"votes.cgi?action=show_user\">My&nbsp;Votes</a></li>";    }        $output .=  "\n";    #line 104 "template\en\default\global\common-links.html.tmpl"    if ($stash->get(['user', 0, 'login', 0])) {    $output .=  "\n    <li><span class=\"separator\">| </span><a href=\"userprefs.cgi\">Preferences</a></li>\n    <li>\n      <span class=\"separator\">| </span>";    #line 64 "template\en\default\global\common-links.html.tmpl"    if ($stash->get(['user', 0, 'authorizer', 0, 'can_logout', 0])) {    $output .=  "\n        <a href=\"relogin.cgi\">Log&nbsp;out</a>";    }    else {    $output .=  "\n        Logged&nbsp;in&nbsp;as";    }        #line 71 "template\en\default\global\common-links.html.tmpl"    if ($stash->get('sudoer')) {    $output .=  "\n        ";    #line 66 "template\en\default\global\common-links.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['sudoer', 0, 'login', 0]);                &$_tt_filter($output);    };        $output .=  " (<b>impersonating\n        ";    #line 67 "template\en\default\global\common-links.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['user', 0, 'login', 0]);                &$_tt_filter($output);    };        $output .=  "</b>\n        <a href=\"relogin.cgi?action=end-sudo\">end session</a>)";    }    else {    $output .=  "\n        ";    #line 70 "template\en\default\global\common-links.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['user', 0, 'login', 0]);                &$_tt_filter($output);    };        }            $output .=  "</li>";    }    else {    #line 77 "template\en\default\global\common-links.html.tmpl"    if ($stash->get(['Param', [ 'createemailregexp' ]]) && $stash->get(['user', 0, 'authorizer', 0, 'user_can_create_account', 0])) {    $output .=  "\n      <li><span class=\"separator\">| </span><a href=\"createaccount.cgi\">New&nbsp;Account</a></li>";    }        #line 103 "template\en\default\global\common-links.html.tmpl"    if ($stash->get(['user', 0, 'authorizer', 0, 'can_login', 0])) {    $output .=  "\n      ";    $output .=  "\n";    #line 82 "template\en\default\global\common-links.html.tmpl"    $stash->set('script_name', $stash->get(['cgi', 0, 'url', [ { 'Relative' => 1 } ]]));        $output .=  "\n";    #line 86 "template\en\default\global\common-links.html.tmpl"    if ($stash->get(['cgi', 0, 'request_method', 0]) eq 'POST' || $stash->get(['script_name', 0, 'match', [ 'relogin' ]])) {    #line 85 "template\en\default\global\common-links.html.tmpl"    $stash->set('script_name', '');        }        $output .=  "\n\n      ";    #line 93 "template\en\default\global\common-links.html.tmpl"    if ($stash->get(['Param', [ 'sslbase' ]]) ne '' && $stash->get(['Param', [ 'ssl' ]]) ne 'never') {    #line 90 "template\en\default\global\common-links.html.tmpl"    $stash->set('script_name', $stash->get(['Param', [ 'sslbase' ]])  . $stash->get('script_name'));        }    else {    #line 92 "template\en\default\global\common-links.html.tmpl"    $stash->set('script_name', $stash->get(['Param', [ 'urlbase' ]])  . $stash->get('script_name'));        }        $output .=  "\n";    #line 100 "template\en\default\global\common-links.html.tmpl"    if ($stash->get(['cgi', 0, 'request_method', 0]) eq 'GET' && $stash->get(['cgi', 0, 'query_string', 0])) {    #line 96 "template\en\default\global\common-links.html.tmpl"    $stash->set('script_name', $stash->get('script_name')  . '?'  . $stash->get(['cgi', 0, 'query_string', 0]));        #line 97 "template\en\default\global\common-links.html.tmpl"        # CAPTURE    $stash->set('script_name', do {        my $output = '';    if (! $stash->get(['cgi', 0, 'query_string', 0, 'match', [ 'GoAheadAndLogIn' ]])) {    $output .=  $stash->get('script_name')  . '&GoAheadAndLogIn=1';    }            $output;    });        }    else {    #line 99 "template\en\default\global\common-links.html.tmpl"    $stash->set('script_name', $stash->get('script_name')  . '?GoAheadAndLogIn=1');        }        $output .=  "\n        \n      <li><span class=\"separator\">| </span><a href=\"";    #line 102 "template\en\default\global\common-links.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get('script_name');                &$_tt_filter($output);    };        $output .=  "\">Log&nbsp;In</a></li>";    }        }        $output .=  "\n</ul>";    #line 106 "template\en\default\global\common-links.html.tmpl"    $output .=  $stash->get(['Hook', 0, 'process', [ 'links' ]]);    $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 + -