]> git.donarmstrong.com Git - debbugs.git/blob - templates/en_US/cgi/short_bug_status.tx
2dd6e9ef5292959ab225a24aea10ae95cd8ed6be
[debbugs.git] / templates / en_US / cgi / short_bug_status.tx
1 <:- macro bug_url_subject->($bug) {-:>
2 <a href="<: $bug.url :>"<:$bug.is_done?' style="text-decoration:line-through"':'':>>#
3     <:- $bug.bug :>: <: $bug.subject :></a>
4 <:- } -:>
5 <div class="shortbugstatus">
6     <a href="<: $bug.url :>"<:$bug.is_done?' style="text-decoration:line-through"':'':>>#<: $bug.bug :></a>
7     [<font face="fixed"><span class="link" onclick="javascript:extra_status_visible(<: $bug.bug :>)"><abbr title="<: $bug.severity :>">
8         <:- if $bug.strong_severity { -:><em class="severity"><: $bug.short_severity :></em>
9         <:- } else { -:>
10         <:- $bug.short_severity } -:></abbr>|
11         <:- for $bug.tags.short_tags -> $tag { -:>
12         <abbr title="<: $tag.long :>"><: $tag.short :></abbr>
13         <:- } else { -:>&nbsp;&nbsp;<: } :>|
14         <:- if $bug.is_merged > 0 { -:>
15         <abbr title="merged">=</abbr>
16         <:- } -:>
17         <:- if $bug.has_fixed { -:>
18         <abbr title="fixed versions">☺</abbr>
19         <:- } -:>
20         <:- if $bug.is_blocked { -:>
21         <abbr title="blocked by">♙</abbr>
22         <:- } -:>
23         <:- if $bug.is_blocking { -:>
24         <abbr title="blocks">♔</abbr>
25         <:- } -:>
26         <:- if $bug.is_forwarded { -:>
27         <abbr title="forwarded">↝</abbr>
28         <:- } -:>
29         <:- if $bug.archived { -:>
30         <abbr title="archived">♲</abbr>
31         <:- } -:>
32         <:- if $bug.is_affecting { -:>
33         <abbr title="affects">☣</abbr>
34         <:- } -:></span></font>]
35         [<: for $bug.packages.members_ref -> $package { -:>
36         <a href="<: $package.url :>"><: $package.name :></a>
37         <:- if ! $~package.is_last { -:>, <: } else if ! $~package.is_first { -:>.<:- } -:>
38         <:- } :>]
39         <a href="<: $bug.url :>"><: $bug.subject :></a>
40   <div id="extra_status_<: $bug.bug :>" class="shortbugstatusextra">
41       <span>Reported by: <a href="<: $bug.submitter_url :>"><: $bug.submitter :></a>;</span>
42       <span>Date: <: $bug.created.stringify :>;</span>
43       <:- if $bug.is_owned { -:>
44       <span>Owned by: <a href="<: $bug.owner_url :>"><: $bug.owner :></a>;</span>
45       <:- } :>
46       <span>Severity:
47           <: if $bug.strong_severity { -:>
48           <em class="severity"><: $bug.severity :></em>
49           <:- } else { -:>
50           <: $bug.severity :>
51           <:- } -:></span>
52       <span>
53           <:- if $bug.tags.has_tags { -:>
54           Tags: <:  $bug.tags.join_all(', ') :>;
55           <:- } -:>
56       </span>
57       <:- if $bug.is_merged > 0 { -:>
58       <span>Merged with 
59           <: for $bug.mergedwith.members_ref -> $bug { -:>
60           <:- bug_url_subject($bug) -:>
61           <:- if ! $~bug.is_last {-:>, <: } else { -:>.<:- } -:>
62           <:- } -:>
63       </span>
64       <:- } -:>
65       : if $bug.has_found or $bug.has_fixed {
66       <a href="<:
67                    version_url(package => $bug.package,
68                            found   => [$bug.found],
69                            fixed   => [$bug.fixed],
70                        ):>">
71           <:- } -:>
72           <:- if $bug.has_found { -:>
73           <span>Found in version<: if $bug.found.count > 1 { :>s<: } :>
74               <:- $bug.found.join(', ') -:>;
75           </span>
76           <:- } -:>
77           <:- if $bug.has_fixed { :>
78           <span>Fixed in version<: if $bug.fixed.count > 1 { :>s<: } :>
79               <:- $bug.fixed.join(', ') -:>;
80           </span>
81           <:- } -:>
82           <:- if $bug.has_found or $bug.has_fixed { -:>
83       </a>
84       <:- } -:>
85       <:-  if $bug.is_forwarded { :>
86       <span><strong>Forwarded</strong> to 
87           <: $bug.forwarded.split('\,\s+').map(maybelink).join(', ') :>
88       </span>
89       <:- } -:>
90       <:- if $bug.is_done { -:>
91       <span><strong>Done:</strong>
92           <: $bug.done :>
93       </span>
94       <:- } -:>
95       <:- if  not $bug.archived and $bug.when_archiveable >= 0 { -:>
96       <span><strong>Can be archived
97           <: if $bug.when_archiveable == 0 { :>
98           today
99           <: } else if $bug.when_archiveable == 1 { :>
100           in 1 day
101           <: } else { :>
102           in <: $bug.when_archiveable :> days
103           <:- } :>;</strong></span>
104       <:- } else if $bug.archived { -:>
105       <span><strong>Archived</strong></span>
106       <:- } -:>
107       <:- if $bug.blockedby.count > 0 { :>
108       <span>Fix blocked by 
109           <: for $bug.blockedby -> $bug { :>
110           <: bug_url_subject($bug) :>
111           <:- if ! $~bug.is_last { -:>, <: } else { -:>.<:- } -:>
112           <:- } -:>
113       </span>
114       <:- } -:>
115       <:- if $bug.blocks.count > 0 { :>
116       <span>Blocking fix for
117           <: for $bug.blocks -> $bug { :>
118           <: bug_url_subject($bug) :>
119           <:- if ! $~bug.is_last {-:>, <: } else { -:>.<:- } -:>
120           <:- } -:>
121       </span>
122       <:- } -:>
123       <:- macro days_ago->($what,$ago) {-:>
124       <span>
125           <:- if ($time - $ago) / 86400 > 60 { -:>
126           <strong><: $what :> <:  secs_to_english($time-$ago) :> ago.</strong>
127           <:- } else if ($time - $ago) / 86400 > 30 { :>
128           <strong><: $what :> <:  secs_to_english($time-$ago) :> ago.</strong>
129           <:- } -:>;
130       </span>
131       <:- } -:>
132       <: days_ago("Filed",$bug.created.epoch) :>
133       <: days_ago("Modified",$bug.modified.epoch) :>
134       <:- if $bug.archived {:>
135       <span>Bug is archived. No further changes may be made.</span>
136       <:- } -:>
137   </div>
138 </div>