mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-28 08:03:36 +00:00
23 lines
698 B
Python
23 lines
698 B
Python
import cherrypy
|
|
from gettext import gettext as _
|
|
from plugin_mount import PagePlugin
|
|
import cfg
|
|
import util
|
|
|
|
sys_dir = "modules/installed/sys"
|
|
|
|
|
|
class Sys(PagePlugin):
|
|
order = 10
|
|
def __init__(self, *args, **kwargs):
|
|
PagePlugin.__init__(self, *args, **kwargs)
|
|
self.register_page("sys")
|
|
self.menu = cfg.main_menu.add_item(_("System"), "icon-cog", "/sys", 100)
|
|
self.menu.add_item(_("Configure"), "icon-cog", "/sys/config", 10)
|
|
self.menu.add_item(_("Users and Groups"), "icon-user", "/sys/users", 15)
|
|
|
|
@cherrypy.expose
|
|
def index(self):
|
|
return util.render_template(template='system',
|
|
title=_("System Configuration"))
|