Skip to content

Commit

Permalink
Bug 1911595 - Don't use US-only date format in Security Bug reports
Browse files Browse the repository at this point in the history
  • Loading branch information
globau authored Aug 6, 2024
1 parent 9018492 commit 0d9ffb7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@
<tr>
<th style="padding: 0px 15px 10px 0px;">Team</th>
<th style="padding: 0px 15px 10px 0px; text-align: right;">
Open<br>[% results_moderate.reverse.0.date.strftime('%m/%d') FILTER html %]
Open<br>[% results_moderate.reverse.0.date.strftime('%b-%d') FILTER html %]
</th>
<th style="padding: 0px 15px 10px 0px; text-align: right;">Closed<br />Last Week</th>
<th style="padding: 0px 15px 10px 0px; text-align: right; border-right: 1px solid grey;">Added<br />Last Week</th>
[% FOREACH result IN results_moderate.reverse %]
[% NEXT IF loop.count < 2 %]
[% LAST IF loop.count > 4 %]
<th style="padding: 0px 15px 10px [% IF loop.count == 2 %] 10px [% ELSE %] 0px [% END %]; text-align: right; [% IF loop.count == 1 %] border-right: 1px solid grey; [% END %]">
Open<br>[% result.date.strftime('%m/%d') FILTER html %]
Open<br>[% result.date.strftime('%b-%d') FILTER html %]
</th>
[% END %]
</tr>
Expand Down Expand Up @@ -89,15 +89,15 @@
<tr>
<th style="padding: 0px 15px 10px 0px;">Team</th>
<th style="padding: 0px 15px 10px 0px; text-align: right;">
Open<br>[% results_low.reverse.0.date.strftime('%m/%d') FILTER html %]
Open<br>[% results_low.reverse.0.date.strftime('%b-%d') FILTER html %]
</th>
<th style="padding: 0px 15px 10px 0px; text-align: right;">Closed<br />Last Week</th>
<th style="padding: 0px 15px 10px 0px; text-align: right; border-right: 1px solid grey;">Added<br />Last Week</th>
[% FOREACH result IN results_low.reverse %]
[% NEXT IF loop.count < 2 %]
[% LAST IF loop.count > 4 %]
<th style="padding: 0px 15px 10px [% IF loop.count == 2 %] 10px [% ELSE %] 0px [% END %]; text-align: right; [% IF loop.count == 1 %] border-right: 1px solid grey; [% END %]">
Open<br>[% result.date.strftime('%m/%d') FILTER html %]
Open<br>[% result.date.strftime('%b-%d') FILTER html %]
</th>
[% END %]
</tr>
Expand Down Expand Up @@ -157,7 +157,7 @@
<tr>
<th style="padding: 0px 15px 10px 0px;">Category</th>
<th style="padding: 0px 15px 10px 0px; text-align: right;">
Open<br>[% results_moderate.reverse.0.date.strftime('%m/%d') FILTER html %]
Open<br>[% results_moderate.reverse.0.date.strftime('%b-%d') FILTER html %]
</th>
<th style="padding: 0px 15px 10px 0px; text-align: right;">Closed<br />Last Week</th>
<th style="padding: 0px 15px 10px 0px; text-align: right;">Added<br />Last Week</th>
Expand All @@ -168,7 +168,7 @@
[% NEXT IF loop.count < 2 %]
[% LAST IF loop.count > 4 %]
<th style="padding: 0px 15px 10px [% IF loop.count == 2 %] 10px [% ELSE %] 0px [% END %]; text-align: right; [% IF loop.count == 1 %] border-right: 1px solid grey; [% END %]">
Open<br>[% result.date.strftime('%m/%d') FILTER html %]
Open<br>[% result.date.strftime('%b-%d') FILTER html %]
</th>
[% END %]
</tr>
Expand Down
8 changes: 4 additions & 4 deletions template/en/default/reports/email/security-risk.html.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@
<tr>
<th style="padding: 0px 15px 10px 0px;">Team</th>
<th style="padding: 0px 15px 10px 0px; text-align: right;">
Open<br>[% results.reverse.0.date.strftime('%m/%d') FILTER html %]
Open<br>[% results.reverse.0.date.strftime('%b-%d') FILTER html %]
</th>
<th style="padding: 0px 15px 10px 0px; text-align: right;">Closed<br />Last Week</th>
<th style="padding: 0px 15px 10px 0px; text-align: right; border-right: 1px solid grey;">Added<br />Last Week</th>
[% FOREACH result IN results.reverse %]
[% NEXT IF loop.count < 2 %]
[% LAST IF loop.count > 4 %]
<th style="padding: 0px 15px 10px [% IF loop.count == 2 %] 10px [% ELSE %] 0px [% END %]; text-align: right; [% IF loop.count == 1 %] border-right: 1px solid grey; [% END %]">
Open<br>[% result.date.strftime('%m/%d') FILTER html %]
Open<br>[% result.date.strftime('%b-%d') FILTER html %]
</th>
[% END %]
</tr>
Expand Down Expand Up @@ -89,7 +89,7 @@
<tr>
<th style="padding: 0px 15px 10px 0px;">Category</th>
<th style="padding: 0px 15px 10px 0px; text-align: right;">
Open<br>[% results.reverse.0.date.strftime('%m/%d') FILTER html %]
Open<br>[% results.reverse.0.date.strftime('%b-%d') FILTER html %]
</th>
<th style="padding: 0px 15px 10px 0px; text-align: right;">Closed<br />Last Week</th>
<th style="padding: 0px 15px 10px 0px; text-align: right;">Added<br />Last Week</th>
Expand All @@ -100,7 +100,7 @@
[% NEXT IF loop.count < 2 %]
[% LAST IF loop.count > 4 %]
<th style="padding: 0px 15px 10px [% IF loop.count == 2 %] 10px [% ELSE %] 0px [% END %]; text-align: right; [% IF loop.count == 1 %] border-right: 1px solid grey; [% END %]">
Open<br>[% result.date.strftime('%m/%d') FILTER html %]
Open<br>[% result.date.strftime('%b-%d') FILTER html %]
</th>
[% END %]
</tr>
Expand Down

0 comments on commit 0d9ffb7

Please sign in to comment.