From 9ffccbf4fc35d09cf7600cc052e3c0491cd297c5 Mon Sep 17 00:00:00 2001 From: Dexter Morgan Date: Wed, 20 Feb 2013 22:21:44 +0000 Subject: Fix index page --- template/en/default/index.html.tmpl | 90 +++++++++++++++++-------------------- 1 file changed, 42 insertions(+), 48 deletions(-) diff --git a/template/en/default/index.html.tmpl b/template/en/default/index.html.tmpl index c7bcba3..e9e9214 100644 --- a/template/en/default/index.html.tmpl +++ b/template/en/default/index.html.tmpl @@ -1,36 +1,17 @@ -[%# -*- 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/ +[%# This Source Code Form is subject to the terms of the Mozilla Public + # License, v. 2.0. If a copy of the MPL was not distributed with this + # file, You can obtain one at http://mozilla.org/MPL/2.0/. # - # 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 - # Jacob Steenhagen - # Vitaly Harisov - # Guy Pyrzak + # This Source Code Form is "Incompatible With Secondary Licenses", as + # defined by the Mozilla Public License, v. 2.0. #%] [%# INTERFACE: # release: a hash containing data about new releases, if any. #%] -[% PROCESS global/variables.none.tmpl %] - - [% PROCESS global/header.html.tmpl - title = "Mageia Main Page" + title = "$terms.Bugzilla Main Page" header = "Main Page" header_addl_info = "version $constants.BUGZILLA_VERSION" style_urls = [ 'skins/standard/index.css' ] @@ -46,12 +27,6 @@ function onLoadActions() { } document.getElementById('quicksearch_top').focus(); } -function addSidebar() { - var sidebarname=window.location.host; - if (!/bug/i.test(sidebarname)) - sidebarname="[% terms.Bugzilla %] "+sidebarname; - window.sidebar.addPanel (sidebarname, "[% urlbase FILTER html %]sidebar.cgi", ""); -} var quicksearch_message = "Enter [% terms.abug %] # or some search terms"; function checkQuicksearch( form ) { @@ -98,18 +73,24 @@ YAHOO.util.Event.onDOMReady(onLoadActions); You can configure this notification from the Parameters page.

[% ELSIF release.error == "cannot_download" %] -

The local XML file '[% release.xml_file FILTER html %]' cannot be created. - Please make sure the web server can write in this directory and that you can access +

The remote file + [%~ constants.REMOTE_FILE FILTER html %] cannot be downloaded + (reason: [% release.reason FILTER html %]).
+ Either the remote server is temporarily unavailable, or your web server cannot access the web. If you are behind a proxy, set the proxy_url parameter correctly.

+ [% ELSIF release.error == "no_write" %] +

The local XML file '[% constants.LOCAL_FILE FILTER html %]' cannot be created + (reason: [% release.reason FILTER html %]).
+ Please make sure the web server can write into this directory. [% ELSIF release.error == "no_update" %] -

The local XML file '[% release.xml_file FILTER html %]' cannot be updated. +

The local XML file '[% constants.LOCAL_FILE FILTER html %]' cannot be updated. Please make sure the web server can edit this file.

[% ELSIF release.error == "no_access" %] -

The local XML file '[% release.xml_file FILTER html %]' cannot be read. +

The local XML file '[% constants.LOCAL_FILE FILTER html %]' cannot be read. Please make sure this file has the correct rights set on it.

[% ELSIF release.error == "corrupted" %] -

The local XML file '[% release.xml_file FILTER html %]' has an invalid XML format. +

The local XML file '[% constants.LOCAL_FILE FILTER html %]' has an invalid XML format. Please delete it and try accessing this page again.

[% ELSIF release.error == "unknown_parameter" %]

'[% Param("upgrade_notification") FILTER html %]' is not a valid notification @@ -125,23 +106,36 @@ YAHOO.util.Event.onDOMReady(onLoadActions);

Welcome to [% terms.Bugzilla %]

[% Hook.process('intro') %]
- File [% terms.aBug %] - - Search - - User Preferences - [% ELSE %] - href="http://identity.mageia.org/register">Open a New Account - [% END %] + +
+
    +
  • + File + [%= terms.aBug %] +
  • +
  • + Search +
  • +
  • + User Preferences + [% ELSIF Param('createemailregexp') + && user.authorizer.user_can_create_account + %] + href="http://identity.mageia.org/register">Open a New Account + [% ELSE %] + href="?GoAheadAndLogIn=1">Log In + [% END %] +
  • +
+
-- cgit v1.2.1