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

📄 useful-links.html.tmpl

📁 bugzilla的安装文件
💻 TMPL
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.13#------------------------------------------------------------------------Template::Document->new({    METADATA => {        'modtime' => '1096325730',        'name' => 'global/useful-links.html.tmpl',    },    BLOCK => sub {        my $context = shift || die "template sub called without context\n";        my $stash   = $context->stash;        my $output  = '';        my $error;                eval { BLOCK: {    $output .=  "\n";    $output .=  "\n\n";    $output .=  "\n";    #line 27 "template\en\default\global\useful-links.html.tmpl"    $output .=  $context->process('global/variables.none.tmpl');    $output .=  "\n\n<form method=\"get\" action=\"show_bug.cgi\">\n<div id=\"useful-links\">\n  <div id=\"links-actions\">\n    <div class=\"label\">Actions:</div>\n    <div class=\"links\">\n        <a href=\"";    #line 34 "template\en\default\global\useful-links.html.tmpl"    $output .=  $stash->get(['Param', [ 'urlbase' ]]);    $output .=  "\">Home</a> | \n        <a href=\"enter_bug.cgi\">New</a> | \n        <a href=\"query.cgi\">Search</a> |\n        \n        <input class=\"btn\" type=\"submit\" value=\"Find\"> ";    #line 38 "template\en\default\global\useful-links.html.tmpl"    $output .=  $stash->get(['terms', 0, 'bug', 0]);    $output .=  " # \n        <input class=\"txt\" name=\"id\" size=\"6\"> | \n        \n        <a href=\"report.cgi\">Reports</a> \n        ";    #line 50 "template\en\default\global\useful-links.html.tmpl"    if ($stash->get('user')) {    #line 44 "template\en\default\global\useful-links.html.tmpl"        # CAPTURE    $stash->set('email', do {        my $output = '';        # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('url_quote')                  || $context->throw($context->error);        $output .=  $stash->get(['user', 0, 'login', 0]);                &$filter($output);    };            $output;    });        $output .=  "\n          | <a href=\"request.cgi?requester=";    #line 45 "template\en\default\global\useful-links.html.tmpl"    $output .=  $stash->get('email');    $output .=  "&amp;requestee=";    #line 45 "template\en\default\global\useful-links.html.tmpl"    $output .=  $stash->get('email');    $output .=  "&amp;do_union=1&amp;group=type\">My Requests</a>";    }    else {    $output .=  "\n          | <a href=\"request.cgi\">Requests</a>";    }        $output .=  "\n        ";    #line 56 "template\en\default\global\useful-links.html.tmpl"    if ($stash->get('user') && $stash->get(['Param', [ 'usevotes' ]])) {    $output .=  "\n          | <a href=\"votes.cgi?action=show_user\">My&nbsp;Votes</a>";    }        $output .=  "      \n        ";    #line 71 "template\en\default\global\useful-links.html.tmpl"    if ($stash->get(['user', 0, 'login', 0])) {    $output .=  " ";    #line 61 "template\en\default\global\useful-links.html.tmpl"    if ($stash->get(['user', 0, 'groups', 0, 'tweakparams', 0])) {    $output .=  ' | <a href="sanitycheck.cgi">Sanity&nbsp;check</a>';    }        $output .=  "\n            | <a href=\"relogin.cgi\">Log&nbsp;out</a>&nbsp;";    #line 65 "template\en\default\global\useful-links.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['user', 0, 'login', 0]);                &$filter($output);    };        }    else {    #line 68 "template\en\default\global\useful-links.html.tmpl"    if ($stash->get(['Param', [ 'createemailregexp' ]])) {    $output .=  "\n              | <a href=\"createaccount.cgi\">New&nbsp;Account</a>";    }        $output .=  "\n            | <a href=\"query.cgi?GoAheadAndLogIn=1\">Log&nbsp;In</a>";    }        $output .=  "\n    </div>\n  </div>\n      ";    #line 93 "template\en\default\global\useful-links.html.tmpl"    if ($stash->get(['user', 0, 'login', 0])) {    $output .=  " \n  <div id=\"links-edit\">\n    <div class=\"label\">Edit:</div>\n    <div class=\"links\">\n\n        <a href=\"userprefs.cgi\">Prefs</a>";    #line 83 "template\en\default\global\useful-links.html.tmpl"    if ($stash->get(['user', 0, 'groups', 0, 'tweakparams', 0])) {    $output .=  ' | <a href="editparams.cgi">Parameters</a>';    }        #line 84 "template\en\default\global\useful-links.html.tmpl"    if ($stash->get(['user', 0, 'groups', 0, 'editusers', 0]) || $stash->get(['user', 0, 'can_bless', 0])) {    $output .=  ' | <a href="editusers.cgi">Users</a>';    }        #line 85 "template\en\default\global\useful-links.html.tmpl"    if ($stash->get(['user', 0, 'groups', 0, 'editcomponents', 0])) {    $output .=  ' | <a href="editproducts.cgi">Products</a>';    }        #line 86 "template\en\default\global\useful-links.html.tmpl"    if ($stash->get(['user', 0, 'groups', 0, 'editcomponents', 0])) {    $output .=  ' | <a href="editflagtypes.cgi">Flags</a>';    }        #line 87 "template\en\default\global\useful-links.html.tmpl"    if ($stash->get(['user', 0, 'groups', 0, 'creategroups', 0])) {    $output .=  ' | <a href="editgroups.cgi">Groups</a>';    }        #line 88 "template\en\default\global\useful-links.html.tmpl"    if ($stash->get(['user', 0, 'groups', 0, 'editkeywords', 0])) {    $output .=  ' | <a href="editkeywords.cgi">Keywords</a>';    }        $output .=  "\n    </div>\n  </div>";    }        $output .=  "\n    \n\n    ";    $output .=  "\n    \n  <div id=\"links-saved\">\n    <div class=\"label\">";    #line 104 "template\en\default\global\useful-links.html.tmpl"    if ($stash->get(['user', 0, 'showmybugslink', 0]) || $stash->get(['user', 0, 'queries', 0, 'size', 0])) {    $output .=  "\n          Saved&nbsp;Searches:";    }        $output .=  "\n    </div>\n    <div class=\"links\">";    #line 111 "template\en\default\global\useful-links.html.tmpl"    if ($stash->get(['user', 0, 'showmybugslink', 0])) {    #line 108 "template\en\default\global\useful-links.html.tmpl"        # CAPTURE    $stash->set('filtered_username', do {        my $output = '';        # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('url_quote')                  || $context->throw($context->error);        $output .=  $stash->get(['user', 0, 'login', 0]);                &$filter($output);    };            $output;    });        $output .=  "\n          <a href=\"";    #line 109 "template\en\default\global\useful-links.html.tmpl"    $output .=  $stash->get(['Param', [ 'mybugstemplate' ], 'replace', [ '%userid%', $stash->get('filtered_username') ]]);    $output .=  "\">My&nbsp;";    #line 109 "template\en\default\global\useful-links.html.tmpl"    $output .=  $stash->get(['terms', 0, 'Bugs', 0]);    $output .=  "</a>";    #line 111 "template\en\default\global\useful-links.html.tmpl"    $stash->set('print_pipe', 1);        }        $output .=  "\n";    #line 117 "template\en\default\global\useful-links.html.tmpl"        # FOREACH     do {        my ($value, $error, $oldloop);        my $list = $stash->get(['user', 0, 'queries', 0]);                unless (UNIVERSAL::isa($list, 'Template::Iterator')) {            $list = Template::Config->iterator($list)                || die $Template::Config::ERROR, "\n";         }            ($value, $error) = $list->get_first();        eval { $oldloop = $stash->get('loop') };        $stash->set('loop', $list);        eval {    LOOP:   while (! $error) {                $stash->{'q'} = $value;    #line 117 "template\en\default\global\useful-links.html.tmpl"    if ($stash->get(['q', 0, 'linkinfooter', 0])) {    #line 114 "template\en\default\global\useful-links.html.tmpl"    if ($stash->get('print_pipe')) {    $output .=  ' | ';    }        $output .=  "\n            <a href=\"buglist.cgi?cmdtype=runnamed&amp;namedcmd=";    #line 115 "template\en\default\global\useful-links.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('url_quote')                  || $context->throw($context->error);        $output .=  $stash->get(['q', 0, 'name', 0]);                &$filter($output);    };        $output .=  "\"><nobr>";    #line 115 "template\en\default\global\useful-links.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['q', 0, 'name', 0]);                &$filter($output);    };        $output .=  "</nobr></a>";    #line 117 "template\en\default\global\useful-links.html.tmpl"    $stash->set('print_pipe', 1);        }    ;                ($value, $error) = $list->get_next();            }        };        $stash->set('loop', $oldloop);        die $@ if $@;        $error = 0 if $error && $error eq Template::Constants::STATUS_DONE;        die $error if $error;    };        $output .=  "\n    </div>\n  </div>\n</div>\n</form>\n";        } };        if ($@) {            $error = $context->catch($@, \$output);            die $error unless $error->type eq 'return';        }            return $output;    },    DEFBLOCKS => {    },});

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -