diff --git a/docs/_static/mayan-login.png b/docs/_static/mayan-login.png deleted file mode 100644 index 65673aa303..0000000000 Binary files a/docs/_static/mayan-login.png and /dev/null differ diff --git a/docs/_static/no-icons.png b/docs/_static/no-icons.png deleted file mode 100644 index d00eec2d62..0000000000 Binary files a/docs/_static/no-icons.png and /dev/null differ diff --git a/docs/_static/themes.png b/docs/_static/themes.png deleted file mode 100644 index 47ef20d00d..0000000000 Binary files a/docs/_static/themes.png and /dev/null differ diff --git a/docs/topics/customization.rst b/docs/topics/customization.rst index 9598ccdd3a..d542a81c7b 100644 --- a/docs/topics/customization.rst +++ b/docs/topics/customization.rst @@ -2,32 +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 - ------------- -Login screen ------------- -The amount of information presented at the login screen can also be restricted -for security or design reasons using :setting:`WEB_THEME_VERBOSE_LOGIN` -configuration option. - -.. image:: ../_static/mayan-login.png - :alt: mayan login screen - ----------- Home screen ----------- @@ -36,14 +10,4 @@ a home screen. For these kind of situations **Mayan EDMS** has the :setting:`MAIN_DISABLE_HOME_VIEW` configuration option, which will cause users to land on their ``recent document list`` as soon as they log in. ------ -Icons ------ -Some themes such as ``default`` might be more visually appealing to some -people without the menu icons, for this **Mayan EDMS** provides the -:setting:`MAIN_DISABLE_ICONS` configuration option. - -.. image:: ../_static/no-icons.png - :alt: mayan screens with out icons - .. _`Andrea Franz's excellent web app template`: https://github.com/pilu/web-app-theme diff --git a/docs/topics/settings.rst b/docs/topics/settings.rst index 8238d22e46..55d288d1d1 100644 --- a/docs/topics/settings.rst +++ b/docs/topics/settings.rst @@ -459,29 +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``. - - -.. setting:: WEB_THEME_VERBOSE_LOGIN - -**WEB_THEME_VERBOSE_LOGIN** - -Default: ``True`` - -Display extra information in the login screen. - - Main ==== @@ -494,15 +471,6 @@ Default: ``False`` Disable the home view and redirect users straight to the recent document list as soon as they log in. -.. setting:: MAIN_DISABLE_ICONS - -**MAIN_DISABLE_ICONS** - -Default: ``False`` - -Turns off navigation links' icons. - - User management =============== diff --git a/mayan/apps/main/__init__.py b/mayan/apps/main/__init__.py index 1217564169..9616f5f183 100644 --- a/mayan/apps/main/__init__.py +++ b/mayan/apps/main/__init__.py @@ -7,7 +7,7 @@ from navigation.api import register_top_menu from project_setup.api import register_setup from project_tools.api import register_tool -from .links import admin_site, diagnostics, maintenance_menu, sentry +from .links import admin_site, diagnostics, maintenance_menu from .settings import DISABLE_HOME_VIEW if not DISABLE_HOME_VIEW: @@ -18,7 +18,3 @@ if 'django.contrib.admin' in django_settings.INSTALLED_APPS: register_tool(diagnostics) register_tool(maintenance_menu) - -# TODO: Remove this -if 'sentry' in django_settings.INSTALLED_APPS: - register_tool(sentry) diff --git a/mayan/apps/main/links.py b/mayan/apps/main/links.py index b673ec6607..3b692fad49 100644 --- a/mayan/apps/main/links.py +++ b/mayan/apps/main/links.py @@ -7,5 +7,4 @@ def is_superuser(context): maintenance_menu = {'text': _(u'Maintenance'), 'view': 'main:maintenance_menu', 'famfam': 'wrench', 'icon': 'wrench.png'} diagnostics = {'text': _(u'Diagnostics'), 'view': 'main:diagnostics', 'famfam': 'pill', 'icon': 'pill.png'} -sentry = {'text': _(u'Sentry'), 'view': 'main:sentry', 'famfam': 'bug', 'icon': 'bug.png', 'condition': is_superuser} admin_site = {'text': _(u'Admin site'), 'view': 'admin:index', 'famfam': 'keyboard', 'icon': 'keyboard.png', 'condition': is_superuser} diff --git a/mayan/apps/main/settings.py b/mayan/apps/main/settings.py index e331ccd717..907ddfbf5a 100644 --- a/mayan/apps/main/settings.py +++ b/mayan/apps/main/settings.py @@ -11,20 +11,10 @@ register_setting( default=False, ) -register_setting( - namespace=u'main', - module=u'main.settings', - name=u'DISABLE_ICONS', - global_name=u'MAIN_DISABLE_ICONS', - default=False, -) - 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}, - {'name': u'VERBOSE_LOGIN', 'global_name': u'MAIN_VERBOSE_LOGIN', 'default': True, 'description': _(u'Display extra information in the login screen.')}, ] ) diff --git a/mayan/apps/main/templates/main/base.html b/mayan/apps/main/templates/main/base.html index fe3ff69760..2c933ad34a 100644 --- a/mayan/apps/main/templates/main/base.html +++ b/mayan/apps/main/templates/main/base.html @@ -36,7 +36,7 @@ {% compress css %} - +