- 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:
Eric Riggs
2018-04-01 19:54:15 -04:00
committed by Roberto Rosario
parent e4f61b3ad8
commit f3f4dcd84a
130 changed files with 25110 additions and 432 deletions
+3 -2
View File
@@ -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(),
+5
View File
@@ -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'