1 |
[%# -*- mode: html -*- %] |
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): Terry Weissman <terry@mozilla.org> |
20 |
# Jacob Steenhagen <jake@bugzilla.org> |
21 |
# Vitaly Harisov <vitaly@rathedg.com> |
22 |
# Guy Pyrzak <guy.pyrzak@gmail.com> |
23 |
#%] |
24 |
|
25 |
[%# INTERFACE: |
26 |
# release: a hash containing data about new releases, if any. |
27 |
#%] |
28 |
|
29 |
[% PROCESS global/variables.none.tmpl %] |
30 |
|
31 |
|
32 |
[% PROCESS global/header.html.tmpl |
33 |
title = "$terms.Bugzilla Main Page" |
34 |
header = "Main Page" |
35 |
header_addl_info = "version $constants.BUGZILLA_VERSION" |
36 |
style_urls = [ 'skins/standard/index.css' ] |
37 |
%] |
38 |
|
39 |
|
40 |
<script type="text/javascript"> |
41 |
<!-- |
42 |
function onLoadActions() { |
43 |
quicksearchHelpText('quicksearch_main', 'show'); |
44 |
if( window.external.AddSearchProvider ){ |
45 |
YAHOO.util.Dom.removeClass('quicksearch_plugin', 'bz_default_hidden'); |
46 |
} |
47 |
document.getElementById('quicksearch_top').focus(); |
48 |
} |
49 |
function addSidebar() { |
50 |
var sidebarname=window.location.host; |
51 |
if (!/bug/i.test(sidebarname)) |
52 |
sidebarname="[% terms.Bugzilla %] "+sidebarname; |
53 |
window.sidebar.addPanel (sidebarname, "[% urlbase FILTER html %]sidebar.cgi", ""); |
54 |
} |
55 |
var quicksearch_message = "Enter [% terms.abug %] # or some search terms"; |
56 |
|
57 |
function checkQuicksearch( form ) { |
58 |
if (form.quicksearch.value == '' || form.quicksearch.value == quicksearch_message ) { |
59 |
alert('Please enter one or more search terms first.'); |
60 |
return false; |
61 |
} |
62 |
return true; |
63 |
} |
64 |
|
65 |
function quicksearchHelpText(el_id, action){ |
66 |
var el = document.getElementById(el_id); |
67 |
if ( action == "show") { |
68 |
if( el.value == "" ) { |
69 |
el.value = quicksearch_message |
70 |
YAHOO.util.Dom.addClass(el, "quicksearch_help_text"); |
71 |
} |
72 |
} else { |
73 |
if( el.value == quicksearch_message ) { |
74 |
el.value = ""; |
75 |
YAHOO.util.Dom.removeClass(el, "quicksearch_help_text"); |
76 |
} |
77 |
} |
78 |
} |
79 |
YAHOO.util.Event.onDOMReady(onLoadActions); |
80 |
//--> |
81 |
</script> |
82 |
|
83 |
[% IF release %] |
84 |
<div id="new_release"> |
85 |
[% IF release.data %] |
86 |
[% IF release.deprecated %] |
87 |
<p>[% terms.Bugzilla %] [%+ release.deprecated FILTER html %] is no longer |
88 |
supported. You are highly encouraged to upgrade in order to keep your |
89 |
system secure.</p> |
90 |
[% END %] |
91 |
|
92 |
<p>A new [% terms.Bugzilla %] version ([% release.data.latest_ver FILTER html %]) |
93 |
is available at |
94 |
<a href="[% release.data.url FILTER html %]">[% release.data.url FILTER html %]</a>.<br> |
95 |
Release date: [% release.data.date FILTER html %]</p> |
96 |
|
97 |
<p class="notice">This message is only shown to logged in users with admin privs. |
98 |
You can configure this notification from the |
99 |
<a href="editparams.cgi?section=general#upgrade_notification">Parameters</a> page.</p> |
100 |
[% ELSIF release.error == "cannot_download" %] |
101 |
<p>The local XML file '[% release.xml_file FILTER html %]' cannot be created. |
102 |
Please make sure the web server can write in this directory and that you can access |
103 |
the web. If you are behind a proxy, set the |
104 |
<a href="editparams.cgi?section=advanced#proxy_url">proxy_url</a> parameter correctly.</p> |
105 |
[% ELSIF release.error == "no_update" %] |
106 |
<p>The local XML file '[% release.xml_file FILTER html %]' cannot be updated. |
107 |
Please make sure the web server can edit this file.</p> |
108 |
[% ELSIF release.error == "no_access" %] |
109 |
<p>The local XML file '[% release.xml_file FILTER html %]' cannot be read. |
110 |
Please make sure this file has the correct rights set on it.</p> |
111 |
[% ELSIF release.error == "corrupted" %] |
112 |
<p>The local XML file '[% release.xml_file FILTER html %]' has an invalid XML format. |
113 |
Please delete it and try accessing this page again.</p> |
114 |
[% ELSIF release.error == "unknown_parameter" %] |
115 |
<p>'[% Param("upgrade_notification") FILTER html %]' is not a valid notification |
116 |
parameter. Please check this parameter in the |
117 |
<a href="editparams.cgi?section=general#upgrade_notification">Parameters</a> page.</p> |
118 |
[% END %] |
119 |
</div> |
120 |
[% END %] |
121 |
|
122 |
<div id="page-index"> |
123 |
<table> |
124 |
<tr> |
125 |
<td> |
126 |
<h1 id="welcome"> Welcome to [% terms.Bugzilla %]</h1> |
127 |
<div class="intro">[% Hook.process('intro') %]</div> |
128 |
<a id="enter_bug" class="bz_common_actions" |
129 |
href="enter_bug.cgi"><span>File [% terms.aBug %]</span></a> |
130 |
|
131 |
<a id="query" class="bz_common_actions" |
132 |
href="query.cgi"><span>Search</span></a> |
133 |
|
134 |
<a id="account" class="bz_common_actions" |
135 |
[% IF user.id %] |
136 |
href="userprefs.cgi"><span>User Preferences</span></a> |
137 |
[% ELSIF Param('createemailregexp') |
138 |
&& user.authorizer.user_can_create_account |
139 |
%] |
140 |
href="createaccount.cgi"><span>Open a New Account</span></a> |
141 |
[% ELSE %] |
142 |
href="?GoAheadAndLogIn=1"><span>Log In</span></a> |
143 |
[% END %] |
144 |
|
145 |
<form id="quicksearchForm" name="quicksearchForm" action="buglist.cgi" |
146 |
onsubmit="return checkQuicksearch(this);"> |
147 |
<div> |
148 |
<input id="quicksearch_main" type="text" name="quicksearch" |
149 |
onfocus="quicksearchHelpText(this.id, 'hide');" |
150 |
onblur="quicksearchHelpText(this.id, 'show');" |
151 |
> |
152 |
<input id="find" type="submit" value="Quick Search"> |
153 |
<ul class="additional_links" id="quicksearch_links"> |
154 |
<li> |
155 |
<a href="page.cgi?id=quicksearch.html">Quick Search help</a> |
156 |
</li> |
157 |
<li class="bz_default_hidden" id="quicksearch_plugin"> |
158 |
| |
159 |
<a href="javascript:window.external.AddSearchProvider('[% urlbase FILTER html %]search_plugin.cgi')"> |
160 |
Install the Quick Search plugin |
161 |
</a> |
162 |
</li> |
163 |
</ul> |
164 |
<ul class="additional_links"> |
165 |
<li> |
166 |
<a href="[% docs_urlbase FILTER html %]using.html"> |
167 |
[%- terms.Bugzilla %] User's Guide</a> |
168 |
</li> |
169 |
<li> |
170 |
| |
171 |
<a href="page.cgi?id=release-notes.html">Release Notes</a> |
172 |
</li> |
173 |
</ul> |
174 |
</div> |
175 |
</form> |
176 |
<div class="outro">[% Hook.process('outro') %]</div> |
177 |
</td> |
178 |
</tr> |
179 |
</table> |
180 |
</div> |
181 |
|
182 |
[% PROCESS global/footer.html.tmpl %] |