OpenDroneMap-WebODM/plugins/lightning/plugin.py

19 wiersze
512 B
Python
Czysty Zwykły widok Historia

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
def diagnostic(request):
return render(request, self.template_path("index.html"))
return [
MountPoint('$', diagnostic)
]