kopia lustrzana https://github.com/OpenDroneMap/WebODM
19 wiersze
512 B
Python
19 wiersze
512 B
Python
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)
|
|
]
|
|
|
|
|