/[web]/templates/bugzilla/trunk/index.html.tmpl
ViewVC logotype

Contents of /templates/bugzilla/trunk/index.html.tmpl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 147 - (show annotations) (download)
Mon Jan 10 08:18:59 2011 UTC (13 years, 3 months ago) by dmorgan
File size: 6923 byte(s)
Use guided template to report bugs
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?format=guided&classification=__all"><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 [% ELSE %]
138 href="http://identity.mageia.org/register"><span>Open a New Account</span></a>
139 [% END %]
140
141 <form id="quicksearchForm" name="quicksearchForm" action="buglist.cgi"
142 onsubmit="return checkQuicksearch(this);">
143 <div>
144 <input id="quicksearch_main" type="text" name="quicksearch"
145 onfocus="quicksearchHelpText(this.id, 'hide');"
146 onblur="quicksearchHelpText(this.id, 'show');"
147 >
148 <input id="find" type="submit" value="Quick Search">
149 <ul class="additional_links" id="quicksearch_links">
150 <li>
151 <a href="page.cgi?id=quicksearch.html">Quick Search help</a>
152 </li>
153 <li class="bz_default_hidden" id="quicksearch_plugin">
154 |
155 <a href="javascript:window.external.AddSearchProvider('[% urlbase FILTER html %]search_plugin.cgi')">
156 Install the Quick Search plugin
157 </a>
158 </li>
159 </ul>
160 <ul class="additional_links">
161 <li>
162 <a href="[% docs_urlbase FILTER html %]using.html">
163 [%- terms.Bugzilla %] User's Guide</a>
164 </li>
165 <li>
166 |
167 <a href="page.cgi?id=release-notes.html">Release Notes</a>
168 </li>
169 </ul>
170 </div>
171 </form>
172 <div class="outro">[% Hook.process('outro') %]</div>
173 </td>
174 </tr>
175 </table>
176 </div>
177
178 [% PROCESS global/footer.html.tmpl %]

  ViewVC Help
Powered by ViewVC 1.1.30