From: lpsolit%gmail.com <> Date: Tue, 22 Aug 2006 04:27:41 +0000 (+0000) Subject: Bug 349361: Implement a Welcome page for admins on a fresh installation - Patch by... X-Git-Tag: bugzilla-2.23.3~124 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1271f8d95c86c189a3b66ce8247f69682177ea14;p=thirdparty%2Fbugzilla.git Bug 349361: Implement a Welcome page for admins on a fresh installation - Patch by Frédéric Buclin r=wurblzap a=myk --- diff --git a/index.cgi b/index.cgi index 9c3b6be967..7d1525b58f 100755 --- a/index.cgi +++ b/index.cgi @@ -57,6 +57,13 @@ my $vars = {}; print $cgi->header(); if ($user->in_group('admin')) { + # If 'urlbase' is not set, display the Welcome page. + unless (Bugzilla->params->{'urlbase'}) { + $template->process('welcome-admin.html.tmpl') + || ThrowTemplateError($template->error()); + exit; + } + # Inform the administrator about new releases, if any. $vars->{'release'} = Bugzilla::Update::get_notifications(); } diff --git a/skins/standard/index.css b/skins/standard/index.css index b763610059..90e33e4ddd 100644 --- a/skins/standard/index.css +++ b/skins/standard/index.css @@ -79,4 +79,9 @@ font-size: 80%; font-weight: normal; } + + #welcome-admin a + { + font-weight: bold; + } /* index page (end) */ diff --git a/template/en/default/welcome-admin.html.tmpl b/template/en/default/welcome-admin.html.tmpl new file mode 100644 index 0000000000..b8fe99c1da --- /dev/null +++ b/template/en/default/welcome-admin.html.tmpl @@ -0,0 +1,90 @@ +[%# 1.0@bugzilla.org %] +[%# 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. + # + # Contributor(s): Frédéric Buclin + #%] + +[%# INTERFACE: + # none + #%] + +[% PROCESS global/variables.none.tmpl %] + +[% title = BLOCK %]Welcome to [% terms.Bugzilla %][% END %] + +[% PROCESS global/header.html.tmpl + title = title + h3 = "version $constants.BUGZILLA_VERSION" + style_urls = [ 'skins/standard/index.css' ] +%] + +
+

Welcome, [% user.identity FILTER html %].

+ +

You are seeing this page because some of the core parameters have not been set up yet. + The goal of this page is to inform you about the last steps required to set up + your installation correctly.

+ +

As an administrator, several administrative links are available at the bottom of + this page. These links will always be visible, on all pages. Among these links, + you must visit at least the Parameters one, + which is the page from where you can set all important parameters for this installation. + By clicking this link, you will be able to set among others:

+ +
    +
  • maintainer, the person + responsible for this installation if something is running wrong.
  • + +
  • urlbase, which is the URL + pointing to this installation and which will be used in emails (which is also the + reason you see this page: as long as this parameter is not set, you will see this + page again and again).
  • + +
  • cookiepath is important + for your browser to manage your cookies correctly.
  • + +
  • utf8 will let you encode all + texts into UTF-8, if desired (it is strongly recommended to keep this parameter + turned on).
  • +
+ +

Also important are the following parameters:

+ +
    +
  • requirelogin, if turned + on, will protect your installation from users having no account on this installation. + In other words, users who are not explicitly authenticated with a valid account + cannot see any data. This is what you want if you want to keep your data private.
  • + +
  • createemailregexp + defines which users are allowed to create an account on this installation. If set + to ".*" (the default), everybody is free to create his own account. If set to + "@mycompany.com$", only users having an account @mycompany.com will be allowed to + create an account. If left blank, users will not be able to create accounts themselves; + only an administrator will be able to create one for them. If you want a private + installation, you must absolutely set this parameter to something different from + the default.
  • + +
  • mail_delivery_method + defines the method used to send emails, such as sendmail or SMTP. You have to set + it correctly to send emails.
  • +
+ +

+ After having set up all this, we recommend looking at [% terms.Bugzilla %]'s other + parameters as well at some time so that you understand what they do and whether you + want to modify their settings for your installation. +

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