Issue #56, Remove the MAIN_DISABLE_HOME configuration settings
Upon login users now go directly to the documents tab
This commit is contained in:
@@ -63,7 +63,7 @@ Release notes
|
||||
Customization and fine tunning
|
||||
==============================
|
||||
|
||||
:doc:`Settings <topics/settings>` | :doc:`Customization <topics/customization>`
|
||||
:doc:`Settings <topics/settings>`
|
||||
|
||||
For developers
|
||||
==============
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
=============
|
||||
Customization
|
||||
=============
|
||||
|
||||
-----------
|
||||
Home screen
|
||||
-----------
|
||||
Sometimes users just want to go directly to work and not just be greeted with
|
||||
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.
|
||||
|
||||
.. _`Andrea Franz's excellent web app template`: https://github.com/pilu/web-app-theme
|
||||
@@ -18,7 +18,6 @@ Introductions to all the key parts of Mayan EDMS you'll need to know:
|
||||
tags
|
||||
ocr
|
||||
settings
|
||||
customization
|
||||
development
|
||||
documentation
|
||||
translations
|
||||
|
||||
@@ -433,18 +433,6 @@ Default: ``5``
|
||||
Maximum number of search queries to remember per user.
|
||||
|
||||
|
||||
Main
|
||||
====
|
||||
|
||||
.. setting:: MAIN_DISABLE_HOME_VIEW
|
||||
|
||||
**MAIN_DISABLE_HOME_VIEW**
|
||||
|
||||
Default: ``False``
|
||||
|
||||
Disable the home view and redirect users straight to the recent document list as soon as they log in.
|
||||
|
||||
|
||||
User management
|
||||
===============
|
||||
|
||||
|
||||
@@ -8,10 +8,6 @@ from project_setup.api import register_setup
|
||||
from project_tools.api import register_tool
|
||||
|
||||
from .links import admin_site, diagnostics, maintenance_menu
|
||||
from .settings import DISABLE_HOME_VIEW
|
||||
|
||||
if not DISABLE_HOME_VIEW:
|
||||
register_top_menu('home', link={'text': _(u'Home'), 'view': 'main:home', 'famfam': 'house'}, position=0)
|
||||
|
||||
if 'django.contrib.admin' in django_settings.INSTALLED_APPS:
|
||||
register_setup(admin_site)
|
||||
|
||||
@@ -3,14 +3,6 @@
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
from smart_settings.api import register_setting, register_settings
|
||||
|
||||
register_setting(
|
||||
namespace=u'main',
|
||||
module=u'main.settings',
|
||||
name=u'DISABLE_HOME_VIEW',
|
||||
global_name=u'MAIN_DISABLE_HOME_VIEW',
|
||||
default=False,
|
||||
)
|
||||
|
||||
register_settings(
|
||||
namespace=u'main',
|
||||
module=u'main.settings',
|
||||
|
||||
@@ -10,15 +10,10 @@ from django.utils.translation import ugettext_lazy as _
|
||||
from permissions.models import Permission
|
||||
|
||||
from .api import diagnostics, tools
|
||||
from .settings import DISABLE_HOME_VIEW
|
||||
|
||||
|
||||
def home(request):
|
||||
if DISABLE_HOME_VIEW:
|
||||
return HttpResponseRedirect(reverse('documents:document_list_recent'))
|
||||
else:
|
||||
return render_to_response('main/home.html', {},
|
||||
context_instance=RequestContext(request))
|
||||
return HttpResponseRedirect(reverse('documents:document_list_recent'))
|
||||
|
||||
|
||||
def maintenance_menu(request):
|
||||
|
||||
Reference in New Issue
Block a user