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

📄 show.xml.tmpl

📁 buzilla软件
💻 TMPL
📖 第 1 页 / 共 2 页
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({    METADATA => {        'modtime' => '1212533768',        'name' => 'bug/show.xml.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";    #line 23 "template\en\default\bug\show.xml.tmpl"    $output .=  $context->process('bug/time.html.tmpl');    $output .=  "\n<?xml version=\"1.0\" ";    #line 24 "template\en\default\bug\show.xml.tmpl"    if ($stash->get(['Param', [ 'utf8' ]])) {    $output .=  "encoding=\"UTF-8\" ";    }        $output .=  "standalone=\"yes\" ?>\n<!DOCTYPE bugzilla SYSTEM \"";    #line 25 "template\en\default\bug\show.xml.tmpl"    $output .=  $stash->get(['Param', [ 'urlbase' ]]);    $output .=  "bugzilla.dtd\">\n\n<bugzilla version=\"";    #line 27 "template\en\default\bug\show.xml.tmpl"    $output .=  '3.0.6';    $output .=  "\"\n          urlbase=\"";    #line 28 "template\en\default\bug\show.xml.tmpl"    $output .=  $stash->get(['Param', [ 'urlbase' ]]);    $output .=  "\"\n          maintainer=\"";    #line 29 "template\en\default\bug\show.xml.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('xml')                  || $context->throw($context->error);        $output .=  $stash->get(['Param', [ 'maintainer' ]]);                &$_tt_filter($output);    };        $output .=  "\"";    #line 32 "template\en\default\bug\show.xml.tmpl"    if ($stash->get(['user', 0, 'id', 0])) {    $output .=  "\n          exporter=\"";    #line 31 "template\en\default\bug\show.xml.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('xml')                  || $context->throw($context->error);        $output .=  $stash->get(['user', 0, 'email', 0]);                &$_tt_filter($output);    };        $output .=  "\"";    }        $output .=  "\n>\n";    #line 117 "template\en\default\bug\show.xml.tmpl"        # FOREACH     do {        my ($_tt_value, $_tt_error, $_tt_oldloop);        my $_tt_list = $stash->get('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->{'bug'} = $_tt_value;    #line 116 "template\en\default\bug\show.xml.tmpl"    if ($stash->get(['bug', 0, 'error', 0])) {    $output .=  "\n    <bug error=\"";    #line 37 "template\en\default\bug\show.xml.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('xml')                  || $context->throw($context->error);        $output .=  $stash->get(['bug', 0, 'error', 0]);                &$_tt_filter($output);    };        $output .=  "\">\n      <bug_id>";    #line 38 "template\en\default\bug\show.xml.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('xml')                  || $context->throw($context->error);        $output .=  $stash->get(['bug', 0, 'bug_id', 0]);                &$_tt_filter($output);    };        $output .=  "</bug_id>\n    </bug>";    }    else {    $output .=  "\n    <bug>";    #line 46 "template\en\default\bug\show.xml.tmpl"        # FOREACH     do {        my ($_tt_value, $_tt_error, $_tt_oldloop);        my $_tt_list = $stash->get(['bug', 0, 'fields', 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->{'field'} = $_tt_value;    #line 45 "template\en\default\bug\show.xml.tmpl"    if ($stash->get(['displayfields', 0, $stash->get('field'), 0])) {    $output .=  "\n          ";    #line 44 "template\en\default\bug\show.xml.tmpl"    $output .=  $context->process('bug_field');    }    ;                ($_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\n      ";    #line 54 "template\en\default\bug\show.xml.tmpl"    if ($stash->get(['displayfields', 0, 'group', 0])) {    #line 53 "template\en\default\bug\show.xml.tmpl"        # FOREACH     do {        my ($_tt_value, $_tt_error, $_tt_oldloop);        my $_tt_list = $stash->get(['bug', 0, 'groups', 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->{'g'} = $_tt_value;    #line 51 "template\en\default\bug\show.xml.tmpl"    if (!($stash->get(['g', 0, 'ison', 0]))) {    ($_tt_value, $_tt_error) = $_tt_list->get_next();    next LOOP;        }        $output .=  "\n          <group>";    #line 52 "template\en\default\bug\show.xml.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('xml')                  || $context->throw($context->error);        $output .=  $stash->get(['g', 0, 'name', 0]);                &$_tt_filter($output);    };        $output .=  "</group>";;                ($_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\n      ";    #line 67 "template\en\default\bug\show.xml.tmpl"        # FOREACH     do {        my ($_tt_value, $_tt_error, $_tt_oldloop);        my $_tt_list = $stash->get(['bug', 0, 'flag_types', 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->{'type'} = $_tt_value;    #line 66 "template\en\default\bug\show.xml.tmpl"        # FOREACH     do {        my ($_tt_value, $_tt_error, $_tt_oldloop);        my $_tt_list = $stash->get(['type', 0, 'flags', 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->{'flag'} = $_tt_value;    $output .=  "\n          <flag name=\"";    #line 59 "template\en\default\bug\show.xml.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('xml')                  || $context->throw($context->error);        $output .=  $stash->get(['type', 0, 'name', 0]);                &$_tt_filter($output);    };        $output .=  "\"\n                status=\"";    #line 60 "template\en\default\bug\show.xml.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('xml')                  || $context->throw($context->error);        $output .=  $stash->get(['flag', 0, 'status', 0]);                &$_tt_filter($output);    };        $output .=  "\"\n                setter=\"";    #line 61 "template\en\default\bug\show.xml.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('xml')                  || $context->throw($context->error);        $output .=  $stash->get(['flag', 0, 'setter', 0, 'login', 0]);                &$_tt_filter($output);    };        $output .=  "\"";    #line 64 "template\en\default\bug\show.xml.tmpl"    if ($stash->get(['flag', 0, 'requestee', 0])) {    $output .=  "\n              requestee=\"";    #line 63 "template\en\default\bug\show.xml.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('xml')                  || $context->throw($context->error);        $output .=  $stash->get(['flag', 0, 'requestee', 0, 'login', 0]);                &$_tt_filter($output);    };        $output .=  "\"";    }        $output .=  "\n          />";;                ($_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;    };    ;                ($_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 80 "template\en\default\bug\show.xml.tmpl"    if ($stash->get(['displayfields', 0, 'long_desc', 0])) {    #line 79 "template\en\default\bug\show.xml.tmpl"        # FOREACH     do {        my ($_tt_value, $_tt_error, $_tt_oldloop);        my $_tt_list = $stash->get(['bug', 0, 'longdescs', 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->{'c'} = $_tt_value;    #line 70 "template\en\default\bug\show.xml.tmpl"    if ($stash->get(['c', 0, 'isprivate', 0]) && ! $stash->get(['user', 0, 'in_group', [ $stash->get(['Param', [ 'insidergroup' ]]) ]])) {    ($_tt_value, $_tt_error) = $_tt_list->get_next();    next LOOP;        }        $output .=  "\n          <long_desc isprivate=\"";    #line 71 "template\en\default\bug\show.xml.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('xml')                  || $context->throw($context->error);        $output .=  $stash->get(['c', 0, 'isprivate', 0]);                &$_tt_filter($output);    };        $output .=  "\">\n            <who name=\"";    #line 72 "template\en\default\bug\show.xml.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('xml')                  || $context->throw($context->error);        $output .=  $stash->get(['c', 0, 'name', 0]);                &$_tt_filter($output);    };        $output .=  "\">";    #line 72 "template\en\default\bug\show.xml.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('xml')                  || $context->throw($context->error);        $output .=  $stash->get(['c', 0, 'email', 0]);                &$_tt_filter($output);    };        $output .=  "</who>\n            <bug_when>";    #line 73 "template\en\default\bug\show.xml.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('xml')                  || $context->throw($context->error);            # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('time')                  || $context->throw($context->error);        $output .=  $stash->get(['c', 0, 'time', 0]);                &$_tt_filter($output);    };                    &$_tt_filter($output);    };        $output .=  "</bug_when>";    #line 76 "template\en\default\bug\show.xml.tmpl"    if ($stash->get(['user', 0, 'in_group', [ $stash->get(['Param', [ 'timetrackinggroup' ]]) ]]) && ($stash->get(['c', 0, 'work_time', 0]) - 0 ne 0)) {    $output .=  "\n              <work_time>";    #line 75 "template\en\default\bug\show.xml.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('xml')                  || $context->throw($context->error);        $output .=  $context->process('formattimeunit', { 'time_unit' => $stash->get(['c', 0, 'work_time', 0]) });                &$_tt_filter($output);    };        $output .=  "</work_time>";    }        $output .=  "\n            <thetext>";    #line 77 "template\en\default\bug\show.xml.tmpl"        # FILTER    $output .=  do {

⌨️ 快捷键说明

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