fix: add menu option, "Go to farmOS"
This commit is contained in:
parent
7d65d3c5a2
commit
33717bb055
1 changed files with 8 additions and 0 deletions
|
|
@ -38,10 +38,18 @@ class WuttaFarmMenuHandler(base.MenuHandler):
|
||||||
]
|
]
|
||||||
|
|
||||||
def make_farmos_menu(self, request):
|
def make_farmos_menu(self, request):
|
||||||
|
config = request.wutta_config
|
||||||
|
app = config.get_app()
|
||||||
return {
|
return {
|
||||||
"title": "farmOS",
|
"title": "farmOS",
|
||||||
"type": "menu",
|
"type": "menu",
|
||||||
"items": [
|
"items": [
|
||||||
|
{
|
||||||
|
"title": "Go to farmOS",
|
||||||
|
"url": app.get_farmos_url(),
|
||||||
|
"target": "_blank",
|
||||||
|
},
|
||||||
|
{"type": "sep"},
|
||||||
{
|
{
|
||||||
"title": "Animals",
|
"title": "Animals",
|
||||||
"route": "farmos_animals",
|
"route": "farmos_animals",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue