* started workin on 'navbar' module * changed bootstrap theme to bootswatch/Simplex * big work on navbar logic * starting creating menus using navbar * converted app views to new Wepage decorator, updated navbar * reimplemented DernieresMaraudes as a dropdown instead of ContextMixin * reorganised static files, minor code cleanups * turned Link.href into lazy-evaluated property * collapsed 'navbar' module into 'website', dynamic building of ApplicationMenu subclasses * minor cleanup * blah blah blah * added way to add admin/non-admin links * minor style change : red border for active page instead of all dropdowns * deleted file * prepare adding removing menu templates files, being replaced by code * essayé de généraliser le code pour les modaux bootstrap, non testé git status * more preparation and thinking on navbar app_menus logic... * added LinkManager and DropdownManager, getting closer... * small fix in DropdownManager.__get__ * boosted up work: keep it simple so it can be merged fast, major layout changes * added month filter on maraudes:liste * added 'as_icon' filter to display boolean/null values as bootstrap icons * remove inactive user from planning selection * removed all unused 'menu' templates * set up django_select2 to use static files * small fix after review
25 lines
934 B
Python
25 lines
934 B
Python
from django.conf.urls import include, url
|
|
|
|
from django.contrib.auth import views as auth_views
|
|
|
|
from .views import Index, login_view
|
|
from maraudes import urls as maraudes_urls
|
|
from suivi import urls as suivi_urls
|
|
from sujets import urls as sujets_urls
|
|
from utilisateurs import urls as utilisateurs_urls
|
|
|
|
urlpatterns = [
|
|
# Authentification
|
|
url(r'^$', Index.as_view(), name="index"),
|
|
url(r'^login/$', login_view),
|
|
url(r'^logout/$', auth_views.logout, {
|
|
'template_name': 'logout.html',
|
|
'next_page': 'index',
|
|
}, name="logout"),
|
|
# Applications
|
|
url(r'^maraudes/', include(maraudes_urls, namespace="maraudes")),
|
|
url(r'^suivi/', include(suivi_urls, namespace="suivi")),
|
|
url(r'^sujets/', include(sujets_urls, namespace="sujets")),
|
|
url(r'^utilisateurs/', include(utilisateurs_urls, namespace="utilisateurs")),
|
|
]
|