summaryrefslogtreecommitdiffstats
path: root/extensions/TrackingFlags/template/en/default/hook/bug/create/create-bug_flags.html.tmpl
blob: e30df03f88e7cd9d09aa39c6b60b251ee50f19f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
[%# This Source Code Form is subject to the terms of the Mozilla Public
  # License, v. 2.0. If a copy of the MPL was not distributed with this
  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
  #
  # This Source Code Form is "Incompatible With Secondary Licenses", as
  # defined by the Mozilla Public License, v. 2.0.
  #%]

[% RETURN IF NOT tracking_flags.size %]
<td>
  <div>
    <a href="https://wiki.mozilla.org/BMO/UserGuide#Tracking_Flags" target="_blank" rel="noopener noreferrer">
      What do these flags mean?</a>
  </div>
  <table class="tracking_flags">
  [% FOREACH type = tracking_flag_types %]
    [% flag_list = [] %]
    [% FOREACH flag = tracking_flags %]
      [% flag_list.push(flag) IF flag.flag_type == type.name %]
    [% END %]
    [% IF flag_list.size %]
      <tr>
        <th style="text-align:right">
          [% type.description FILTER html %]:
        </th>
      </tr>
      [% INCLUDE bug/tracking_flags.html.tmpl
         flag_list = flag_list
         new_bug   = 1 %]
    [% END %]
  [% END %]
  </table>
</td>