summaryrefslogtreecommitdiffstats
path: root/template/en/default/index.html.tmpl
blob: eb1cbbd58a1c115aebd38dcdf686c0e086ae03fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
[%# 1.0@bugzilla.org %]
[%# -*- 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>
  #                 Jacob Steenhagen <jake@bugzilla.org>
  #                 Vitaly Harisov  <vitaly@rathedg.com>
  #%]

[%# INTERFACE:
  # This template has no interface.
  #%]

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

[% title = BLOCK %]
[% terms.Bugzilla %] Main Page
[% END %]
[% style_urls = [ "skins/standard/index.css" ] %]
[% PROCESS global/header.html.tmpl %]


<script type="text/javascript">
<!--
function addSidebar() {
  if ((typeof window.sidebar == "object") && (typeof window.sidebar.addPanel == "function"))
  {
    var sidebarname=window.location.host;
    if (!/bug/i.test(sidebarname))
      sidebarname="[% terms.Bugzilla %] "+sidebarname;
    window.sidebar.addPanel (sidebarname, "[% Param('urlbase') %]sidebar.cgi", "");
  }
  else
  {
    var rv = window.confirm ("Your browser does not support the sidebar extension.  " + "Would you like to upgrade now?");
    if (rv)
      document.location.href = "http://www.mozilla.org/";
  }
}
//-->
</script>


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

  <p>This is where we put in lots of nifty words explaining all about [% terms.Bugzilla %].</p>

  <p>But it all boils down to a choice of:</p>
  <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>
[% IF user.id %]
    <li id="userprefs"><a href="userprefs.cgi">Change password or user preferences</a></li>
  [% IF user.get_flag('can_logout') %]
    <li id="logout"><a href="relogin.cgi">Log out [% user.login FILTER html %]</a></li>
  [% END %]
[% ELSE %]
    [% PROCESS "account/auth/login-small.html.tmpl" %]
  [% IF Param('createemailregexp') %]
    <li id="account"><a href="createaccount.cgi">Open a new [% terms.Bugzilla %] account</a></li>
  [% END %]
[% END %]
    <li id="sidebar"><a href="javascript:addSidebar()">Add to Sidebar</a> (requires a Mozilla browser like Mozilla Firefox)</li>

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

  </ul>

  <form id="show-bug" name="f" action="show_bug.cgi" method="get"
      onsubmit="QuickSearch(f.id.value); return false;">
  <div>
    <p>Enter [% terms.abug %] # or some search terms:</p>
    <input id="text" type="text" name="id">
    <input id="show" type="submit" value="Show">
    <a href="quicksearch.html">[Help]</a>
  </div>
  </form>

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

<script type="text/javascript" src="localconfig.js"></script>
<script type="text/javascript" src="quicksearch.js"></script>
<script type="text/javascript">
<!--
document.forms['f'].id.focus();
//-->
</script>

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