Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
bugzilla
Commits
8d6671f0
Commit
8d6671f0
authored
Oct 02, 2002
by
gerv%gerv.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 170903 - Remove hard-coded titles and things. Patch by gerv; r=bbaetz.
parent
5f576f46
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
65 additions
and
11 deletions
+65
-11
describecomponents.cgi
describecomponents.cgi
+0
-3
enter_bug.cgi
enter_bug.cgi
+1
-6
globals.pl
globals.pl
+1
-1
choose-product.html.tmpl
template/en/default/global/choose-product.html.tmpl
+8
-0
field-descs.html.tmpl
template/en/default/global/field-descs.html.tmpl
+52
-0
form.html.tmpl
template/en/default/search/form.html.tmpl
+3
-1
No files found.
describecomponents.cgi
View file @
8d6671f0
...
...
@@ -64,9 +64,6 @@ if (!defined $::FORM{'product'}) {
elsif
(
$prodsize
>
1
)
{
$::vars
->
{
'proddesc'
}
=
\%
products
;
$::vars
->
{
'target'
}
=
"describecomponents.cgi"
;
$::vars
->
{
'title'
}
=
"Bugzilla component description"
;
$::vars
->
{
'h2'
}
=
"Please specify the product whose components you want described."
;
print
"Content-type: text/html\n\n"
;
$::template
->
process
(
"global/choose-product.html.tmpl"
,
$::vars
)
...
...
enter_bug.cgi
View file @
8d6671f0
...
...
@@ -88,9 +88,6 @@ if (!defined $::FORM{'product'}) {
$vars
->
{
'target'
}
=
"enter_bug.cgi"
;
$vars
->
{
'format'
}
=
$::FORM
{
'format'
};
$vars
->
{
'title'
}
=
"Enter Bug"
;
$vars
->
{
'h2'
}
=
"First, you must pick a product on which to enter a bug."
;
print
"Content-type: text/html\n\n"
;
$template
->
process
(
"global/choose-product.html.tmpl"
,
$vars
)
...
...
@@ -284,7 +281,6 @@ $default{'component_'} = formvalue('component');
$vars
->
{
'assigned_to'
}
=
formvalue
(
'assigned_to'
);
$vars
->
{
'cc'
}
=
formvalue
(
'cc'
);
$vars
->
{
'reporter'
}
=
$::COOKIE
{
'Bugzilla_login'
};
$vars
->
{
'user_agent'
}
=
$ENV
{
'HTTP_USER_AGENT'
};
$vars
->
{
'product'
}
=
$product
;
$vars
->
{
'bug_file_loc'
}
=
formvalue
(
'bug_file_loc'
,
"http://"
);
$vars
->
{
'short_desc'
}
=
formvalue
(
'short_desc'
);
...
...
@@ -352,8 +348,7 @@ while (MoreSQLData()) {
my
$check
;
# If this is the group for this product, make it checked.
if
(
formvalue
(
"maketemplate"
)
eq
"Remember values as bookmarkable template"
)
if
(
formvalue
(
"maketemplate"
)
ne
""
)
{
# If this is a bookmarked template, then we only want to set the
# bit for those bits set in the template.
...
...
globals.pl
View file @
8d6671f0
...
...
@@ -98,7 +98,7 @@ $::SIG{PIPE} = 'IGNORE';
$::dontchange
=
"--do_not_change--"
;
$::chooseone
=
"--Choose_one:--"
;
$::defaultqueryname
=
"(Default query)"
;
$::defaultqueryname
=
"(Default query)"
;
# This string not exposed in UI
$::unconfirmedstate
=
"UNCONFIRMED"
;
$::dbwritesallowed
=
1
;
...
...
template/en/default/global/choose-product.html.tmpl
View file @
8d6671f0
...
...
@@ -24,6 +24,14 @@
# are their descriptions.
#%]
[% IF target == "enter_bug.cgi" %]
[% title = "Enter Bug" %]
[% h2 = "First, you must pick a product on which to enter a bug." %]
[% ELSIF target == "describecomponents.cgi" %]
[% title = "Bugzilla Component Descriptions" %]
[% h2 = "Please specify the product whose components you want described." %]
[% END %]
[% DEFAULT title = "Choose a Product" %]
[% PROCESS global/header.html.tmpl %]
...
...
template/en/default/global/field-descs.html.tmpl
0 → 100644
View file @
8d6671f0
<!-- 1.0@bugzilla.org -->
[%# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is the Bugzilla Bug Tracking System.
#
# The Initial Developer of the Original Code is Netscape Communications
# Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s): Gervase Markham <gerv@gerv.net>
#%]
[%# Remember to PROCESS rather than INCLUDE this template. %]
[% field_descs = { "[Bug creation]" => "[Bug creation]",
"alias" => "Alias",
"assigned_to" => "Assignee",
"bug_file_loc" => "URL",
"bug_id" => "Bug ID",
"bug_severity" => "Severity",
"bug_status" => "Status",
"cclist_accessible" => "CC list accessible?",
"component_id" => "Component ID",
"component" => "Component",
"creation_ts" => "Bug Creation time",
"delta_ts" => "Last Changed time",
"everconfirmed" => "Ever confirmed?",
"groupset" => "Groupset",
"keywords" => "Keywords",
"op_sys" => "OS",
"priority" => "Priority",
"product_id" => "Product ID",
"product" => "Product",
"qa_contact" => "QA Contact",
"rep_platform" => "Hardware",
"reporter" => "Reporter",
"reporter_accessible" => "Reporter accessible?",
"resolution" => "Resolution",
"short_desc" => "Summary",
"status_whiteboard" => "Whiteboard",
"target_milestone" => "Target Milestone",
"version" => "Version",
"votes" => "Votes" } %]
template/en/default/search/form.html.tmpl
View file @
8d6671f0
...
...
@@ -327,6 +327,8 @@ function selectProduct(f) {
{ value => "regexp", description => "matches the regexp" },
{ value => "notregexp", description => "doesn't match the regexp" } ] %]
[% PROCESS "global/field-descs.html.tmpl" %]
[%# *** Summary *** %]
<table>
...
...
@@ -664,7 +666,7 @@ function selectProduct(f) {
[% FOREACH field = chfield %]
<option value="[% field FILTER html %]"
[% " selected" IF lsearch(default.chfield, field) != -1 %]>
[%
field
FILTER html %]</option>
[%
(field_descs.$field || field)
FILTER html %]</option>
[% END %]
</select>
</dd>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment