- Make Mayan behave like a Single Page App by using partials.
- Add URI.js, Ajax form. - Split base.js into mayan_app.js, mayan_image.js, partial_navigation.js. - Add a HOME_VIEW setting. Use it for the default view to be loaded. - New template loading order root.html -> base.html -> any template. root.html is only loaded once. Other templates are loaded and merged with base.html via ajax load. - Fix bug in document page view. Was storing the URL and the querystring as a single url variable. Signed-off-by: Eric Riggs <ericriggs42@gmail.com>
This commit is contained in:
committed by
Roberto Rosario
parent
e4f61b3ad8
commit
f3f4dcd84a
@@ -9,12 +9,13 @@ from .views import (
|
||||
CurrentUserLocaleProfileDetailsView, CurrentUserLocaleProfileEditView,
|
||||
FaviconRedirectView, FilterResultListView, FilterSelectView, HomeView,
|
||||
LicenseView, ObjectErrorLogEntryListClearView, ObjectErrorLogEntryListView,
|
||||
PackagesLicensesView, SetupListView, ToolsListView,
|
||||
PackagesLicensesView, RootView, SetupListView, ToolsListView,
|
||||
multi_object_action_view
|
||||
)
|
||||
|
||||
urlpatterns = [
|
||||
url(r'^$', HomeView.as_view(), name='home'),
|
||||
url(r'^$', RootView.as_view(), name='root'),
|
||||
url(r'^home/$', HomeView.as_view(), name='home'),
|
||||
url(r'^about/$', AboutView.as_view(), name='about_view'),
|
||||
url(
|
||||
r'^check_version/$', CheckVersionView.as_view(),
|
||||
|
||||
@@ -272,6 +272,11 @@ class PackagesLicensesView(SimpleView):
|
||||
}
|
||||
|
||||
|
||||
class RootView(SimpleView):
|
||||
extra_context = {'home_view': settings.HOME_VIEW}
|
||||
template_name = 'appearance/root.html'
|
||||
|
||||
|
||||
class SetupListView(TemplateView):
|
||||
template_name = 'appearance/generic_list_horizontal.html'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user