X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=templates%2Fen_US%2Fcgi%2Fshort_bug_status.tx;h=73de0cd168cb57e9a30feb5f140aa9baf177568d;hb=0ce9751d4f117f3bfe4d713cd24a4ae820ab625d;hp=1952173a7c65521f2ec9df745c09381554a9e318;hpb=757b392b853d7bc16592b9431d5275ca943684e4;p=debbugs.git diff --git a/templates/en_US/cgi/short_bug_status.tx b/templates/en_US/cgi/short_bug_status.tx index 1952173..73de0cd 100644 --- a/templates/en_US/cgi/short_bug_status.tx +++ b/templates/en_US/cgi/short_bug_status.tx @@ -1,134 +1,136 @@ +<:- macro bug_url_subject->($bug) {-:> +># + <:- $bug.bug :>: <: $bug.subject :> +<:- } -:>
- >#<: $status.bug_num :> - [ - <:- my $short_sev = substr($status.severity,0,1) -:> - <:- if isstrongseverity($status.severity) { -:><: uc($short_sev) :> - <:- } else { -:> - <:- $short_sev } -:>| - <:- for $status.tags_array -> $tag { -:> - <:- if defined($config.tags_single_letter[$tag]) { -:> - <: $config.tags_single_letter[$tag] :><:- } -:> - : } - <:- if $status.tags_array.size() == 0 { -:>  <: } :>| - <:- if $status.mergedwith_array.count > 0 { -:> - = - <:- } -:> - <:- if $status.fixed_versions.count > 0 { -:> - ☺ - <:- } -:> - <:- if $status.fixed_versions.count > 0 { -:> - ☺ - <:- } -:> - <:- if $status.blockedby_array.count > 0 { -:> - ♙ - <:- } -:> - <:- if $status.blocks_array.count > 0 { -:> - ♔ - <:- } -:> - <:- if length($status.forwarded) { -:> - ↝ - <:- } -:> - <:- if $status.archived { -:> - ♲ - <:- } -:> - <:- if length($status.affects) { -:> - ☣ - <:- } -:>] - [<: raw(package_links(package=>$status.package.split(','),class=>"submitter")) :>] - <: $status.subject :> -
- Reported by: <: raw(package_links(submitter=>$status.originator)) :>; - Date: <: $status.date_text :>; - <:- if (defined $status.owner and length($status.owner)) { -:> - Owned by: <: raw(package_links(owner=>$status.owner)) :>; + >#<: $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 :> +
+ + + + <:- if $bug.is_owned { -:> + <:- } :> - Severity: - <:- if (isstrongseverity($status.severity)) { -:> - )<: $status.severity :> + + <:- if $bug.tags.has_any_tags { -:> + + <: } :> + <:- if $bug.is_merged > 0 { -:> + <:- } -:> - <:- if $status.found_versions.size > 0 { -:> - Found in version<: if $status.found_versions.size > 1 { :>s<: } :> - <:- $status.found_versions.join(', ') -:>; - + <:- if $bug.has_found { -:> + + <:- } -:> - <:- if $status.fixed_versions.size > 0 { :> - Fixed in version<: if $status.fixed_versions.size > 1 { :>s<: } :> - <:- $status.fixed_versions.join(', ') -:>; - + <:- if $bug.has_fixed { :> + <:- } -:> - <:- if $status.found_versions.size > 0 or $status.fixed_versions.size > 0 { -:> + <:- if $bug.has_found or $bug.has_fixed { -:> <:- } -:> - <:- if (length($status.forwarded)) { :> - Forwarded to - <: $status.forwarded.split('\,\s+').map(maybelink).join(', ') :> - + <:- if $bug.is_forwarded { :> + + + <:- } -:> - <:- if (length($status.done)) { -:> - Done: - <: $status.done :> - + <:- if $bug.is_done { -:> + + <:- } -:> - <:- if $status.archive_days >= 0 and - defined($status.location) && $status.location != "archive" { -:> - Can be archived - <: if $status.archive_days == 0 { :> + <:- if not $bug.archived and $bug.when_archiveable >= 0 { -:> + + <:- } else if $bug.archived { -:> + <:- } -:> - <:- if $status.blockedby_array.count > 0 { :> - Fix blocked by - <: for $status.blockedby_array -> $bug { :> - <: bug_links("bug",bug.bug_num) :>: - <: $bug.subject -:> + <:- if $bug.is_blocked { :> + + <:- } -:> - <:- if $status.blocks_array.count > 0 { :> - Blocking fix for - <: for $status.blocks_array -> $bug { :> - <: bug_links("bug",bug.bug_num) :>: - <: $bug.subject -:> + <:- if $bug.blocks.count > 0 { :> + <:- } -:> <:- 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",$status.date) :> - <: days_ago("Modified",$status.log_modified) :> - <:- if defined $status.archived and $status.archived {:> + <: days_ago("Filed",$bug.created.epoch) :> + <: days_ago("Modified",$bug.modified.epoch) :> +
Reported by<: $bug.submitter.name :>
Date<: $bug.created.iso8601 :>
Owned by<: $bug.owner.name :>
Severity + <: if $bug.strong_severity { -:> + <: $bug.severity :> <:- } else { -:> - <: $status.severity :> - <:- } -:> - - <:- if $status.tags_array.size > 0 { -:> - Tags: <: $status.tags_array.join(', ') :>; + <: $bug.severity :> + <:- } -:>
Tags + : if $bug.tags.has_tags { + <: $bug.tags.join_tags(', ') :> + : } + <: if $bug.tags.has_usertags { + if $bug.tags.has_tags { :>, <: } -:> + <: $bug.tags.join_usertags(', ') :> + <:- } -:> +
Merged with + <: for $bug.mergedwith.members_ref -> $bug { -:> + <:- bug_url_subject($bug) -:> + <:- if ! $~bug.is_last {-:>, <: } else { -:>.<:- } -:> <:- } -:> - - : if $status.mergedwith_array.size > 0 { - Merged with <: bug_links(bug=>$status.mergedwith_array).join(",\n") :>; - : } - : if $status.found_versions.size > 0 or $status.fixed_versions.size > 0 { - +
Found in version<: if $bug.status.found_count > 1 { :>s<: } :><:- $bug.status.found_join(', ') -:>
Fixed in version<: if $bug.status.fixed_count > 1 { :>s<: } :> + <:- $bug.status.fixed_join(', ') -:>
Forwarded to<: $bug.forwarded.split('\,\s+').map(maybelink).join(', ') :>
Done: + <: $bug.done.name :>
Can be archived + <: if $bug.when_archiveable == 0 { :> today - <: } else if $status.archive_days == 1 { :> + <: } else if $bug.when_archiveable == 1 { :> in 1 day <: } else { :> - in <: $status.archive_days :> days - <:- } :>; - <:- } else if defined($status.location) && $status.location == "archived" { -:> - Archived + in <: $bug.when_archiveable :> days + <:- } :>
Archived
Fix blocked by + <: for $bug.blocked_by -> $bug { :> + <: bug_url_subject($bug) :> <:- if ! $~bug.is_last { -:>, <: } else { -:>.<:- } -:> - <:- } -:> - + <:- } -:>
Blocking fix for + <: for $bug.blocks -> $bug { :> + <: bug_url_subject($bug) :> <:- if ! $~bug.is_last {-:>, <: } else { -:>.<:- } -:> <:- } -:> - +
<: $what :><: secs_to_english($time-$ago) :> ago.<: $what :><: secs_to_english($time-$ago) :> ago.
+ <:- if $bug.archived {:> Bug is archived. No further changes may be made. <:- } -:>