From e9f04a30422f4da41d15e22337b6e6477b2fb590 Mon Sep 17 00:00:00 2001 From: "jake%acutex.net" <> Date: Thu, 13 Dec 2001 06:41:04 +0000 Subject: Bug 37339 and Bug 80183 - Adding a sidebar.cgi and index.cgi. The sidebar.cgi can currently be used in Mozilla/Netscape 6 and uses XUL that was originally written by Scott Collins . The index.cgi displays both the proper header and footer in the appropriate places. It also changes the links accoding to if you are logged in or not. r= ddk, kiko --- template/default/index.tmpl | 83 ++++++++++++++++++++++++++ template/default/sidebar/xul.tmpl | 121 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 204 insertions(+) create mode 100644 template/default/index.tmpl create mode 100644 template/default/sidebar/xul.tmpl (limited to 'template/default') diff --git a/template/default/index.tmpl b/template/default/index.tmpl new file mode 100644 index 000000000..8c1af4ed6 --- /dev/null +++ b/template/default/index.tmpl @@ -0,0 +1,83 @@ +[%# -*- mode: html -*- %] +[%# 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): Terry Weissman + # Jacob Steenhagen + #%] + +[% INCLUDE global/header + title = 'Bugzilla Main Page' +%] + + + + + + + +
+

This is where we put in lots of nifty words explaining all about Bugzilla.

+ + But it all boils down to a choice of: +

+ Query existing bug reports
+ Enter a new bug report
+ Get summary reports
+

+[% IF username %] + My Bugs
+ Change password or user preferences
+ Logout [% username %]
+[% ELSE %] + Log in to an existing account
+ Open a new Bugzilla account
+[% END %] +

+ Add to Sidebar (Requires Mozilla or Netscape 6)
+

+
+

+ Enter a bug # or some search terms:
+ + + [Help] +

+
+
ant.jpg [8.5k]
+ + + + + +[% INCLUDE global/footer %] diff --git a/template/default/sidebar/xul.tmpl b/template/default/sidebar/xul.tmpl new file mode 100644 index 000000000..1794d5f50 --- /dev/null +++ b/template/default/sidebar/xul.tmpl @@ -0,0 +1,121 @@ +[%# -*- mode: sgml -*- %] +[%# 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): Jacob Steenhagen + # Scott Collins + #%] + + + + + +// Load QuickSearch libraries + + + + + + + + + + + + + +[% IF username %] + +[% END %] +[% IF UserInGroup('tweakparams') %] + +[% END %] +[% IF UserInGroup('editusers') || blessgroupset %] + +[% END %] +[% IF UserInGroup('editcomponents') %] + +[% END %] +[% IF UserInGroup('creategroups') %] + +[% END %] +[% IF UserInGroup('editkeywords') %] + +[% END %] +[% IF UserInGroup('tweakparams') %] + +[% END %] +[% IF username %] + + +[% END %] + +[% IF mybugsurl %] + +[% END %] +[% IF anyvotesallowed && username %] + +[% END %] + +[% FOREACH name = namedqueries %] + +[% END %] + +[% IF NOT username %] + + +[% END %] + + + + + + + + + reload + + + -- cgit v1.2.1