<:- macro bug_url_subject->($bug) {-:> ># <:- $bug.bug :>: <: $bug.subject :> <:- } -:>
>#<: $bug.bug :> [ <:- if $bug.strong_severity { -:><: $bug.short_severity :> <:- } else { -:> <:- $bug.short_severity } -:>| <:- for $bug.tags.short_tags -> $tag { -:> <: $tag.short :> <:- } else { -:>  <: } :>| <:- if $bug.is_merged > 0 { -:> = <:- } -:> <:- if $bug.has_fixed { -:> <:- } -:> <:- if $bug.is_blocked { -:> <:- } -:> <:- if $bug.is_blocking { -:> <:- } -:> <:- if $bug.is_forwarded { -:> <:- } -:> <:- if $bug.archived { -:> <:- } -:> <:- if $bug.is_affecting { -:> <:- } -:>] [<: for $bug.packages.members_ref -> $package { -:> <: $package.name :> <:- if ! $~package.is_last { -:>, <: } else if ! $~package.is_first { -:>.<:- } -:> <:- } :>] <: $bug.subject :>
Reported by: <: $bug.submitter :>; Date: <: $bug.created.stringify :>; <:- if $bug.is_owned { -:> Owned by: <: $bug.owner :>; <:- } :> Severity: <: if $bug.strong_severity { -:> <: $bug.severity :> <:- } else { -:> <: $bug.severity :> <:- } -:> <:- if $bug.tags.has_tags { -:> Tags: <: $bug.tags.join_all(', ') :>; <:- } -:> <:- if $bug.is_merged > 0 { -:> Merged with <: for $bug.mergedwith.members_ref -> $bug { -:> <:- bug_url_subject($bug) -:> <:- if ! $~bug.is_last {-:>, <: } else { -:>.<:- } -:> <:- } -:> <:- } -:> : if $bug.has_found or $bug.has_fixed { <:- } -:> <:- if $bug.has_found { -:> Found in version<: if $bug.found.count > 1 { :>s<: } :> <:- $bug.found.join(', ') -:>; <:- } -:> <:- if $bug.has_fixed { :> Fixed in version<: if $bug.fixed.count > 1 { :>s<: } :> <:- $bug.fixed.join(', ') -:>; <:- } -:> <:- if $bug.has_found or $bug.has_fixed { -:> <:- } -:> <:- if $bug.is_forwarded { :> Forwarded to <: $bug.forwarded.split('\,\s+').map(maybelink).join(', ') :> <:- } -:> <:- if $bug.is_done { -:> Done: <: $bug.done :> <:- } -:> <:- if not $bug.archived and $bug.when_archiveable >= 0 { -:> Can be archived <: if $bug.when_archiveable == 0 { :> today <: } else if $bug.when_archiveable == 1 { :> in 1 day <: } else { :> in <: $bug.when_archiveable :> days <:- } :>; <:- } else if $bug.archived { -:> Archived <:- } -:> <:- if $bug.blockedby.count > 0 { :> Fix blocked by <: for $bug.blockedby -> $bug { :> <: bug_url_subject($bug) :> <:- if ! $~bug.is_last { -:>, <: } else { -:>.<:- } -:> <:- } -:> <:- } -:> <:- if $bug.blocks.count > 0 { :> Blocking fix for <: for $bug.blocks -> $bug { :> <: bug_url_subject($bug) :> <:- if ! $~bug.is_last {-:>, <: } else { -:>.<:- } -:> <:- } -:> <:- } -:> <:- macro days_ago->($what,$ago) {-:> <:- if ($time - $ago) / 86400 > 60 { -:> <: $what :> <: secs_to_english($time-$ago) :> ago. <:- } else if ($time - $ago) / 86400 > 30 { :> <: $what :> <: secs_to_english($time-$ago) :> ago. <:- } -:>; <:- } -:> <: days_ago("Filed",$bug.created.epoch) :> <: days_ago("Modified",$bug.modified.epoch) :> <:- if $bug.archived {:> Bug is archived. No further changes may be made. <:- } -:>