1 <div class="shortbugstatus">
2 <a href="{html_escape(bug_links(bug=>$status{bug_num},links_only=>1))}"{length($status{done})?' style="text-decoration:line-through"':''}>#{html_escape($status{bug_num})}</a>
3 [<font face="fixed"><a href="javascript:extra_status_visible({html_escape($status{bug_num})})">{
4 my $output = qq(<span title="$status{severity}">);
5 my $temp = $status{severity};
6 $temp = substr $temp,0,1;
7 if (isstrongseverity($status{severity})){
8 $temp = q(<em class="severity">).uc($temp).q(</em);
10 $output .= $temp.qq(</span>);
14 for my $tag (@{$status{tags_array}}) {
15 next unless exists $config{tags_single_letter}{$tag};
16 $output .= q(<span title=").$tag.q(">).$config{tags_single_letter}{$tag}.q(</span>);
21 if (@{$status{mergedwith_array}}) {
22 $output .= qq(<span title="merged">=</span>);
24 if (@{$status{fixed_versions}}) {
25 $output .= qq(<span title="fixed versions">☺</span>);
27 if (@{$status{blockedby_array}}) {
28 $output .= qq(<span title="blocked by">┫</span>);
30 if (@{$status{blocks_array}}) {
31 $output .= qq(<span title="blocks">┣</span>);
33 if (length($status{forwarded})) {
34 $output .= qq(<span title="forwarded">↝</span>);
36 if ($status{archived}) {
37 $output .= qq(<span title="archived">♲</span>);
41 [{package_links(package=>$status{package},options=>\%options,class=>"submitter")}]
42 <a href="{html_escape(bug_links(bug=>$status{bug_num},links_only=>1))}">{html_escape($status{subject})}</a>
43 <div id="extra_status_{html_escape($status{bug_num})}" class="shortbugstatusextra">
44 <span>Reported by: {package_links(submitter=>$status{originator})};</span>
45 <span>Date: {$status{date_text}};</span>
47 if (defined $status{owner} and length $status{owner}) {
48 $output = q(<span>Owned by: ).package_links(owner=>$status{owner}).q(;</span>);
51 }<span>Severity: {my $output = $status{severity};
52 if (isstrongseverity($status{severity})) {
53 $output = q(<em class="severity">).$status{severity}.q(</em>);
57 <span>{@{$status{tags_array}}?q(Tags: ).html_escape(join(q(, ),@{$status{tags_array}})).';':''}</span>
59 if (@{$status{mergedwith_array}}) {
60 $output .= q(<span>Merged with ).join(qq(,\n),bug_links(bug=>$status{mergedwith_array})).qq(;</span>\n);
64 if (@{$status{found_versions}} or @{$status{fixed_versions}}) {
65 $output .= '<a href="'.
66 version_url(package => $status{package},
67 found => $status{found_versions},
68 fixed => $status{fixed_versions},
71 if (@{$status{found_versions}}) {
72 $output .= q(<span>Found in );
73 $output .= (@{$status{found_versions}} == 1) ? 'version ' : 'versions ';
74 $output .= join(qq(, ),map {html_escape($_);} @{$status{found_versions}}).qq(;</span>\n);
76 if (@{$status{fixed_versions}}) {
77 $output .= q(<span>Fixed in );
78 $output .= (@{$status{fixed_versions}} == 1) ? 'version ' : 'versions ';
79 $output .= join(qq(, ),map {html_escape($_);} @{$status{fixed_versions}}).qq(;</span>\n);
81 if (@{$status{found_versions}} or @{$status{fixed_versions}}) {
86 if (length($status{forwarded})) {
87 $output = "<span><strong>Forwarded</strong> to " .
90 split /\,\s+/,$status{forwarded}
95 if (length($status{done})) {
96 $output .= q(<span><strong>Done:</strong> ).html_escape($status{done}).q(;</span> )
100 if (@{$status{blockedby_array}}) {
101 $output .= q(<span>Fix blocked by ).
103 map {bug_links(bug=>$_->{bug_num}).q(: ).html_escape($_->{subject})}
104 @{$status{blockedby_array}}).q(;</span> )
106 if (@{$status{blocks_array}}) {
107 $output .= q(<span>Blocking fix for ).
109 map {bug_links(bug=>$_->{bug_num}).q(: ).html_escape($_->{subject})}
110 @{$status{blocks_array}}).q(;</span> )
114 my ($days_last,$eng_last) = secs_to_english(time - $status{log_modified});
115 my ($days,$eng) = secs_to_english(time - $status{date});
120 $font = "em" if ($days > 30);
121 $font = "strong" if ($days > 60);
122 $efont = "</$font>" if ($font);
123 $font = "<$font>" if ($font);
125 $output .= "<span>${font}Filed $eng ago$efont;</span>\n";
127 if ($days_last > 7) {
130 $font = "em" if ($days_last > 30);
131 $font = "strong" if ($days_last > 60);
132 $efont = "</$font>" if ($font);
133 $font = "<$font>" if ($font);
135 $output .= "<span>${font}Modified $eng_last ago$efont;</span>\n";
139 if (exists $status{archived} and $status{archived}) {
140 $output .= q(<span>Bug is archived. No further changes may be made.<span> )