|
Alain Reguera Delgado |
47b64b |
Customization
|
|
Alain Reguera Delgado |
47b64b |
=============
|
|
Alain Reguera Delgado |
46de3c |
|
|
Alain Reguera Delgado |
b8dbae |
This customization modifies Mantis default visual style to use The
|
|
Alain Reguera Delgado |
b8dbae |
CentOS Project visual style. Once you install the customization
|
|
Alain Reguera Delgado |
b8dbae |
provided here, the visual transition between your mantis website and
|
|
Alain Reguera Delgado |
b8dbae |
other web sites customized the same way will be easy to recognize
|
|
Alain Reguera Delgado |
b8dbae |
because the implementation of common visual patterns (e.g.,
|
|
Alain Reguera Delgado |
b8dbae |
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 |
------------------+-----------------------------------------------
|
|
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 |
b8dbae |
$g_favicon_image = "/webenv/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 |
b8dbae |
The only problem I've found is the $g_favicon_image variable, which
|
|
Alain Reguera Delgado |
b8dbae |
doesn't work. So, if you want to have a favicon different from
|
|
Alain Reguera Delgado |
b8dbae |
Mantis's default, you need to overwrite Mantis' images/favicon.ico
|
|
Alain Reguera Delgado |
b8dbae |
file with the one you want to use. This is something you need to do
|
|
Alain Reguera Delgado |
b8dbae |
the next time you update the matnis package (unless the
|
|
Alain Reguera Delgado |
b8dbae |
$g_favicon_image variable gets alive).
|
|
Alain Reguera Delgado |
b8dbae |
|
|
Alain Reguera Delgado |
b8dbae |
Images affecting Mantis visual style were moved from images directory
|
|
Alain Reguera Delgado |
b8dbae |
inside the Mantis directory structure to /var/www/webenv/images
|
|
Alain Reguera Delgado |
b8dbae |
directory outside Mantis directory structure and made accessible
|
|
Alain Reguera Delgado |
b8dbae |
through /webenv http alias. Using images this way let us to re-use
|
|
Alain Reguera Delgado |
b8dbae |
them with other web applications that share the same visual style.
|
|
Alain Reguera Delgado |
b8dbae |
When a visual style update is required, we only need to change images
|
|
Alain Reguera Delgado |
b8dbae |
in a single place to propagate the new visual style to all
|
|
Alain Reguera Delgado |
b8dbae |
applications.
|
|
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
|