Blame Artworks/Webenv/Mantis/1.1.8-5.el5/README

Alain Reguera Delgado 47b64b
Customization
Alain Reguera Delgado 47b64b
=============
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 47b64b
The mantis' customization provided here is part of the monolithic
Alain Reguera Delgado 47b64b
visual style The CentOS Project is attached to. Once you install the
Alain Reguera Delgado 47b64b
mantis' customization provided here, the visual transition between the
Alain Reguera Delgado 47b64b
mantis website and other CentOS web sites already customized will be
Alain Reguera Delgado 47b64b
nice and easy to recognize because of the common visual patterns
Alain Reguera Delgado 47b64b
(e.g., background, header, logo, favicon and footer).
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
How To Install 
Alain Reguera Delgado 46de3c
--------------
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 47b64b
1. yum install mantis-1.1.8-5.el5
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 47b64b
   NOTE: This require you to have EPEL repository installed in your
Alain Reguera Delgado 47b64b
   CentOS distribution. To know how to install the EPEL repository
Alain Reguera Delgado 46de3c
   read http://wiki.centos.org/AdditionalResources/Repositories
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
2. Configure mantisBT application and be sure it works as you expect.
Alain Reguera Delgado 47b64b
In this step you create the database you'll use to store data, connect
Alain Reguera Delgado 47b64b
the mantis application with it and install the tables using the web
Alain Reguera Delgado 47b64b
interface.
Alain Reguera Delgado 47b64b
Alain Reguera Delgado 47b64b
3. Copy the theme files provided in this customization into your
Alain Reguera Delgado 47b64b
system's mantisBT tree, as root user.  The source-target relation
Alain Reguera Delgado 47b64b
between files is shown in the following table:
Alain Reguera Delgado 47b64b
Alain Reguera Delgado 47b64b
------------------+-----------------------------------------------
Alain Reguera Delgado 47b64b
SOURCE            | TARGET
Alain Reguera Delgado 47b64b
------------------+-----------------------------------------------
Alain Reguera Delgado 47b64b
bottom.html       | /usr/share/mantis/themes/centos/bottom.html
Alain Reguera Delgado 47b64b
top.html          | /usr/share/mantis/themes/centos/top.html
Alain Reguera Delgado 47b64b
stylesheet.css    | /usr/share/mantis/themes/centos/stylesheet.css
Alain Reguera Delgado 47b64b
images/logo.png   | /usr/share/mantis/themes/centos/images/logo.png
Alain Reguera Delgado 47b64b
images/favicon.ico| /usr/share/mantis/themes/centos/images/favicon.png
Alain Reguera Delgado 47b64b
images/h2.png     | /usr/share/mantis/themes/centos/images/h2.png
Alain Reguera Delgado 47b64b
images/header.png | /usr/share/mantis/themes/centosimages/header.png
Alain Reguera Delgado 47b64b
------------------+-----------------------------------------------
Alain Reguera Delgado 47b64b
Alain Reguera Delgado 47b64b
This theme also provides a customized version of mantis_offline.php
Alain Reguera Delgado 47b64b
file that you can copy into /etc/mantis/ directory when you want to
Alain Reguera Delgado 47b64b
get mantis' site off-line for maintenance.
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
4. Check file permissions. Be sure these files are readable by apache
Alain Reguera Delgado 46de3c
web server. For example, if both user and group for these files are
Alain Reguera Delgado 46de3c
set to `root', then the `-rw-r--r--' rights are ok for all these
Alain Reguera Delgado 46de3c
files.
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
5. Update your configuration file. Be sure it has the following
Alain Reguera Delgado 46de3c
information:
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
	# --- html variables --------------
Alain Reguera Delgado 46de3c
	$g_window_title 	    = "The CentOS Bugs";
Alain Reguera Delgado 47b64b
	$g_top_include_page 	= "themes/centos/top.html";
Alain Reguera Delgado 47b64b
	$g_bottom_include_page 	= "themes/centos/bottom.html";
Alain Reguera Delgado 47b64b
	$g_css_include_file 	= "themes/centos/stylesheet.css";
Alain Reguera Delgado 47b64b
	$g_favicon_image 	    = "themes/centos/images/favicon.ico";
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
6. Point your browser to mantisBT install and reload it to see the
Alain Reguera Delgado 46de3c
changes.
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
Package Updates
Alain Reguera Delgado 46de3c
---------------
Alain Reguera Delgado 46de3c
An important characteristic of this theme is that all modifications
Alain Reguera Delgado 46de3c
take place in the configuration file and CSS files. No PHP files
Alain Reguera Delgado 46de3c
inside the mantis package needs to be modified (except the
Alain Reguera Delgado 46de3c
configuration file, of course.). This way you can update the mantis
Alain Reguera Delgado 47b64b
package without loosing the visual style you already set for it.
Alain Reguera Delgado 47b64b
Alain Reguera Delgado 47b64b
The only problem is the $g_favicon_image variable, it doesn't work.
Alain Reguera Delgado 47b64b
So, if you want to have a favicon different to Mantis's default, you
Alain Reguera Delgado 47b64b
need to overwrite the images/favicon.ico file with the one you want to
Alain Reguera Delgado 47b64b
use. This is something you need to do the next time you update the
Alain Reguera Delgado 47b64b
matnis package (unless the $g_favicon_image variable gets alive).
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
Feedback
Alain Reguera Delgado 46de3c
--------
Alain Reguera Delgado 46de3c
Your comments and suggestions are very welcome. In fact, we need them
Alain Reguera Delgado 46de3c
to make this work better. Thus, feel free to send e-mails to
Alain Reguera Delgado 46de3c
centos-devel@centos.org mailing list or fill a ticket at
Alain Reguera Delgado 46de3c
https://projects.centos.org/trac/artwork/newticket page.
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
Authors
Alain Reguera Delgado 46de3c
-------
Alain Reguera Delgado 47b64b
The following people have contributed efforts to this theme:
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
    * Alain Reguera Delgado <alain.reguera@gmail.com>, 2013