summaryrefslogtreecommitdiffstats
path: root/template/en/default/index.html.tmpl
blob: 6dbdabc0c397579cf91353e174d17a7564c8c6ba (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
109
110
111
112
113
114
115
116
117
118
119
120
[%# -*- 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>
  #                 Guy Pyrzak <guy.pyrzak@gmail.com>
  #%]

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

[% USE Bugzilla %]
[% PROCESS global/header.html.tmpl
   title = "$terms.Bugzilla Main Page"
   header = "Main Page"
   style_urls = [ 'skins/standard/index.css' ]
   no_yui = 1
   og_image = "extensions/OpenGraph/web/moz-social-bw-rgb-1200x1200.png"
%]

<div id="page-index">
  <table>
    <tr>
      <td>
        <h1 id="welcome"> Welcome to [% terms.Bugzilla %]</h1>
        <div class="intro">[% Hook.process('intro') %]</div>
        <ul id="tiles">
          [% IF Param('docs_urlbase') %]
          <li id="tile-docs">
            <a href="[% docs_urlbase FILTER html %]">
              <span class="icon" aria-hidden="true"></span>
              <span class="label">Documentation</span>
            </a>
          </li>
          [% END %]
          <li id="tile-search">
            <a href="query.cgi">
              <span class="icon" aria-hidden="true"></span>
              <span class="label">Advanced Search</span>
            </a>
          </li>
          <li id="tile-new-bug">
            <a href="enter_bug.cgi">
              <span class="icon" aria-hidden="true"></span>
              <span class="label">New [% terms.Bug %]</span>
            </a>
          </li>
          [% IF user.id %]
          <li id="tile-prefs">
            <a href="userprefs.cgi">
              <span class="icon" aria-hidden="true"></span>
              <span class="label">Preferences</span>
            </a>
          </li>
          [% ELSIF Param('createemailregexp') && user.authorizer.user_can_create_account %]
          <li id="tile-new-account">
            <a href="createaccount.cgi">
              <span class="icon" aria-hidden="true"></span>
              <span class="label">New Account</span>
            </a>
          </li>
          [% ELSE %]
          <li id="tile-login">
            <a href="?GoAheadAndLogIn=1">
              <span class="icon" aria-hidden="true"></span>
              <span class="label">Log In</span>
            </a>
          </li>
          [% END %]
        </ul>
        <form id="quicksearchForm" name="quicksearchForm" action="buglist.cgi" data-no-csrf>
          <div>
            <input id="quicksearch_main" type="text" name="quicksearch" autofocus
              placeholder="Enter [% terms.abug %] number or some search terms"
              title="Quick Search">
            <input id="find" type="submit" value="Quick Search">
            <ul class="additional_links" id="quicksearch_links">
              <li>
                <a href="page.cgi?id=quicksearch.html">Quick Search help</a>
              </li>
              <li class="bz_default_hidden" id="quicksearch_plugin">
                |
                <a href="javascript:window.external.AddSearchProvider('[% urlbase FILTER html %]search_plugin.cgi')">
                 Install the Quick Search plugin
                </a>
              </li>
            </ul>
            <ul class="additional_links">
              <li>
                <a href="page.cgi?id=etiquette.html">[%- terms.Bugzilla %] Etiquette</a>
              </li>
              <li>
                | <a href="[% terms.BugWritingGuidelinesURL %]">[%- terms.Bug %] Writing Guidelines</a>
              </li>
              [% Hook.process('additional_links') %]
            </ul>
          </div>
        </form>
        <div class="outro">[% Hook.process('outro') %]</div>
      </td>
    </tr>
  </table>
</div>

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