mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-13 10:30:16 +00:00
- Move enabled module symlinks to 'modules/enabled' directory. - Make all modules properly importable - Import modules instead of their symlinks
19 lines
577 B
Python
19 lines
577 B
Python
import cherrypy
|
|
from gettext import gettext as _
|
|
from plugin_mount import PagePlugin
|
|
import cfg
|
|
import util
|
|
|
|
|
|
class Apps(PagePlugin):
|
|
def __init__(self, *args, **kwargs):
|
|
PagePlugin.__init__(self, *args, **kwargs)
|
|
self.register_page("apps")
|
|
self.menu = cfg.main_menu.add_item("Apps", "icon-download-alt", "/apps", 80)
|
|
self.menu.add_item("Chat", "icon-comment", "/../jwchat", 30)
|
|
|
|
@cherrypy.expose
|
|
def index(self):
|
|
return util.render_template(template='apps',
|
|
title=_('User Applications'))
|