#
# Contributor(s): Terry Weissman <terry@mozilla.org>
# Dave Miller <justdave@syndicomm.com>
+# Vaskin Kissoyan <vkissoyan@yahoo.com>
use diagnostics;
use strict;
bug_file_loc, short_desc, target_milestone,
qa_contact, status_whiteboard,
date_format(creation_ts,'%Y-%m-%d %H:%i'),
- groupset, delta_ts, sum(votes.count)
+ groupset, delta_ts, sum(votes.count), delta_ts calc_disp_date
FROM bugs LEFT JOIN votes USING(bug_id), products, components
WHERE bugs.bug_id = $id
AND bugs.product_id = products.id
}
my $value;
+ my $disp_date;
my @row = FetchSQLData();
foreach my $field ("bug_id", "alias", "product", "version", "rep_platform",
"op_sys", "bug_status", "resolution", "priority",
"bug_severity", "component", "assigned_to", "reporter",
"bug_file_loc", "short_desc", "target_milestone",
"qa_contact", "status_whiteboard", "creation_ts",
- "groupset", "delta_ts", "votes")
+ "groupset", "delta_ts", "votes","calc_disp_date")
{
$value = shift(@row);
+ if ($field eq "calc_disp_date") {
+ # Convert MySQL timestamp (_ts) to datetime format(%Y-%m-%d %H:%i)
+ $disp_date = substr($value,0,4) . '-';
+ $disp_date .= substr($value,4,2) . '-';
+ $disp_date .= substr($value,6,2) . ' ';
+ $disp_date .= substr($value,8,2) . ':';
+ $disp_date .= substr($value,10,2);
+ $value = $disp_date;
+ }
$bug{$field} = defined($value) ? $value : "";
}
# Rights Reserved.
#
# Contributor(s): Gervase Markham <gerv@gerv.net>
+ # Vaskin Kissoyan <vkissoyan@yahoo.com>
#%]
[%# INTERFACE:
# title: string. Page title.
# h1: string. Main page header.
# h2: string. Page subheader.
+ # h3: string. Right-aligned subheader.
# bgcolor: string. the page's background color ("#rrggbb").
# onload: string. JavaScript code to run when the page finishes loading.
# header_html: string. Any other HTML to go inside the <head> tags.
[% DEFAULT
h1 = title
h2 = ""
+ h3 = ""
bgcolor = "#ffffff"
onload = ""
%]
[% INCLUDE global/banner.html.tmpl %]
[% IF h1 || h2 %]
- <table border="0" cellspacing="0">
+ <table border="0" cellspacing="0" width="100%">
<tr>
<td valign="top" align="left">
<table border="0" cellpadding="0" cellspacing="2">
</tr>
</table>
</td>
- <td valign="middle"> </td>
+ <td valign="middle" align="left"> </td>
<td valign="middle" align="left">[% h2 %]</td>
+ [% IF h3 %]
+ <td valign="middle" align="right">[% h3 %]</td>
+ [% END %]
</tr>
</table>
[% END %]