]> git.donarmstrong.com Git - debbugs.git/blob - templates/en_US/cgi/short_bug_status.tmpl
* Completely reformat pkgreport.cgi output
[debbugs.git] / templates / en_US / cgi / short_bug_status.tmpl
1 <div class="shortbugstatus">
2   <a href="{html_escape(bug_links(bug=>$status{bug_num},links_only=>1))}"{length($status{done})?' style="text-decoration:line-through"':''}>#{html_escape($status{bug_num})}</a>
3   [<font face="fixed"><a href="javascript:extra_status_visible({html_escape($status{bug_num})})">{
4   my $output = qq(<span title="$status{severity}">);
5   my $temp = $status{severity};
6   $temp = substr $temp,0,1;
7   if (isstrongseverity($status{severity})){
8      $temp = q(<em class="severity">).uc($temp).q(</em);
9   }
10   $output .= $temp.qq(</span>);
11   $output;
12   }|{
13   my $output = '';
14   for my $tag (@{$status{tags_array}}) {
15      next unless exists $config{tags_single_letter}{$tag};
16      $output .= q(<span title=").$tag.q(">).$config{tags_single_letter}{$tag}.q(</span>);
17   }
18   $output;
19   }|{
20   my $output = '';
21   if (@{$status{mergedwith_array}}) {
22      $output .= qq(<span title="merged">=</span>);
23   }
24   if (@{$status{fixed_versions}}) {
25      $output .= qq(<span title="fixed versions">☺</span>);
26   }
27   if (@{$status{blockedby_array}}) {
28      $output .= qq(<span title="blocked by">┫</span>);
29   }
30   if (@{$status{blocks_array}}) {
31      $output .= qq(<span title="blocks">┣</span>);
32   }
33   if (length($status{forwarded})) {
34      $output .= qq(<span title="forwarded">↝</span>);
35   }
36   if ($status{archived}) {
37      $output .= qq(<span title="archived">♲</span>);
38   }
39   $output;
40   }</a></font>]
41   [{package_links(package=>$status{package},options=>\%options,class=>"submitter")}]
42   <a href="{html_escape(bug_links(bug=>$status{bug_num},links_only=>1))}">{html_escape($status{subject})}</a>
43   <div id="extra_status_{html_escape($status{bug_num})}" class="shortbugstatusextra">
44   <!--<div style="float:right">[<a href="javascript:extra_status_visible(0)">X</a>]</div>-->
45   <span>Reported by: {package_links(submitter=>$status{originator})};</span>
46   <span>Date: {$status{date_text}};</span>
47 { my $output = ''; 
48   if (defined $status{owner} and length $status{owner}) {
49      $output = q(<span>Owned by: ).package_links(owner=>$status{owner}).q(;</span>);
50   }
51   $output;
52 }
53 <span>Severity: {my $output = $status{severity};
54               if (isstrongseverity($status{severity})) {
55                    $output = q(<em class="severity">).$status{severity}.q(</em>);
56               }
57               $output;
58              };</span>
59 <span>{@{$status{tags_array}}?q(Tags: ).html_escape(join(q(, ),@{$status{tags_array}})).';':''}</span>
60 {my $output = '';
61  if (@{$status{mergedwith_array}}) {
62     $output .= q(<span>Merged with ).join(qq(,\n),bug_links(bug=>$status{mergedwith_array})).qq(;</span>\n);
63  }
64  $output;
65 }
66 {my $output = '';
67  if (@{$status{found_versions}} or @{$status{fixed_versions}}) {
68     $output .= '<a href="'.
69           version_url(package => $status{package},
70                       found   => $status{found_versions},
71                       fixed   => $status{fixed_versions},
72                      ).'") ';
73  }
74  if (@{$status{found_versions}}) {
75     $output .= q(<span>Found in );
76     $output .= (@{$status{found_versions}} == 1) ? 'version ' : 'versions ';
77     $output .= join(qq(, ),map {html_escape($_);} @{$status{found_versions}}).qq(;</span>\n);
78  }
79  if (@{$status{fixed_versions}}) {
80     $output .= q(<span>Fixed in );
81     $output .= (@{$status{fixed_versions}} == 1) ? 'version ' : 'versions ';
82     $output .= join(qq(, ),map {html_escape($_);} @{$status{fixed_versions}}).qq(;</span>\n);
83  }
84  if (@{$status{found_versions}} or @{$status{fixed_versions}}) {
85     $output .= qq(</a>);
86  }
87  $output;
88 }
89 { my $output = '';
90   if (length($status{done})) {
91      $output .= q(<span><strong>Done:</strong> ).html_escape($status{done}).q(;</span> )
92   }
93   $output;
94 }
95 { my $output = '';
96   if (@{$status{blockedby_array}}) {
97      $output .= q(<span>Fix blocked by ).
98         join(q(, ),
99          map {bug_links(bug=>$_->{bug_num}).q(: ).html_escape($_->{subject})}
100          @{$status{blockedby_array}}).q(;</span> )
101   }
102   if (@{$status{blocks_array}}) {
103      $output .= q(<span>Blocking fix for ).
104         join(q(, ),
105          map {bug_links(bug=>$_->{bug_num}).q(: ).html_escape($_->{subject})}
106          @{$status{blocks_array}}).q(;</span> )
107   }
108   $output;
109 }{ my $output = '';
110  my ($days_last,$eng_last) = secs_to_english(time - $status{log_modified});
111  my ($days,$eng) = secs_to_english(time - $status{date});
112
113  if ($days >= 7) {
114    my $font = "";
115    my $efont = "";
116    $font = "em" if ($days > 30);
117    $font = "strong" if ($days > 60);
118    $efont = "</$font>" if ($font);
119    $font = "<$font>" if ($font);
120
121    $output .= "<span>${font}Filed $eng ago$efont;</span>\n";
122  }
123  if ($days_last > 7) {
124    my $font = "";
125    my $efont = "";
126    $font = "em" if ($days_last > 30);
127    $font = "strong" if ($days_last > 60);
128    $efont = "</$font>" if ($font);
129    $font = "<$font>" if ($font);
130
131    $output .= "<span>${font}Modified $eng_last ago$efont;</span>\n";
132  }
133  $output;
134  }{ my $output = '';
135   if (exists $status{archived} and $status{archived}) {
136      $output .= q(<span>Bug is archived. No further changes may be made.<span> )
137   }
138   $output}
139 <!--  <p>Package: {package_links(package=>$status{package},options=>\%options,class=>"submitter")}
140   {my $output = ''; my $showversions = '';
141    if (@{$status{found_versions}}) {
142      my @found = @{$status{found_versions}};
143      $showversions .= join ', ', map {html_escape($_)} @found;
144    }
145    if (@{$status{fixed_versions}}) {
146      $showversions .= '; ' if length $showversions;
147      $showversions .= '<strong>fixed</strong>: ';
148      my @fixed = @{$status{fixed_versions}};
149      $showversions .= join ', ', map {html_escape($_)} @fixed;
150    }
151    $output .= ' (<a href="'.
152           version_url(package => $status{package},
153                       found   => $status{found_versions},
154                       fixed   => $status{fixed_versions},
155                      ).qq{">$showversions</a>)} if length $showversions;
156    $output
157   };
158     Severity: {my $output = $status{severity};
159                if (isstrongseverity($status{severity})) {
160                   $output = q(<em class="severity">).$status{severity}.q(</em>);
161                }
162                $output;
163               };
164     Reported by: {package_links(submitter=>$status{originator},options=>\%options,class=>"submitter")}<a class="submitter" href="pkgreport.cgi?submitter=kbloom%40gmail.com">Ken Bloom &lt;kbloom@gmail.com&gt;</a>;
165     {@{$status{tags_array}}?q(Tags: ).html_escape(join(q(, ),@{$status{tags_array}})).q(; ):''}
166     {my $output = '';
167      if (@{$status{mergedwith_array}}) {
168         $output .= q(Merged with ).join(qq(,\n),bug_links(bug=>$status{mergedwith_array})).q(; )
169      }
170      $output;
171     }
172     { my $output = '';
173      if (@{$status{blockedby_array}}) {
174         $output .= q(Blocked by ).
175           bug_links(bug=>$status{blockedby_array}).q(; );
176      }
177      if (@{$status{blocks_array}}) {
178         $output .= q(Blocking ).
179          bug_links(bug=>$status{blocks_array}).q(; );
180      }
181      $output;
182     }
183     <strong>2 years and 238 days old</strong>;
184     <strong>Modified 1 year and 34 days ago</strong>.</p>--></div>
185 </div>