index.html.tmpl 6.48 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
[%# -*- 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 <terry@mozilla.org>
20
  #                 Jacob Steenhagen <jake@bugzilla.org>
21
  #                 Vitaly Harisov  <vitaly@rathedg.com>
22 23
  #%]

24
[%# INTERFACE:
25
  # release: a hash containing data about new releases, if any.
26 27
  #%]

28 29
[% PROCESS global/variables.none.tmpl %]

30 31 32

[% PROCESS global/header.html.tmpl
   title = "$terms.Bugzilla Main Page"
33 34
   header = "Main Page" 
   header_addl_info = "version $constants.BUGZILLA_VERSION"
35 36 37
   style_urls = [ 'skins/standard/index.css' ]
   onload = 'document.forms[\'f\'].quicksearch.focus();'
%]
38

39

40
<script type="text/javascript">
41 42
<!--
function addSidebar() {
43 44 45 46
  if ((typeof window.sidebar == "object") && (typeof window.sidebar.addPanel == "function"))
  {
    var sidebarname=window.location.host;
    if (!/bug/i.test(sidebarname))
47
      sidebarname="[% terms.Bugzilla %] "+sidebarname;
48
    window.sidebar.addPanel (sidebarname, "[% urlbase FILTER html %]sidebar.cgi", "");
49 50 51
  }
  else
  {
52
    var rv = window.confirm ("Your browser does not support the sidebar extension.  " + "Would you like to upgrade now?");
53
    if (rv)
54
      document.location.href = "http://www.mozilla.org/";
55 56
  }
}
57 58 59
//-->
</script>

60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
[% IF release %]
  <div id="new_release">
    [% IF release.data %]
      [% IF release.deprecated %]
        <p>[% terms.Bugzilla %] [%+ release.deprecated FILTER html %] is no longer
        supported. You are highly encouraged to upgrade in order to keep your
        system secure.</p>
      [% END %]

      <p>A new [% terms.Bugzilla %] version ([% release.data.latest_ver FILTER html %])
      is available at
      <a href="[% release.data.url FILTER html %]">[% release.data.url FILTER html %]</a>.<br>
      Release date: [% release.data.date FILTER html %]</p>

      <p class="notice">This message is only shown to logged in users with admin privs.
      You can configure this notification from the
      <a href="editparams.cgi?section=core#upgrade_notification">Parameters</a> page.</p>
77 78 79 80 81
    [% ELSIF release.error == "missing_package" %]
      <p>Missing package '[% release.package FILTER html %]'. This package is required to
      <a href="editparams.cgi?section=core#upgrade_notification">notify you about new releases</a>.</p>
    [% ELSIF release.error == "cannot_download" %]
      <p>The local XML file '[% release.xml_file FILTER html %]' cannot be created.
82 83 84
      Please make sure the web server can write in this directory and that you can access
      the web. If you are behind a proxy, set the
      <a href="editparams.cgi?section=core#proxy_url">proxy_url</a> parameter correctly.</p>
85 86 87 88 89
    [% ELSIF release.error == "no_update" %]
      <p>The local XML file '[% release.xml_file FILTER html %]' cannot be updated.
      Please make sure the web server can edit this file.</p>
    [% ELSIF release.error == "no_access" %]
      <p>The local XML file '[% release.xml_file FILTER html %]' cannot be read.
90
      Please make sure this file has the correct rights set on it.</p>
91 92 93 94 95 96 97 98 99 100
    [% ELSIF release.error == "corrupted" %]
      <p>The local XML file '[% release.xml_file FILTER html %]' has an invalid XML format.
      Please delete it and try accessing this page again.</p>
    [% ELSIF release.error == "unknown_parameter" %]
      <p>'[% Param("upgrade_notification") FILTER html %]' is not a valid notification
      parameter. Please check this parameter in the
      <a href="editparams.cgi?section=core#upgrade_notification">Parameters</a> page.</p>
    [% END %]
  </div>
[% END %]
101

102
<div id="page-index">
103
  <div class="intro"></div>
104

105 106 107 108 109 110 111
  <p>Welcome to [% terms.Bugzilla %]. To see what's new in this version
    of [% terms.Bugzilla %], see the 
    <a href="page.cgi?id=release-notes.html">release notes</a>!
    You may also want to read the 
    <a href="[% Param('docs_urlbase') FILTER html %]using.html">
    [%- terms.Bugzilla %] User's Guide</a> to find out more about 
    [%+ terms.Bugzilla %] and how to use it.</p>
112

113
  <p>Most common actions:</p>
114 115 116 117
  <ul>
    <li id="query"><a href="query.cgi">Search existing [% terms.bug %] reports</a></li>
    <li id="enter-bug"><a href="enter_bug.cgi">Enter a new [% terms.bug %] report</a></li>
    <li id="report"><a href="report.cgi">Summary reports and charts</a></li>
118
[% IF user.id %]
119
    <li id="userprefs"><a href="userprefs.cgi">Change password or user preferences</a></li>
120
  [% IF user.authorizer.can_logout %]
121
    <li id="logout"><a href="relogin.cgi">Log out [% user.login FILTER html %]</a></li>
122
  [% END %]
123
[% ELSIF user.authorizer.can_login %]
124
  </ul>
125
    [% PROCESS "account/auth/login-small.html.tmpl" %]
126
  <ul>
127
  [% IF Param('createemailregexp') && user.authorizer.user_can_create_account %]
128
    <li id="account"><a href="createaccount.cgi">Open a new [% terms.Bugzilla %] account</a></li>
129
  [% END %]
130
[% END %]
131
    <li id="sidebar"><a href="javascript:addSidebar()">Add to Sidebar</a> (requires a Mozilla browser like Mozilla Firefox)</li>
132
    <li id="quick_search_plugin">
133
      <a href="javascript:window.external.AddSearchProvider('[% urlbase FILTER html %]search_plugin.cgi')">Install
134 135 136
      the Quick Search plugin</a> (requires Firefox 2 or Internet Explorer 7)
    </li>

137 138 139 140

    [%# List items of links to more things users can do on this installation. %]
    [% Hook.process("links") %]

141 142
  </ul>

143
  <form id="f" name="f" action="buglist.cgi" method="get"
144 145 146
        onsubmit="if (this.quicksearch.value == '')
                  { alert('Please enter one or more search terms first.');
                    return false; } return true;">
147 148
  <div>
    <p>Enter [% terms.abug %] # or some search terms:</p>
149 150 151
    <input id="quicksearch" type="text" name="quicksearch">
    <input id="find" type="submit" value="Find">
    <a href="page.cgi?id=quicksearch.html">[Help]</a>
152
  </div>
153
  </form>
154 155 156

  <div class="outro"></div>
</div>
157

158
[% PROCESS global/footer.html.tmpl %]