~ubuntu-branches/debian/squeeze/bugzilla/squeeze

« back to all changes in this revision

Viewing changes to template/en/default/admin/components/list.html.tmpl

  • Committer: Bazaar Package Importer
  • Author(s): Raphael Bossek
  • Date: 2008-06-27 22:34:34 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20080627223434-0ib57vstn43bb4a3
Tags: 3.0.4.1-1
* Update of French, Russian and German translations. (closes: #488251)
* Added Bulgarian and Belarusian translations.

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): Gavin Shelley <bugzilla@chimpychompy.org>
20
 
  #                 Frédéric Buclin <LpSolit@gmail.com>
21
 
  #%]
22
 
 
23
 
[%# INTERFACE:
24
 
  # showbugcounts: if defined, then bug counts should be included in the table
25
 
  # product: object; Bugzilla::Product object representing the product to
26
 
  #               which the component belongs.
27
 
  #%]
28
 
 
29
 
[% PROCESS global/variables.none.tmpl %]
30
 
 
31
 
[% title = BLOCK %]Select component of product
32
 
                   '[% product.name FILTER html %]'[% END %]
33
 
[% PROCESS global/header.html.tmpl
34
 
  title = title
35
 
%]
36
 
 
37
 
[% edit_contentlink = BLOCK %]editcomponents.cgi?action=edit&amp;product=
38
 
  [%- product.name FILTER url_quote %]&amp;component=%%name%%[% END %]
39
 
[% delete_contentlink = BLOCK %]editcomponents.cgi?action=del&amp;product=
40
 
  [%- product.name FILTER url_quote %]&amp;component=%%name%%[% END %]
41
 
[% bug_count_contentlink = BLOCK %]buglist.cgi?component=%%name%%&amp;product=
42
 
  [%- product.name FILTER url_quote %][% END %]
43
 
 
44
 
 
45
 
[% columns = [
46
 
     { 
47
 
       name => "name"
48
 
       heading => "Edit component..."
49
 
       contentlink => edit_contentlink
50
 
     },
51
 
     { 
52
 
       name => "description"
53
 
       heading => "Description" 
54
 
       allow_html_content => 1
55
 
     },
56
 
     { 
57
 
       name => "initialowner"
58
 
       heading => "Default Assignee"
59
 
     },
60
 
   ]
61
 
%]
62
 
 
63
 
[% IF Param('useqacontact') %]
64
 
 
65
 
  [% columns.push({
66
 
       name => 'initialqacontact'
67
 
       heading => 'QA Contact'
68
 
     }) %]
69
 
 
70
 
[% END %]
71
 
 
72
 
[% IF showbugcounts %]
73
 
 
74
 
  [% columns.push({
75
 
       name => 'bug_count'
76
 
       heading => "$terms.Bugs"
77
 
       align => "right"
78
 
       contentlink => bug_count_contentlink
79
 
     }) %]
80
 
 
81
 
[% END %]
82
 
 
83
 
[% columns.push({
84
 
     heading => "Action"
85
 
     content => "Delete"
86
 
     contentlink => delete_contentlink
87
 
   }) %]
88
 
 
89
 
[%# Overrides the initialowner and the initialqacontact with right values %]
90
 
[% overrides.initialowner = [] %]
91
 
[% overrides.initialqacontact = [] %]
92
 
 
93
 
[% FOREACH component = product.components %]
94
 
  [% overrides.initialowner.push({
95
 
       match_value => component.name
96
 
       match_field => 'name'
97
 
       override_content => 1
98
 
       content => component.default_assignee.login
99
 
     })
100
 
  %]
101
 
  [% overrides.initialqacontact.push({
102
 
       match_value => component.name
103
 
       match_field => 'name'
104
 
       override_content => 1
105
 
       content => component.default_qa_contact.login
106
 
     })
107
 
  %]
108
 
[% END %]
109
 
 
110
 
[% PROCESS admin/table.html.tmpl
111
 
     columns = columns
112
 
     data = product.components
113
 
     overrides = overrides
114
 
%]
115
 
 
116
 
<p><a href="editcomponents.cgi?action=add&amp;product=[% product.name FILTER url_quote %]">Add</a>
117
 
    a new component to product '[% product.name FILTER html %]'</p>
118
 
 
119
 
[% IF ! showbugcounts %]
120
 
 
121
 
  <p><a href="editcomponents.cgi?product=[% product.name FILTER url_quote %]&amp;showbugcounts=1">
122
 
      Redisplay table with [% terms.bug %] counts (slower)</a></p>
123
 
 
124
 
[% END %]
125
 
 
126
 
[% PROCESS admin/components/footer.html.tmpl
127
 
  no_edit_other_components_link = 1
128
 
 %]
129
 
 
130
 
[% PROCESS global/footer.html.tmpl %]