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

📄 list.html.tmpl

📁 buzilla软件
💻 TMPL
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({    METADATA => {        'modtime' => '1169579068',        'name' => 'attachment/list.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\n<script type=\"text/javascript\">\n  <!--\n  function toggle_display(link) {\n    var table = document.getElementById(\"attachment_table\");\n    var rows = table.getElementsByTagName(\"tr\");\n    var originalHeight = table.offsetHeight; // Store current height for scrolling\n\n    var toggle;\n    if (link.innerHTML == \"Show Obsolete\") {\n      toggle = \"\"; // This should be 'table-row', but IE 6 doesn't understand it.\n      link.innerHTML = \"Hide Obsolete\";\n    }\n    else {\n      toggle = \"none\";\n      link.innerHTML = \"Show Obsolete\";\n    }\n\n    for (var i = 0; i < rows.length; i++) {\n      if (rows[i].className.match('bz_tr_obsolete'))\n        rows[i].style.display = toggle;\n    }\n\n    var newHeight = table.offsetHeight;\n    window.scrollBy(0, newHeight - originalHeight);\n\n    return false;\n  }\n  //-->\n</script>\n\n<br>\n<table id=\"attachment_table\" cellspacing=\"0\" cellpadding=\"4\">\n  <tr>\n    <th colspan=\"";    #line 56 "template\en\default\attachment\list.html.tmpl"    $output .=  $stash->get('show_attachment_flags') ? 3 : 2;    $output .=  "\" align=\"left\">\n      <a name=\"a0\" id=\"a0\">Attachments</a>\n    </th>\n  </tr>\n";    #line 61 "template\en\default\attachment\list.html.tmpl"    $stash->set('count', 0);        #line 62 "template\en\default\attachment\list.html.tmpl"    $stash->set('obsolete_attachments', 0);        $output .=  "\n";    #line 131 "template\en\default\attachment\list.html.tmpl"        # FOREACH     do {        my ($_tt_value, $_tt_error, $_tt_oldloop);        my $_tt_list = $stash->get('attachments');                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->{'attachment'} = $_tt_value;    #line 65 "template\en\default\attachment\list.html.tmpl"    $stash->set('count', $stash->get('count') + 1);        #line 130 "template\en\default\attachment\list.html.tmpl"    if (! $stash->get(['attachment', 0, 'isprivate', 0]) || $stash->get(['user', 0, 'is_insider', 0]) || $stash->get(['attachment', 0, 'attacher', 0, 'id', 0]) eq $stash->get(['user', 0, 'id', 0])) {    #line 69 "template\en\default\attachment\list.html.tmpl"    if ($stash->get(['attachment', 0, 'isobsolete', 0])) {    #line 68 "template\en\default\attachment\list.html.tmpl"    $stash->set('obsolete_attachments', $stash->get('obsolete_attachments') + 1);        }        $output .=  "\n      <tr class=\"";    #line 70 "template\en\default\attachment\list.html.tmpl"    if ($stash->get(['attachment', 0, 'isprivate', 0])) {    $output .=  'bz_private';    }        $output .=  "\n                 ";    #line 71 "template\en\default\attachment\list.html.tmpl"    if ($stash->get(['attachment', 0, 'isobsolete', 0])) {    $output .=  'bz_tr_obsolete';    }        $output .=  "\">\n        <td valign=\"top\">";    #line 76 "template\en\default\attachment\list.html.tmpl"    if ($stash->get(['attachment', 0, 'datasize', 0])) {    $output .=  "\n            <a name=\"a";    #line 74 "template\en\default\attachment\list.html.tmpl"    $output .=  $stash->get('count');    $output .=  "\" href=\"attachment.cgi?id=";    #line 74 "template\en\default\attachment\list.html.tmpl"    $output .=  $stash->get(['attachment', 0, 'id', 0]);    $output .=  "\"\n               title=\"View the content of the attachment\">";    }        $output .=  "\n          <b>";    #line 77 "template\en\default\attachment\list.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('obsolete', [ $stash->get(['attachment', 0, 'isobsolete', 0]) ])                  || $context->throw($context->error);            # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['attachment', 0, 'description', 0]);                &$_tt_filter($output);    };                    &$_tt_filter($output);    };        $output .=  "</b>";    #line 78 "template\en\default\attachment\list.html.tmpl"    if ($stash->get(['attachment', 0, 'datasize', 0])) {    $output .=  '</a>';    }        $output .=  "\n\n          <span class=\"bz_attach_extra_info\">";    #line 92 "template\en\default\attachment\list.html.tmpl"    if ($stash->get(['attachment', 0, 'datasize', 0])) {    $output .=  "\n              (";    #line 82 "template\en\default\attachment\list.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('unitconvert')                  || $context->throw($context->error);        $output .=  $stash->get(['attachment', 0, 'datasize', 0]);                &$_tt_filter($output);    };        $output .=  ",";    #line 89 "template\en\default\attachment\list.html.tmpl"    if ($stash->get(['attachment', 0, 'ispatch', 0])) {    $output .=  "\n                patch)";    }    elsif ($stash->get(['attachment', 0, 'isurl', 0])) {    $output .=  "\n                url)";    }    else {    $output .=  "\n                ";    #line 88 "template\en\default\attachment\list.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['attachment', 0, 'contenttype', 0]);                &$_tt_filter($output);    };        $output .=  ")";    }        }    else {    $output .=  "\n              (<em>deleted</em>)";    }        $output .=  "\n\n            <br>\n            <a href=\"#attach_";    #line 95 "template\en\default\attachment\list.html.tmpl"    $output .=  $stash->get(['attachment', 0, 'id', 0]);    $output .=  "\"\n               title=\"Go to the comment associated with the attachment\">";    #line 97 "template\en\default\attachment\list.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('time')                  || $context->throw($context->error);        $output .=  $stash->get(['attachment', 0, 'attached', 0]);                &$_tt_filter($output);    };        $output .=  "</a>,\n\n            <a href=\"mailto:";    #line 99 "template\en\default\attachment\list.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['attachment', 0, 'attacher', 0, 'email', 0]);                &$_tt_filter($output);    };        $output .=  "\"\n               title=\"Write an email to the creator of the attachment\">";    #line 101 "template\en\default\attachment\list.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['attachment', 0, 'attacher', 0, 'name', 0]) || $stash->get(['attachment', 0, 'attacher', 0, 'login', 0]);                &$_tt_filter($output);    };        $output .=  "\n            </a>\n          </span>\n        </td>\n";    #line 120 "template\en\default\attachment\list.html.tmpl"    if ($stash->get('show_attachment_flags')) {    $output .=  "\n          <td class=\"bz_attach_flags\" valign=\"top\">";    #line 118 "template\en\default\attachment\list.html.tmpl"    if ($stash->get(['attachment', 0, 'flags', 0, 'size', 0]) eq 0) {    $output .=  "\n              <i>no flags</i>";    }    else {    #line 117 "template\en\default\attachment\list.html.tmpl"        # FOREACH     do {        my ($_tt_value, $_tt_error, $_tt_oldloop);        my $_tt_list = $stash->get(['attachment', 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;    #line 112 "template\en\default\attachment\list.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['flag', 0, 'setter', 0, 'nick', 0]);                &$_tt_filter($output);    };        $output .=  ":\n                ";    #line 113 "template\en\default\attachment\list.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('no_break')                  || $context->throw($context->error);            # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['flag', 0, 'type', 0, 'name', 0]);                &$_tt_filter($output);    };                    &$_tt_filter($output);    };        #line 113 "template\en\default\attachment\list.html.tmpl"    $output .=  $stash->get(['flag', 0, 'status', 0]);    $output .=  "\n                ";    #line 116 "template\en\default\attachment\list.html.tmpl"    if ($stash->get(['flag', 0, 'status', 0]) eq '?' && $stash->get(['flag', 0, 'requestee', 0])) {    $output .=  "\n                  (";    #line 115 "template\en\default\attachment\list.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['flag', 0, 'requestee', 0, 'nick', 0]);                &$_tt_filter($output);    };        $output .=  ")";    }        $output .=  "<br>";;                ($_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          </td>";    }        $output .=  "\n\n        <td valign=\"top\">\n          <a href=\"attachment.cgi?id=";    #line 123 "template\en\default\attachment\list.html.tmpl"    $output .=  $stash->get(['attachment', 0, 'id', 0]);    $output .=  "&amp;action=edit\">Details</a>";    #line 126 "template\en\default\attachment\list.html.tmpl"    if ($stash->get(['attachment', 0, 'ispatch', 0]) && $stash->get('patchviewerinstalled')) {    $output .=  "\n            | <a href=\"attachment.cgi?id=";    #line 125 "template\en\default\attachment\list.html.tmpl"    $output .=  $stash->get(['attachment', 0, 'id', 0]);    $output .=  "&amp;action=diff\">Diff</a>";    }        #line 127 "template\en\default\attachment\list.html.tmpl"    $output .=  $stash->get(['Hook', 0, 'process', [ 'action' ]]);    $output .=  "\n        </td>\n      </tr>";    }    ;                ($_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  <tr class=\"bz_attach_footer\">\n    <td colspan=\"";    #line 134 "template\en\default\attachment\list.html.tmpl"    $output .=  $stash->get('show_attachment_flags') ? 3 : 2;    $output .=  "\">";    #line 142 "template\en\default\attachment\list.html.tmpl"    if ($stash->get(['attachments', 0, 'size', 0])) {    $output .=  "\n        <span class=\"bz_attach_view_hide\">";    #line 139 "template\en\default\attachment\list.html.tmpl"    if ($stash->get('obsolete_attachments')) {    $output .=  "\n            <a href=\"#a0\" onClick=\"return toggle_display(this);\">Hide Obsolete</a> (";    #line 138 "template\en\default\attachment\list.html.tmpl"    $output .=  $stash->get('obsolete_attachments');    $output .=  ") |";    }        $output .=  "\n          <a href=\"attachment.cgi?bugid=";    #line 140 "template\en\default\attachment\list.html.tmpl"    $output .=  $stash->get('bugid');    $output .=  "&amp;action=viewall\">View All</a>\n        </span>";    }        $output .=  "\n      <a href=\"attachment.cgi?bugid=";    #line 143 "template\en\default\attachment\list.html.tmpl"    $output .=  $stash->get('bugid');    $output .=  "&amp;action=enter\">Add an attachment</a>\n      (proposed patch, testcase, etc.)\n    </td>\n  </tr>\n</table>\n<br>\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 + -