]> git.donarmstrong.com Git - debbugs.git/blobdiff - templates/en_US/cgi/bugreport_buginfo.tmpl
Switch from Text::Template to Text::Xslate
[debbugs.git] / templates / en_US / cgi / bugreport_buginfo.tmpl
diff --git a/templates/en_US/cgi/bugreport_buginfo.tmpl b/templates/en_US/cgi/bugreport_buginfo.tmpl
deleted file mode 100644 (file)
index 9b6c4fd..0000000
+++ /dev/null
@@ -1,79 +0,0 @@
-<div class="buginfo">
-  <p>Reported by: {package_links(submitter=>$status{originator})}</p>
-  <p>Date: {$status{date_text}}</p>
-{ my $output = ''; 
-  if (defined $status{owner} and length $status{owner}) {
-     $output = q(<p>Owned by: ).package_links(owner=>$status{owner}).q(</p>);
-  }
-  $output;
-}
-<p>Severity: {my $output = $status{severity};
-              if (isstrongseverity($status{severity})) {
-                   $output = q(<em class="severity">).$status{severity}.q(</em>);
-              }
-              $output;
-             }</p>
-<p>{@{$status{tags_array}}?q(Tags: ).html_escape(join(q(, ),@{$status{tags_array}})):''}</p>
-{my $output = '';
- if (@{$status{mergedwith_array}}) {
-    $output .= q(<p>Merged with ).join(qq(,\n),bug_links(bug=>$status{mergedwith_array})).qq(</p>\n);
- }
- $output;
-}
-{my $output = '';
- if (@{$status{found_versions}}) {
-    $output .= q(<p>Found in );
-    $output .= (@{$status{found_versions}} == 1) ? 'version ' : 'versions ';
-    $output .= join(qq(, ),map {html_escape($_);} @{$status{found_versions}}).qq(</p>\n);
- }
- if (@{$status{fixed_versions}}) {
-    $output .= q(<p>Fixed in );
-    $output .= (@{$status{fixed_versions}} == 1) ? 'version ' : 'versions ';
-    $output .= join(qq(, ),map {html_escape($_);} @{$status{fixed_versions}}).qq(</p>\n);
- }
- $output;
-}
-{ my $output = '';
-  if (length($status{done})) {
-     $output .= q(<p><strong>Done:</strong> ).html_escape($status{done}).q(</p>)
-  }
-  $output;
-}
-{ my $output = '';
-  if (@{$status{blockedby_array}}) {
-     $output .= q(<p>Fix blocked by ).
-        join(q(, ),
-         map {bug_links(bug=>$_->{bug_num}).q(: ).html_escape($_->{subject})}
-         @{$status{blockedby_array}}).q(</p>)
-  }
-  if (@{$status{blocks_array}}) {
-     $output .= q(<p>Blocking fix for ).
-        join(q(, ),
-         map {bug_links(bug=>$_->{bug_num}).q(: ).html_escape($_->{subject})}
-         @{$status{blocks_array}}).q(</p>)
-  }
-  $output;
-}
-{ my $output = '';
-  if (exists $status{archived} and $status{archived}) {
-     $output .= q(<p>Bug is archived. No further changes may be made.<p>)
-  }
-  $output
-}{ my $output = '';
- if (length($status{forwarded})) {
-    $output = "<p>Forwarded to " . 
-              join(', ',
-                  map {maybelink($_)}
-                   split /\,\s+/,$status{forwarded}
-                 )."</p>\n";
- }
- $output;
-}{ my $output = '';
-  if (exists $status{summary} and defined $status{summary} and length $status{summary}) {
-     $output .= q(<p>Summary: ).html_escape($status{summary}).q(</p>);
-  }
-  if (exists $status{outlook} and defined $status{outlook} and length $status{outlook}) {
-     $output .= q(<p>Outlook: ).html_escape($status{outlook}).q(</p>);
-  }
-  $output;
-}</div>