~ubuntu-branches/ubuntu/edgy/bugzilla/edgy

« back to all changes in this revision

Viewing changes to template/en/default/admin/flag-type/list.html.tmpl

  • Committer: Bazaar Package Importer
  • Author(s): Alexis Sukrieh
  • Date: 2005-10-03 16:51:01 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051003165101-38n0y5qofd68vole
Tags: 2.18.4-1
* New upstream minor release
  + Fixed a security issue: It was possible to bypass the "user
    visibility groups" restrictions if user-matching was turned on
    in "substring" mode.
  + Fixed a security issue: config.cgi exposed information to users who
    weren't logged in, even when "requirelogin" was turned on in Bugzilla.
  (closes: #331206)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
[%# 1.0@bugzilla.org %]
 
2
[%# The contents of this file are subject to the Mozilla Public
 
3
  # License Version 1.1 (the "License"); you may not use this file
 
4
  # except in compliance with the License. You may obtain a copy of
 
5
  # the License at http://www.mozilla.org/MPL/
 
6
  #
 
7
  # Software distributed under the License is distributed on an "AS
 
8
  # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
 
9
  # implied. See the License for the specific language governing
 
10
  # rights and limitations under the License.
 
11
  #
 
12
  # The Original Code is the Bugzilla Bug Tracking System.
 
13
  #
 
14
  # The Initial Developer of the Original Code is Netscape Communications
 
15
  # Corporation. Portions created by Netscape are
 
16
  # Copyright (C) 1998 Netscape Communications Corporation. All
 
17
  # Rights Reserved.
 
18
  #
 
19
  # Contributor(s): Myk Melez <myk@mozilla.org>
 
20
  #%]
 
21
 
 
22
[% PROCESS global/variables.none.tmpl %]
 
23
 
 
24
[% PROCESS global/header.html.tmpl
 
25
  title = 'Administer Flag Types'
 
26
  style = "
 
27
    table#flag_types tr th { text-align: left; }
 
28
    .inactive { color: #787878; }
 
29
  "
 
30
%]
 
31
 
 
32
<p>
 
33
  Flags are markers that identify whether [% terms.abug %] or attachment has been granted
 
34
  or denied some status.  Flags appear in the UI as a name and a status symbol
 
35
  ("+" for granted, "-" for denied, and "?" for statuses requested by users).
 
36
</p>
 
37
 
 
38
<p>
 
39
  For example, you might define a "review" status for users to request review
 
40
  for their patches.  When a patch writer requests review, the string "review?"
 
41
  will appear in the attachment.  When a patch reviewer reviews the patch,
 
42
  either the string "review+" or the string "review-" will appear in the patch,
 
43
  depending on whether the patch passed or failed review.
 
44
</p>
 
45
 
 
46
<h3>Flag Types for [% terms.Bugs %]</h3>
 
47
 
 
48
[% PROCESS display_flag_types types=bug_types %]
 
49
 
 
50
<p>
 
51
  <a href="editflagtypes.cgi?action=enter&amp;target_type=bug">Create Flag Type for [% terms.Bugs %]</a>
 
52
</p>
 
53
 
 
54
<h3>Flag Types for Attachments</h3>
 
55
 
 
56
[% PROCESS display_flag_types types=attachment_types %]
 
57
 
 
58
<p>
 
59
  <a href="editflagtypes.cgi?action=enter&amp;target_type=attachment">Create Flag Type For Attachments</a>
 
60
</p>
 
61
 
 
62
<script type="text/javascript" language="JavaScript">
 
63
  <!--
 
64
  function confirmDelete(id, name, count)
 
65
  {
 
66
    if (count > 0) {
 
67
        var msg = 'There are ' + count + ' flags of type ' + name + '. ' +
 
68
                  'If you delete this type, those flags will also be ' +
 
69
                  'deleted.\n\nNote: to deactivate the type instead ' +
 
70
                  'of deleting it, edit it and uncheck its "is active" ' +
 
71
                  'flag.\n\nDo you really want to delete this flag type?';
 
72
        if (!confirm(msg)) return false;
 
73
    }
 
74
    location.href = "editflagtypes.cgi?action=delete&id=" + id;
 
75
    return false; // prevent strict JavaScript warning that this function
 
76
                  // does not always return a value
 
77
  }
 
78
  //-->
 
79
</script>
 
80
 
 
81
[% PROCESS global/footer.html.tmpl %]
 
82
 
 
83
 
 
84
[% BLOCK display_flag_types %]
 
85
  <table id="flag_types" cellspacing="0" cellpadding="4" border="1">
 
86
 
 
87
    <tr>
 
88
      <th>Edit name ...</th>
 
89
      <th>Description</th>
 
90
      <th>Actions</th>
 
91
    </tr>
 
92
 
 
93
    [% FOREACH type = types %]
 
94
 
 
95
      <tr class="[% IF type.is_active %]active[% ELSE %]inactive[% END %]">
 
96
        <td><a href="editflagtypes.cgi?action=edit&amp;id=[% type.id %]">[% type.name FILTER html %]</a></td>
 
97
        <td>[% type.description FILTER html %]</td>
 
98
        <td>
 
99
          <a href="editflagtypes.cgi?action=copy&amp;id=[% type.id %]">Copy</a>
 
100
          | <a href="editflagtypes.cgi?action=confirmdelete&amp;id=[% type.id %]"
 
101
               onclick="return confirmDelete([% type.id %], '[% type.name FILTER js FILTER html %]',
 
102
                                             [% type.flag_count %]);">Delete</a>
 
103
        </td>
 
104
      </tr>
 
105
 
 
106
    [% END %]
 
107
 
 
108
  </table>
 
109
[% END %]