Mercurial > piecrust2
comparison piecrust/admin/views/menu.py @ 934:98430e7143d2
admin: The link to the panel's dashboard works when we are not at the root.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Wed, 04 Oct 2017 09:11:58 -0700 |
parents | dcdec4b951a1 |
children | dff873f11541 |
comparison
equal
deleted
inserted
replaced
933:7e7fc7926307 | 934:98430e7143d2 |
---|---|
4 | 4 |
5 | 5 |
6 def get_menu_context(): | 6 def get_menu_context(): |
7 entries = [] | 7 entries = [] |
8 entries.append({ | 8 entries.append({ |
9 'url': '/', | 9 'url': url_for('FoodTruck.index'), |
10 'title': "Dashboard", | 10 'title': "Dashboard", |
11 'icon': 'speedometer'}) | 11 'icon': 'speedometer'}) |
12 | 12 |
13 site = g.site.piecrust_app | 13 site = g.site.piecrust_app |
14 for source in site.sources: | 14 for source in site.sources: |