";
# FILTER
$output .= do {
my $output = '';
my $filter = $context->filter('html')
|| $context->throw($context->error);
$output .= $stash->get(['product', 0, 'name', 0]);
&$filter($output);
};
$output .= " | | \n \n (Note: only ";
$output .= $stash->get(['product', 0, 'maxperbug', 0]);
$output .= " vote";
if ($stash->get(['product', 0, 'maxperbug', 0]) ne 1) {
$output .= 's';
}
$output .= " allowed per bug in \n this product.)\n \n |
---|
| ";
if (! $stash->get(['bug', 0, 'opened', 0])) {
$output .= '';
}
$output .= "\n get(['bug', 0, 'id', 0]);
$output .= "\">";
$output .= $stash->get(['bug', 0, 'id', 0]);
$output .= "";
if (! $stash->get(['bug', 0, 'opened', 0])) {
$output .= '';
}
$output .= "\n | \n get(['bug', 0, 'id', 0]);
$output .= "\">";
# FILTER
$output .= do {
my $output = '';
my $filter = $context->filter('html')
|| $context->throw($context->error);
$output .= $stash->get(['bug', 0, 'summary', 0]);
&$filter($output);
};
$output .= "\n \n | ";
if ($stash->get('canedit')) {
if ($stash->get(['product', 0, 'onevoteonly', 0])) {
$output .= "\n get(['bug', 0, 'id', 0]);
$output .= "\" value=\"1\"";
if ($stash->get(['bug', 0, 'count', 0])) {
$output .= ' checked';
}
$output .= ">";
}
else {
$output .= "\n get(['bug', 0, 'id', 0]);
$output .= "\" value=\"";
$output .= $stash->get(['bug', 0, 'count', 0]);
$output .= "\" \n size=\"2\">";
}
}
else {
$output .= $stash->get(['bug', 0, 'count', 0]);
}
$output .= "\n |
| ";
$output .= $stash->get(['product', 0, 'total', 0]);
$output .= " vote";
if ($stash->get(['product', 0, 'total', 0]) ne 1) {
$output .= 's';
}
$output .= " used out of ";
$output .= $stash->get(['product', 0, 'maxvotes', 0]);
$output .= "\n allowed.\n \n \n |