]> git.donarmstrong.com Git - debbugs.git/blob - templates/en_US/cgi/short_bug_status.tx
we don't necessarily need to deparse the email address for pkg links
[debbugs.git] / templates / en_US / cgi / short_bug_status.tx
1 <div class="shortbugstatus">
2   <a href="<: bug_links(bug=>$status.bug_num,links_only=>1):>"<:length($status.done)?' style="text-decoration:line-through"':'':>>#<: $status.bug_num :></a>
3   [<font face="fixed"><span class="link" onclick="javascript:extra_status_visible(<: $status.bug_num :>)"><abbr title="<: $status.severity :>">
4       <:- my $short_sev = substr($status.severity,0,1) -:>
5       <:- if isstrongseverity($status.severity) { -:><em class="severity"><: uc($short_sev) :></em>
6       <:- } else { -:>
7       <:- $short_sev } -:></abbr>|
8       <:- for $status.tags_array -> $tag { -:>
9       <:- if defined($config.tags_single_letter[$tag]) { -:>
10       <abbr title="<: $tag :>"><: $config.tags_single_letter[$tag] :></abbr><:- } -:>
11       : }
12           <:- if $status.tags_array.size() == 0 { -:>&nbsp;&nbsp;<: } :>|
13           <:- if $status.mergedwith_array.size() > 0 { -:>
14           <abbr title="merged">=</abbr>
15           <:- } -:>
16           <:- if $status.fixed_versions.size() > 0 { -:>
17           <abbr title="fixed versions">☺</abbr>
18           <:- } -:>
19           <:- if $status.fixed_versions.size() > 0 { -:>
20           <abbr title="fixed versions">☺</abbr>
21           <:- } -:>
22           <:- if $status.blockedby_array.size() > 0 { -:>
23           <abbr title="blocked by">♙</abbr>
24           <:- } -:>
25           <:- if $status.blocks_array.size() > 0 { -:>
26           <abbr title="blocks">♔</abbr>
27           <:- } -:>
28           <:- if length($status.forwarded) { -:>
29           <abbr title="forwarded">↝</abbr>
30           <:- } -:>
31           <:- if $status.archived { -:>
32           <abbr title="archived">♲</abbr>
33           <:- } -:>
34           <:- if length($status.affects) { -:>
35           <abbr title="affects">☣</abbr>
36           <:- } -:></span></font>]
37   [<: raw(package_links(package=>$status.package.split(','),class=>"submitter")) :>]
38   <a href="<: bug_links(bug=>$status.bug_num,links_only=>1) :>"><: $status.subject :></a>
39   <div id="extra_status_<: $status.bug_num :>" class="shortbugstatusextra">
40       <span>Reported by: <: raw(package_links(submitter=>$status.originator)) :>;</span>
41       <span>Date: <: $status.date_text :>;</span>
42       <:- if (defined $status.owner and length($status.owner)) { -:>
43       <span>Owned by: <: raw(package_links(owner=>$status.owner)) :>;</span>
44       <:- } :>
45       <span>Severity:
46           <:- if (isstrongseverity($status.severity)) { -:>
47           <em class="severity">)<: $status.severity :></em>
48           <:- } else { -:>
49           <: $status.severity :>
50           <:- } -:></span>
51       <span>
52           <:- if $status.tags_array.size > 0 { -:>
53           Tags: <:  $status.tags_array.join(', ') :>;
54           <:- } -:>
55       </span>
56       : if $status.mergedwith_array.size > 0 {
57       <span>Merged with <: bug_links(bug=>$status.mergedwith_array).join(",\n") :>;</span>
58       : }
59       : if $status.found_versions.size > 0 or $status.fixed_versions.size > 0 {
60       <a href="<:
61                    version_url(package => $status.package,
62                            found   => $status.found_versions,
63                            fixed   => $status.fixed_versions,
64                        ):>">
65           <:- } -:>
66           <:- if $status.found_versions.size > 0 { -:>
67           <span>Found in version<: if $status.found_versions.size > 1 { :>s<: } :>
68               <:- $status.found_versions.join(', ') -:>;
69           </span>
70           <:- } -:>
71           <:- if $status.fixed_versions.size > 0 { :>
72           <span>Fixed in version<: if $status.fixed_versions.size > 1 { :>s<: } :>
73               <:- $status.fixed_versions.join(', ') -:>;
74           </span>
75           <:- } -:>
76           <:- if $status.found_versions.size > 0 or $status.fixed_versions.size > 0 { -:>
77       </a>
78       <:- } -:>
79       <:-  if (length($status.forwarded)) { :>
80       <span><strong>Forwarded</strong> to 
81           <: $status.forwarded.split('\,\s+').map(maybelink).join(', ') :>
82       </span>
83       <:- } -:>
84       <:- if (length($status.done)) { -:>
85       <span><strong>Done:</strong>
86           <: $status.done :>
87       </span>
88       <:- } -:>
89       <:- if  $status.archive_days >= 0  and 
90       defined($status.location) && $status.location != "archive" { -:>
91       <span><strong>Can be archived
92           <: if $status.archive_days == 0 { :>
93           today
94           <: } else if $status.archive_days == 1 { :>
95           in 1 day
96           <: } else { :>
97           in <: $status.archive_days :> days
98           <:- } :>;</strong></span>
99       <:- } else if defined($status.location) && $status.location == "archived" { -:>
100       <span><strong>Archived</strong></span>
101       <:- } -:>
102       <:- if $status.blockedby_array.count > 0 { :>
103       <span>Fix blocked by 
104           <: for $status.blockedby_array -> $bug { :>
105           <: bug_links("bug",bug.bug_num) :>: 
106           <: $bug.subject -:>
107           <:- if ! $~bug.is_last { -:>, <: } else { -:>.<:- } -:>
108           <:- } -:>
109       </span>
110       <:- } -:>
111       <:- if $status.blocks_array.count > 0 { :>
112       <span>Blocking fix for
113           <: for $status.blocks_array -> $bug { :>
114           <: bug_links("bug",bug.bug_num) :>: 
115           <: $bug.subject -:>
116           <:- if ! $~bug.is_last {-:>, <: } else { -:>.<:- } -:>
117           <:- } -:>
118       </span>
119       <:- } -:>
120       <:- macro days_ago->($what,$ago) {-:>
121       <span>
122           <:- if ($time - $ago) / 86400 > 60 { -:>
123           <strong><: $what :> <:  secs_to_english($time-$ago) :> ago.</strong>
124           <:- } else if ($time - $ago) / 86400 > 30 { :>
125           <strong><: $what :> <:  secs_to_english($time-$ago) :> ago.</strong>
126           <:- } -:>;
127       </span>
128       <:- } -:>
129       <: days_ago("Filed",$status.date) :>
130       <: days_ago("Modified",$status.log_modified) :>
131       <:- if defined $status.archived and $status.archived {:>
132       <span>Bug is archived. No further changes may be made.</span>
133       <:- } -:>
134   </div>
135 </div>