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>
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>
10 <:- $bug.short_severity } -:></abbr>|
11 <:- for $bug.tags.short_tags -> $tag { -:>
12 <abbr title="<: $tag.long :>"><: $tag.short :></abbr>
13 <:- } else { -:> <: } :>|
14 <:- if $bug.is_merged > 0 { -:>
15 <abbr title="merged">=</abbr>
17 <:- if $bug.has_fixed { -:>
18 <abbr title="fixed versions">☺</abbr>
20 <:- if $bug.is_blocked { -:>
21 <abbr title="blocked by">♙</abbr>
23 <:- if $bug.is_blocking { -:>
24 <abbr title="blocks">♔</abbr>
26 <:- if $bug.is_forwarded { -:>
27 <abbr title="forwarded">↝</abbr>
29 <:- if $bug.archived { -:>
30 <abbr title="archived">♲</abbr>
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 { -:>.<:- } -:>
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>
47 <: if $bug.strong_severity { -:>
48 <em class="severity"><: $bug.severity :></em>
53 <:- if $bug.tags.has_tags { -:>
54 Tags: <: $bug.tags.join_all(', ') :>;
57 <:- if $bug.is_merged > 0 { -:>
59 <: for $bug.mergedwith.members_ref -> $bug { -:>
60 <:- bug_url_subject($bug) -:>
61 <:- if ! $~bug.is_last {-:>, <: } else { -:>.<:- } -:>
65 : if $bug.has_found or $bug.has_fixed {
67 version_url(package => $bug.package,
68 found => [$bug.found],
69 fixed => [$bug.fixed],
72 <:- if $bug.has_found { -:>
73 <span>Found in version<: if $bug.found.count > 1 { :>s<: } :>
74 <:- $bug.found.join(', ') -:>;
77 <:- if $bug.has_fixed { :>
78 <span>Fixed in version<: if $bug.fixed.count > 1 { :>s<: } :>
79 <:- $bug.fixed.join(', ') -:>;
82 <:- if $bug.has_found or $bug.has_fixed { -:>
85 <:- if $bug.is_forwarded { :>
86 <span><strong>Forwarded</strong> to
87 <: $bug.forwarded.split('\,\s+').map(maybelink).join(', ') :>
90 <:- if $bug.is_done { -:>
91 <span><strong>Done:</strong>
95 <:- if not $bug.archived and $bug.when_archiveable >= 0 { -:>
96 <span><strong>Can be archived
97 <: if $bug.when_archiveable == 0 { :>
99 <: } else if $bug.when_archiveable == 1 { :>
102 in <: $bug.when_archiveable :> days
103 <:- } :>;</strong></span>
104 <:- } else if $bug.archived { -:>
105 <span><strong>Archived</strong></span>
107 <:- if $bug.blockedby.count > 0 { :>
109 <: for $bug.blockedby -> $bug { :>
110 <: bug_url_subject($bug) :>
111 <:- if ! $~bug.is_last { -:>, <: } else { -:>.<:- } -:>
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 { -:>.<:- } -:>
123 <:- macro days_ago->($what,$ago) {-:>
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>
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>