mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
apps, system: Remove modules and merge into main
- Remove apps and system modules and merge their views into main views. - Move main_menu from cfg into menu.py. - Remove dependencies of other modules on apps and system modules. - Update tests. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
1 parent
184bced823
commit
ee7cc98fee
64 files changed
+164
-354
No files matched your search
@@ -23,6 +23,7 @@ from django.utils.translation import ugettext as _, ugettext_noop
|
||||
import re
|
||||
|
||||
from plinth import cfg
|
||||
from plinth.menu import main_menu
|
||||
from plinth.utils import is_user_admin
|
||||
|
||||
|
||||
@@ -40,7 +41,7 @@ def common(request):
|
||||
active_menu_urls = [request.path[:index + 1] for index in slash_indices]
|
||||
return {
|
||||
'cfg': cfg,
|
||||
'submenu': cfg.main_menu.active_item(request),
|
||||
'submenu': main_menu.active_item(request),
|
||||
'active_menu_urls': active_menu_urls,
|
||||
'box_name': _(cfg.box_name),
|
||||
'user_is_admin': is_user_admin(request, True)
|
||||
|
||||
Reference in new issue
Block a user