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

📄 comments.html.tmpl

📁 bugzilla的安装文件
💻 TMPL
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.13#------------------------------------------------------------------------Template::Document->new({    METADATA => {        'modtime' => '1097354360',        'name' => 'bug/comments.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";    #line 23 "template\en\default\bug\comments.html.tmpl"    $stash->set('start_at', 0, 1);    $stash->set('mode', 'show', 1);        #line 23 "template\en\default\bug\comments.html.tmpl"    $stash->set('count', 0);        #line 23 "template\en\default\bug\comments.html.tmpl"    $stash->set('isinsider', $stash->get(['Param', [ 'insidergroup' ]]) && $stash->get(['UserInGroup', [ $stash->get(['Param', [ 'insidergroup' ]]) ]]));        #line 26 "template\en\default\bug\comments.html.tmpl"        # FOREACH     do {        my ($value, $error, $oldloop);        my $list = $stash->get('comments');                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->{'comment'} = $value;    #line 23 "template\en\default\bug\comments.html.tmpl"    if ($stash->get('count') >= $stash->get('start_at')) {    #line 23 "template\en\default\bug\comments.html.tmpl"    $output .=  $context->process('a_comment');    }        $output .=  "\n  ";    #line 26 "template\en\default\bug\comments.html.tmpl"    $stash->set('count', $stash->get('count') + 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";    #line 29 "template\en\default\bug\comments.html.tmpl"    $output .=  $context->process('bug/time.html.tmpl');    $output .=  "\n\n";    $output .=  "\n";    #line 34 "template\en\default\bug\comments.html.tmpl"    $output .=  $stash->get(['Hook', 0, 'process', [ 'aftercomments' ]]);    $output .=  "\n\n";    $output .=  "\n";    $output .=  "\n";    $output .=  "\n";        $output .=  "\n";        } };        if ($@) {            $error = $context->catch($@, \$output);            die $error unless $error->type eq 'return';        }            return $output;    },    DEFBLOCKS => {        'a_comment' => sub {            my $context = shift || die "template sub called without context\n";            my $stash   = $context->stash;            my $output  = '';            my $error;                        eval { BLOCK: {        #line 93 "template\en\default\bug\comments.html.tmpl"        if (! $stash->get(['comment', 0, 'isprivate', 0]) || $stash->get('isinsider')) {        $output .=  "\n    <div ";        #line 42 "template\en\default\bug\comments.html.tmpl"        if ($stash->get(['comment', 0, 'isprivate', 0])) {        $output .=  ('' . "class=\"bz_private\"");        }                $output .=  ">";        #line 63 "template\en\default\bug\comments.html.tmpl"        if ($stash->get('count') > 0) {        $output .=  "\n        <br>\n        <span class=\"bz_comment\">\n          ------- <i>Additional Comment\n          <a name=\"c";        #line 48 "template\en\default\bug\comments.html.tmpl"        $output .=  $stash->get('count');        $output .=  "\" href=\"#c";        #line 48 "template\en\default\bug\comments.html.tmpl"        $output .=  $stash->get('count');        $output .=  "\">#";        #line 48 "template\en\default\bug\comments.html.tmpl"        $output .=  $stash->get('count');        $output .=  "</a> From \n          <a href=\"mailto:";        #line 49 "template\en\default\bug\comments.html.tmpl"                # FILTER        $output .=  do {            my $output = '';            my $filter = $context->filter('html')                      || $context->throw($context->error);                $output .=  $stash->get(['comment', 0, 'email', 0]);                        &$filter($output);        };                $output .=  "\">";        #line 51 "template\en\default\bug\comments.html.tmpl"                # FILTER        $output .=  do {            my $output = '';            my $filter = $context->filter('html')                      || $context->throw($context->error);                $output .=  $stash->get(['comment', 0, 'name', 0]);                        &$filter($output);        };                $output .=  "</a>\n          ";        #line 52 "template\en\default\bug\comments.html.tmpl"                # FILTER        $output .=  do {            my $output = '';            my $filter = $context->filter('time')                      || $context->throw($context->error);                $output .=  $stash->get(['comment', 0, 'time', 0]);                        &$filter($output);        };                $output .=  " \n          </i>";        #line 59 "template\en\default\bug\comments.html.tmpl"        if ($stash->get('mode') eq 'edit') {        $output .=  "\n          <script type=\"text/javascript\" language=\"JavaScript\"><!-- \n            addReplyLink(";        #line 57 "template\en\default\bug\comments.html.tmpl"        $output .=  $stash->get('count');        $output .=  "); //--></script>";        }                $output .=  "\n          -------\n        </span>";        }                $output .=  "\n        ";        #line 77 "template\en\default\bug\comments.html.tmpl"        if ($stash->get('mode') eq 'edit' && $stash->get('isinsider')) {        $output .=  "\n        <i>\n          <input type=\"hidden\" name=\"oisprivate-";        #line 68 "template\en\default\bug\comments.html.tmpl"        $output .=  $stash->get('count');        $output .=  "\" \n                 value=\"";        #line 69 "template\en\default\bug\comments.html.tmpl"        $output .=  $stash->get(['comment', 0, 'isprivate', 0]);        $output .=  "\">\n          <input type=\"hidden\" name=\"when-";        #line 70 "template\en\default\bug\comments.html.tmpl"        $output .=  $stash->get('count');        $output .=  "\" value=\"";        #line 70 "template\en\default\bug\comments.html.tmpl"        $output .=  $stash->get(['comment', 0, 'when', 0]);        $output .=  "\">\n          <input type=\"checkbox\" name=\"isprivate-";        #line 71 "template\en\default\bug\comments.html.tmpl"        $output .=  $stash->get('count');        $output .=  "\" value=\"1\"\n                 id=\"isprivate-";        #line 72 "template\en\default\bug\comments.html.tmpl"        $output .=  $stash->get('count');        $output .=  "\"";        #line 74 "template\en\default\bug\comments.html.tmpl"        if ($stash->get(['comment', 0, 'isprivate', 0])) {        $output .=  ('' . " checked=\"checked\"");        }                $output .=  "> Private\n        </i>";        }                #line 82 "template\en\default\bug\comments.html.tmpl"        if ($stash->get(['UserInGroup', [ $stash->get(['Param', [ 'timetrackinggroup' ]]) ]]) && ($stash->get(['comment', 0, 'work_time', 0]) > 0 || $stash->get(['comment', 0, 'work_time', 0]) < 0)) {        $output .=  "\n         <br>\n         Additional hours worked: ";        #line 82 "template\en\default\bug\comments.html.tmpl"        $output .=  $context->process('formattimeunit', { 'time_unit' => $stash->get(['comment', 0, 'work_time', 0]) });        }                $output .=  "\n\n";        $output .=  "\n<pre";        #line 87 "template\en\default\bug\comments.html.tmpl"        if ($stash->get('mode') eq 'edit') {        $output .=  ' id="comment_text_'  . $stash->get('count')  . '"';        }                $output .=  ">";        #line 89 "template\en\default\bug\comments.html.tmpl"                # FILTER        $output .=  do {            my $output = '';            my $filter = $context->filter('quoteUrls')                      || $context->throw($context->error);                $output .=  $stash->get(['comment', 0, 'body', 0]);                        &$filter($output);        };                $output .=  "</pre>\n    </div>";        }                    } };            if ($@) {                $error = $context->catch($@, \$output);                die $error unless $error->type eq 'return';            }                    return $output;        },    },});

⌨️ 快捷键说明

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