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

📄 list.rdf.tmpl

📁 buzilla软件
💻 TMPL
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({    METADATA => {        'modtime' => '1123156284',        'name' => 'list/list.rdf.tmpl',    },    BLOCK => sub {        my $context = shift || die "template sub called without context\n";        my $stash   = $context->stash;        my $output  = '';        my $_tt_error;                eval { BLOCK: {    #line 1 "template\en\default\list\list.rdf.tmpl"    $stash->set('template_version', '1.0@bugzilla.org');        $output .=  "\n";    $output .=  "\n\n<?xml version=\"1.0\"";    #line 22 "template\en\default\list\list.rdf.tmpl"    if ($stash->get(['Param', [ 'utf8' ]])) {    $output .=  " encoding=\"UTF-8\"";    }        $output .=  "?>\n<!-- ";    #line 23 "template\en\default\list\list.rdf.tmpl"    $output .=  $stash->get('template_version');    $output .=  " -->\n<RDF xmlns=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"\n     xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"\n     xmlns:bz=\"http://www.bugzilla.org/rdf#\"\n     xmlns:nc=\"http://home.netscape.com/NC-rdf#\">\n\n<bz:result rdf:about=\"";    #line 29 "template\en\default\list\list.rdf.tmpl"    $output .=  $stash->get(['Param', [ 'urlbase' ]]);    $output .=  "buglist.cgi?";    #line 29 "template\en\default\list\list.rdf.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get('urlquerypart');                &$_tt_filter($output);    };        $output .=  "\">\n  <bz:installation rdf:resource=\"";    #line 30 "template\en\default\list\list.rdf.tmpl"    $output .=  $stash->get(['Param', [ 'urlbase' ]]);    $output .=  "\" />\n  <bz:bugs>\n    <Seq>";    #line 48 "template\en\default\list\list.rdf.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;    $output .=  "\n      <li>\n        \n        <bz:bug rdf:about=\"";    #line 36 "template\en\default\list\list.rdf.tmpl"    $output .=  $stash->get(['Param', [ 'urlbase' ]]);    $output .=  "show_bug.cgi?id=";    #line 36 "template\en\default\list\list.rdf.tmpl"    $output .=  $stash->get(['bug', 0, 'bug_id', 0]);    $output .=  "\">\n          \n          <bz:id nc:parseType=\"Integer\">";    #line 38 "template\en\default\list\list.rdf.tmpl"    $output .=  $stash->get(['bug', 0, 'bug_id', 0]);    $output .=  "</bz:id>\n        ";    #line 42 "template\en\default\list\list.rdf.tmpl"        # FOREACH     do {        my ($_tt_value, $_tt_error, $_tt_oldloop);        my $_tt_list = $stash->get('displaycolumns');                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->{'column'} = $_tt_value;    $output .=  "\n          <bz:";    #line 41 "template\en\default\list\list.rdf.tmpl"    $output .=  $stash->get('column');    #line 41 "template\en\default\list\list.rdf.tmpl"    if ($stash->get('column') eq 'votes') {    $output .=  ' nc:parseType="Integer"';    }        $output .=  ">";    #line 41 "template\en\default\list\list.rdf.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['bug', 0, $stash->get('column'), 0]);                &$_tt_filter($output);    };        $output .=  "</bz:";    #line 41 "template\en\default\list\list.rdf.tmpl"    $output .=  $stash->get('column');    $output .=  ">";;                ($_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        </bz:bug>\n      \n      </li>\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;    };        $output .=  "\n\n    </Seq>\n\n  </bz:bugs>\n\n</bz:result>\n\n</RDF>\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 + -