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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
d53b0947
Commit
d53b0947
authored
Apr 23, 2002
by
caillon%returnzero.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 138604, make the bugzilla sidebar use valid XUL plus some template cleanup. r=bbaetz,gerv
parent
5a4c7d80
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
60 deletions
+52
-60
xul.tmpl
template/default/sidebar/xul.tmpl
+26
-30
sidebar.xul.tmpl
template/en/default/sidebar.xul.tmpl
+26
-30
No files found.
template/default/sidebar/xul.tmpl
View file @
d53b0947
...
...
@@ -19,6 +19,7 @@
#
# Contributor(s): Jacob Steenhagen
<jake
@
acutex
.
net
>
# Scott Collins
<scc
@
mozilla
.
org
>
# Christopher A. Aillon
<christopher
@
aillon
.
com
>
#%]
<?xml version="1.0"?>
<!-- [% template_version %] -->
...
...
@@ -30,11 +31,10 @@
orient=
"vertical"
onload=
"document.getElementById('query-field').addEventListener('keypress', initial_keypress_handler, true)"
>
// Load QuickSearch libraries
<script
type=
"text/javascript"
language=
"JavaScript"
src=
"localconfig.js"
/>
<
script
type
=
"text/javascript"
language
=
"JavaScript"
src
=
"quicksearch.js"
/>
<
script
type
=
"text/javascript"
language
=
"JavaScript"
>
<!-- Load QuickSearch libraries -->
<script
type=
"application/x-javascript"
src=
"localconfig.js"
/>
<
script
type
=
"application/x-javascript"
src
=
"quicksearch.js"
/>
<
script
type
=
"application/x-javascript"
><!
[
CDATA
[
// Tell QuickSearch that the source of this is the sidebar
var
sidebar
=
1
;
...
...
@@ -55,13 +55,13 @@ function normal_keypress_handler( aEvent ) {
QuickSearch
(
this
.
value
);
}
</script>
]]
>
</script>
<textbox
id=
"query-field"
class=
"descriptive-content"
value=
"enter query"
onfocus=
"this.setSelectionRange(0,this.value.length)"
/>
<separator
class=
"groove"
/>
<box
autostretch=
"never"
valign=
"top"
>
<box
autostretch=
"never"
valign=
"top"
>
<box
orient=
"vertical"
flex=
"1"
>
<text
class=
"text-link"
onclick=
"load_relative_url('query.cgi')"
value=
"new query"
/>
<text
class=
"text-link"
onclick=
"load_relative_url('reports.cgi')"
value=
"reports"
/>
...
...
@@ -70,42 +70,38 @@ function normal_keypress_handler( aEvent ) {
[% IF username %]
<text
class=
"text-link"
onclick=
"load_relative_url('userprefs.cgi')"
value=
"edit prefs"
/>
[% END %]
[% IF UserInGroup('tweakparams') %]
[%- IF UserInGroup('tweakparams') %]
<text
class=
"text-link"
onclick=
"load_relative_url('editparams.cgi')"
value=
"edit params"
/>
[%
END %]
[%
IF UserInGroup('editusers') || blessgroupset %]
[%-
END %]
[%-
IF UserInGroup('editusers') || blessgroupset %]
<text
class=
"text-link"
onclick=
"load_relative_url('editusers.cgi')"
value=
"edit users"
/>
[%
END %]
[%
IF UserInGroup('editcomponents') %]
[%-
END %]
[%-
IF UserInGroup('editcomponents') %]
<text
class=
"text-link"
onclick=
"load_relative_url('editcomponents.cgi')"
value=
"edit components"
/>
[%
END %]
[%
IF UserInGroup('creategroups') %]
[%-
END %]
[%-
IF UserInGroup('creategroups') %]
<text
class=
"text-link"
onclick=
"load_relative_url('editgroups.cgi')"
value=
"edit groups"
/>
[%
END %]
[%
IF UserInGroup('editkeywords') %]
[%-
END %]
[%-
IF UserInGroup('editkeywords') %]
<text
class=
"text-link"
onclick=
"load_relative_url('editkeywords.cgi')"
value=
"edit keywords"
/>
[%
END %]
[%
IF UserInGroup('tweakparams') %]
[%-
END %]
[%-
IF UserInGroup('tweakparams') %]
<text
class=
"text-link"
onclick=
"load_relative_url('sanitycheck.cgi')"
value=
"sanity check"
/>
[% END %]
[% IF username %]
[%- END %]
<text
class=
"text-link"
onclick=
"load_relative_url('relogin.cgi')"
value=
"logout [% username FILTER html %]"
/>
<separator
class=
"thin"
/>
[% END %]
[% IF mybugsurl %]
[%- IF mybugsurl %]
<text
class=
"text-link"
onclick=
"load_relative_url('[% mybugsurl FILTER html %]')"
value=
"my bugs"
/>
[%
END %]
[% IF anyvotesallowed
&&
username
%]
[%-
END %]
[%- IF anyvotesallowed
%]
<text
class=
"text-link"
onclick=
"load_relative_url('votes.cgi?action=show_user')"
value=
"my votes"
/>
[%
END %]
[%-
END %]
[%
FOREACH name = namedqueries %]
[%-
FOREACH name = namedqueries %]
<text
class=
"text-link"
onclick=
"load_relative_url('buglist.cgi?cmdtype=runnamed&namedcmd=[% name FILTER uri %]')"
value=
"[% name FILTER html %]"
/>
[% END %]
[% END %]
[%
IF NOT username
%]
[%
ELSE
%]
<text
class=
"text-link"
onclick=
"load_relative_url('createaccount.cgi')"
value=
"new user"
/>
<text
class=
"text-link"
onclick=
"load_relative_url('query.cgi?GoAheadAndLogIn=1')"
value=
"log in"
/>
[% END %]
...
...
template/en/default/sidebar.xul.tmpl
View file @
d53b0947
...
...
@@ -19,6 +19,7 @@
#
# Contributor(s): Jacob Steenhagen
<jake
@
acutex
.
net
>
# Scott Collins
<scc
@
mozilla
.
org
>
# Christopher A. Aillon
<christopher
@
aillon
.
com
>
#%]
<?xml version="1.0"?>
<!-- [% template_version %] -->
...
...
@@ -30,11 +31,10 @@
orient=
"vertical"
onload=
"document.getElementById('query-field').addEventListener('keypress', initial_keypress_handler, true)"
>
// Load QuickSearch libraries
<script
type=
"text/javascript"
language=
"JavaScript"
src=
"localconfig.js"
/>
<
script
type
=
"text/javascript"
language
=
"JavaScript"
src
=
"quicksearch.js"
/>
<
script
type
=
"text/javascript"
language
=
"JavaScript"
>
<!-- Load QuickSearch libraries -->
<script
type=
"application/x-javascript"
src=
"localconfig.js"
/>
<
script
type
=
"application/x-javascript"
src
=
"quicksearch.js"
/>
<
script
type
=
"application/x-javascript"
><!
[
CDATA
[
// Tell QuickSearch that the source of this is the sidebar
var
sidebar
=
1
;
...
...
@@ -55,13 +55,13 @@ function normal_keypress_handler( aEvent ) {
QuickSearch
(
this
.
value
);
}
</script>
]]
>
</script>
<textbox
id=
"query-field"
class=
"descriptive-content"
value=
"enter query"
onfocus=
"this.setSelectionRange(0,this.value.length)"
/>
<separator
class=
"groove"
/>
<box
autostretch=
"never"
valign=
"top"
>
<box
autostretch=
"never"
valign=
"top"
>
<box
orient=
"vertical"
flex=
"1"
>
<text
class=
"text-link"
onclick=
"load_relative_url('query.cgi')"
value=
"new query"
/>
<text
class=
"text-link"
onclick=
"load_relative_url('reports.cgi')"
value=
"reports"
/>
...
...
@@ -70,42 +70,38 @@ function normal_keypress_handler( aEvent ) {
[% IF username %]
<text
class=
"text-link"
onclick=
"load_relative_url('userprefs.cgi')"
value=
"edit prefs"
/>
[% END %]
[% IF UserInGroup('tweakparams') %]
[%- IF UserInGroup('tweakparams') %]
<text
class=
"text-link"
onclick=
"load_relative_url('editparams.cgi')"
value=
"edit params"
/>
[%
END %]
[%
IF UserInGroup('editusers') || blessgroupset %]
[%-
END %]
[%-
IF UserInGroup('editusers') || blessgroupset %]
<text
class=
"text-link"
onclick=
"load_relative_url('editusers.cgi')"
value=
"edit users"
/>
[%
END %]
[%
IF UserInGroup('editcomponents') %]
[%-
END %]
[%-
IF UserInGroup('editcomponents') %]
<text
class=
"text-link"
onclick=
"load_relative_url('editcomponents.cgi')"
value=
"edit components"
/>
[%
END %]
[%
IF UserInGroup('creategroups') %]
[%-
END %]
[%-
IF UserInGroup('creategroups') %]
<text
class=
"text-link"
onclick=
"load_relative_url('editgroups.cgi')"
value=
"edit groups"
/>
[%
END %]
[%
IF UserInGroup('editkeywords') %]
[%-
END %]
[%-
IF UserInGroup('editkeywords') %]
<text
class=
"text-link"
onclick=
"load_relative_url('editkeywords.cgi')"
value=
"edit keywords"
/>
[%
END %]
[%
IF UserInGroup('tweakparams') %]
[%-
END %]
[%-
IF UserInGroup('tweakparams') %]
<text
class=
"text-link"
onclick=
"load_relative_url('sanitycheck.cgi')"
value=
"sanity check"
/>
[% END %]
[% IF username %]
[%- END %]
<text
class=
"text-link"
onclick=
"load_relative_url('relogin.cgi')"
value=
"logout [% username FILTER html %]"
/>
<separator
class=
"thin"
/>
[% END %]
[% IF mybugsurl %]
[%- IF mybugsurl %]
<text
class=
"text-link"
onclick=
"load_relative_url('[% mybugsurl FILTER html %]')"
value=
"my bugs"
/>
[%
END %]
[% IF anyvotesallowed
&&
username
%]
[%-
END %]
[%- IF anyvotesallowed
%]
<text
class=
"text-link"
onclick=
"load_relative_url('votes.cgi?action=show_user')"
value=
"my votes"
/>
[%
END %]
[%-
END %]
[%
FOREACH name = namedqueries %]
[%-
FOREACH name = namedqueries %]
<text
class=
"text-link"
onclick=
"load_relative_url('buglist.cgi?cmdtype=runnamed&namedcmd=[% name FILTER uri %]')"
value=
"[% name FILTER html %]"
/>
[% END %]
[% END %]
[%
IF NOT username
%]
[%
ELSE
%]
<text
class=
"text-link"
onclick=
"load_relative_url('createaccount.cgi')"
value=
"new user"
/>
<text
class=
"text-link"
onclick=
"load_relative_url('query.cgi?GoAheadAndLogIn=1')"
value=
"log in"
/>
[% END %]
...
...
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