Issue #56, Remove the MAIN_THEME configuration option

This commit is contained in:
Roberto Rosario
2014-10-02 17:42:44 -04:00
parent 1cd0e05f1f
commit 6e40e7e5a5
4 changed files with 1 additions and 32 deletions

View File

@@ -2,22 +2,6 @@
Customization
=============
The general appearance of **Mayan EDMS** can be customized entirely just
by changing a few settings.
------
Themes
------
**Mayan EDMS** uses `Andrea Franz's excellent web app template`_, which includes
several themes that could be used to adapt **Mayan EDMS**'s appearance to match
an organtization existing applications' look and feel.
The theme can be changed very easily by setting the :setting:`WEB_THEME_THEME`
configuration option to one of its valid values.
.. image:: ../_static/themes.png
:alt: themes
-----------
Home screen
-----------

View File

@@ -459,20 +459,6 @@ Default: ``5``
Maximum number of search queries to remember per user.
Web theme
=========
.. setting:: WEB_THEME_THEME
**WEB_THEME_THEME**
Default: ``activo``
CSS theme to apply, options are: ``amro``, ``bec``, ``bec-green``, ``blue``,
``default``, ``djime-cerulean``, ``drastic-dark``, ``kathleene``, ``olive``,
``orange``, ``red``, ``reidb-greenish`` and ``warehouse``.
Main
====

View File

@@ -23,7 +23,6 @@ register_settings(
namespace=u'main',
module=u'main.settings',
settings=[
{'name': u'THEME', 'global_name': u'MAIN_THEME', 'default': u'activo', 'description': _(u'CSS theme to apply, options are: amro, bec, bec-green, blue, default, djime-cerulean, drastic-dark, kathleene, olive, orange, red, reidb-greenish and warehouse.')},
{'name': u'ENABLE_SCROLL_JS', 'global_name': u'MAIN_ENABLE_SCROLL_JS', 'default': True, 'hidden': True},
]
)

View File

@@ -36,7 +36,7 @@
{% compress css %}
<link rel="stylesheet" href="{% static 'web_theme_media/stylesheets/base.css' %}" type="text/css" media="screen" />
<link rel="stylesheet" id="current-theme" href="{{ STATIC_URL }}web_theme_media/stylesheets/themes/{{ web_theme|default:'activo' }}/style.css" type="text/css" media="screen" />
<link rel="stylesheet" href="{% static 'web_theme_media/stylesheets/themes/activo/style.css' %}" type="text/css" media="screen" />
<style type="text/css">
.message span.dismiss {
padding:0 5px;