~ubuntu-branches/debian/sid/bugzilla/sid

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Patrick Davies
  • Date: 2008-05-29 17:20:32 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20080529172032-tddh964ztksxayjm
Tags: 3.0.4-0ubuntu1
* New upstream release (LP: #138886, #235701).
* Removed "CVS" directories and ".cvsignore" files from upstream tarball.
* Added patches/ubuntu_01_bugzilla_libpath.dpatch - newly updated as necessary
  version of old 01_libpath.dpatch patch.
* Added patches/01_debian_package_version.dpatch - replaces old patch
  01_VERSION.dpatch, simply changes the version of Bugzilla to show the
  Debian packaging's versioning.
* Added patches/ubuntu_05_makefile_install.dpatch - Use a Makefile to
  install Bugzilla to the correct locations. Based on Makefile in old
  package but in patch form.
* Removed 02_checksetup.dpatch - fixed upstream.
* Removed 101_Config.diff - upstream has changed codebase.
* Renamed 06_contrib.dpatch to ubuntu_02_contrib_shebang_fixes.dpatch -
  corrects 'shebangs' which point to /usr/local/bin/ to /usr/bin/.
* Renamed 08_showdependencygraph.dpatch to
  ubuntu_03_showdependencygraph_url_fixes.dpatch and updated code as
  necessary - fixes graph URL to make the webdot generation possible.
* Removed CVE-2007-0791.dpatch - applied to upstream code.
* Removed CVE-2007-4543.dpatch - applied to upstream code.
* Renamed 09_homelink.dpatch to ubuntu_04_fixed_homepage_linked.dpatch -
  upstream now has links in
  'template/en/default/global/common-links.html.tmpl' instead of
  'useful-links.html.tmpl'.
* Removed 03_webpath.dpatch - upstream has changed stylesheet layout.
* Updated 10_perl_scripts_shebang.dpatch and removed part on "globals.pl" -
  no longer in source.
* Removed Debian vhost support patches (see docs/html/multiple-bz-dbs.html
  for how to run multiple Bugzilla instances):
  - Removed 04_Config.pm.dpatch - duplicate patch and unable to adapt it to
    new upstream code.
  - Removed 07_virtualhosting.dpatch - duplicate patch of
    04_Config.pm.dpatch.
  - Removed 'debian/examples' - contained Apache VHost example setup files
    for Bugzilla.
  - Removed section about vhosts from README.Debian.
* debian/rules:
  - Removed rules for "vhost conf dir", "examples" and "101_Config.diff"
    installation rules.
  - Removed part about bugzilla-fr package.
  - Remved part about "whine.pl" - now in Makefile.
  - Added rules to check the setup with upstream's "checksetup.pl" script.
* debian/control:
  - Updated Standards-Version to 3.7.3.
  - Updated compatibity level and debhelper build dependency version to 6.
  - Added Homepage field to source package stanza.
  - Added part about seeing 'bugzilla' package for more info to
    'bugzilla-docs'.
  - Added libapache2-mod-perl2, libtemplate-perl, libmime-perl,
    libappconfig-perl, libdbd-mysql-perl, libtimedate-perl, libgd-gd2-perl,
    libgd-text-perl, libxml-twig-perl, perlmagick, libemail-send-perl,
    libemail-mime-modifier-perl, libchart-perl, libgd-graph-perl,
    libhtml-scrubber-perl, libdbi-perl, libfile-spec-perl, libgd-graph-perl,
    libgd-text-perl, libnet-ldap-perl, libxml-parser-perl: to build
    dependencies with the necessary versions as stated by upstream in
    docs/html/installation.html - in order to check packaging correctly with
    'checksetup.pl' in rules. Also updated the 'bugzilla' dependencies with
    the above (LP: #235461).
  - Removed dependencies on old "apache" packages as they are no longer in
    the archives.
  - Moved mail transport agents on 'bugzilla' from Depends to
    Suggests (LP: #156405).
* debian/copyright: Updated the downloaded from link.
* debian/bugzilla.docs: Added "QUICKSTART", "rel_notes.txt" and "UPGRADING"
  documentation from source tarball for inclusion in package.
* debian/bugzilla-doc.doc-base: Corrected some spelling mistakes.
* debian/bugzilla.postinst: Removed sections about 101_Config.diff.
* Changed 'X_BUGZILLA_SITE' in bugzilla.cron.daily and bugzilla.postinst to
  'PROJECT'.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
<script type="text/javascript">
23
23
<!-- 
24
 
  var stored_onload = window.onload;
25
24
  // Enables or disables a requestee field depending on whether or not
26
25
  // the user is requesting the corresponding flag.
27
 
  function toggleRequesteeField(flagField)
 
26
  function toggleRequesteeField(flagField, no_focus)
28
27
  {
29
28
    // Convert the ID of the flag field into the ID of its corresponding
30
29
    // requestee field and then use the ID to get the field.
36
35
    // of the flag field.
37
36
    if (flagField.value == "?") {
38
37
        requesteeField.disabled = false;
39
 
        requesteeField.focus();
 
38
        if (!no_focus) requesteeField.focus();
40
39
    } else                         
41
40
        requesteeField.disabled = true;
42
41
  }
60
59
            inputElement.disabled = true;
61
60
      }
62
61
    }
63
 
    if (stored_onload) {
64
 
        stored_onload();
65
 
    }
66
62
  }
67
63
  window.onload = disableRequesteeFields;
68
64
// -->
76
72
  # on a single bug/attachment).
77
73
  #%]
78
74
 
79
 
<table id="flags">
80
 
  <tr>
81
 
    <th colspan="3">
82
 
      Flags:
83
 
    </th>
84
 
    [% IF any_flags_requesteeble %]
85
 
      <th>
86
 
        Requestee:
 
75
[% DEFAULT flag_table_id = "flags" %]
 
76
 
 
77
<table id="[% flag_table_id FILTER html %]">
 
78
  [% UNLESS flag_no_header %]
 
79
    <tr>
 
80
      <th colspan="3">
 
81
        Flags:
87
82
      </th>
88
 
    [% END %]
89
 
  </tr>
 
83
      [% IF any_flags_requesteeble %]
 
84
        <th>
 
85
          Requestee:
 
86
        </th>
 
87
      [% END %]
 
88
    </tr>
 
89
  [% END %]
90
90
 
91
91
  [%# Step 1: Display every flag type (except inactive types with no flags). %]
92
92
  [% FOREACH type = flag_types %]
98
98
          [% flag.setter.nick FILTER html %]:
99
99
        </td>
100
100
        <td>
101
 
          <label title="[% type.description FILTER html %]">
102
 
            [%- type.name FILTER html FILTER no_break %]</label>
 
101
          <label title="[% type.description FILTER html %]"
 
102
                 for="flag-[% flag.id %]">
 
103
            [%- type.name FILTER html FILTER no_break -%]</label>
103
104
        </td>
104
105
        <td>
105
106
          <select id="flag-[% flag.id %]" name="flag-[% flag.id %]" 
106
107
                  title="[% type.description FILTER html %]"
107
 
                  onchange="toggleRequesteeField(this);">
108
 
            <option value="X"></option>
 
108
                  onchange="toggleRequesteeField(this);"
 
109
                  class="flag_select">
 
110
            [%# Only display statuses the user is allowed to set. %]
 
111
            [% IF user.can_request_flag(type) %]
 
112
              <option value="X"></option>
 
113
            [% END %]
109
114
            [% IF type.is_active %]
110
 
              <option value="+" [% "selected" IF flag.status == "+" %]>+</option>
111
 
              <option value="-" [% "selected" IF flag.status == "-" %]>-</option>
112
 
              [% IF type.is_requestable || flag.status == "?" %]
 
115
              [% IF (type.is_requestable && user.can_request_flag(type)) || flag.status == "?" %]
113
116
                <option value="?" [% "selected" IF flag.status == "?" %]>?</option>
114
117
              [% END %]
 
118
              [% IF user.can_set_flag(type) || flag.status == "+" %]
 
119
                <option value="+" [% "selected" IF flag.status == "+" %]>+</option>
 
120
              [% END %]
 
121
              [% IF user.can_set_flag(type) || flag.status == "-" %]
 
122
                <option value="-" [% "selected" IF flag.status == "-" %]>-</option>
 
123
              [% END %]
115
124
            [% ELSE %]
116
125
              <option value="[% flag.status %]" selected="selected">[% flag.status %]</option>
117
126
            [% END %]
119
128
        </td>
120
129
        [% IF any_flags_requesteeble %]
121
130
          <td>
122
 
            [% IF type.is_active && type.is_requesteeble %]
 
131
            [% IF (type.is_active && type.is_requestable && type.is_requesteeble) || flag.requestee %]
123
132
              <span style="white-space: nowrap;">
124
133
                (<input type="text" size="30" maxlength="255"
125
134
                        id="requestee-[% flag.id %]" 
140
149
      <tr>
141
150
        <td>&nbsp;</td>
142
151
        <td>
143
 
          <label title="[% type.description FILTER html %]">
 
152
          <label title="[% type.description FILTER html %]"
 
153
                 for="flag_type-[% type.id %]">
144
154
            [%- type.name FILTER html FILTER no_break %]</label>
145
155
        </td>
146
156
        <td>
147
157
          <select id="flag_type-[% type.id %]" name="flag_type-[% type.id %]" 
148
158
                  title="[% type.description FILTER html %]"
149
 
                  onchange="toggleRequesteeField(this);">
 
159
                  [% " disabled=\"disabled\"" UNLESS user.can_request_flag(type) %]
 
160
                  onchange="toggleRequesteeField(this);"
 
161
                  class="flag_select">
150
162
            <option value="X"></option>
151
 
            <option value="+">+</option>
152
 
            <option value="-">-</option>
153
 
            [% IF type.is_requestable %]
 
163
            [% IF type.is_requestable && user.can_request_flag(type) %]
154
164
              <option value="?">?</option>
155
165
            [% END %]
 
166
            [% IF user.can_set_flag(type) %]
 
167
              <option value="+">+</option>
 
168
              <option value="-">-</option>
 
169
            [% END %]
156
170
          </select>
157
171
        </td>
158
172
        [% IF any_flags_requesteeble %]
159
173
          <td>
160
 
            [% IF type.is_requesteeble %]
 
174
            [% IF type.is_requestable && type.is_requesteeble %]
161
175
              <span style="white-space: nowrap;">
162
176
                (<input type="text" size="30" maxlength="255"
163
177
                        id="requestee_type-[% type.id %]" 
179
193
    [% END %]
180
194
    <tr>
181
195
      <td colspan="2">
182
 
        addl. <label title="[% type.description FILTER html %]">
 
196
        addl. <label title="[% type.description FILTER html %]"
 
197
                     for="flag_type-[% type.id %]">
183
198
          [%- type.name FILTER html FILTER no_break %]</label>
184
199
      </td>
185
200
      <td>
186
201
        <select id="flag_type-[% type.id %]" name="flag_type-[% type.id %]" 
187
202
                title="[% type.description FILTER html %]"
188
 
                onchange="toggleRequesteeField(this);">
 
203
                [% " disabled=\"disabled\"" UNLESS user.can_request_flag(type) %]
 
204
                onchange="toggleRequesteeField(this);"
 
205
                class="flag_select">
189
206
          <option value="X"></option>
190
 
          <option value="+">+</option>
191
 
          <option value="-">-</option>
192
 
          [% IF type.is_requestable %]
 
207
          [% IF type.is_requestable && user.can_request_flag(type) %]
193
208
            <option value="?">?</option>
194
209
          [% END %]
 
210
          [% IF user.can_set_flag(type) %]
 
211
            <option value="+">+</option>
 
212
            <option value="-">-</option>
 
213
          [% END %]
195
214
        </select>
196
215
      </td>
197
216
      [% IF any_flags_requesteeble %]
198
217
        <td>
199
 
          [% IF type.is_requesteeble %]
 
218
          [% IF type.is_requestable && type.is_requesteeble %]
200
219
              <span style="white-space: nowrap;">
201
220
                (<input type="text" size="30" maxlength="255"
202
221
                        id="requestee_type-[% type.id %]"