2018-12-28 20:14:15 +00:00
|
|
|
from app.plugins import PluginBase, Menu, MountPoint
|
|
|
|
from django.shortcuts import render
|
|
|
|
from django.contrib.auth.decorators import login_required
|
|
|
|
|
|
|
|
class Plugin(PluginBase):
|
|
|
|
def main_menu(self):
|
|
|
|
return [Menu("Lightning Network", self.public_url(""), "fa fa-bolt fa-fw")]
|
|
|
|
|
|
|
|
def app_mount_points(self):
|
|
|
|
@login_required
|
2018-12-29 17:33:08 +00:00
|
|
|
def main(request):
|
|
|
|
return render(request, self.template_path("index.html"), {'title': 'Lightning Network'})
|
2018-12-28 20:14:15 +00:00
|
|
|
|
|
|
|
return [
|
2018-12-29 17:33:08 +00:00
|
|
|
MountPoint('$', main)
|
2018-12-28 20:14:15 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
|