Switch to side-by-side view
--- a/ForgeDownloads/forgedownloads/dl_main.py +++ b/ForgeDownloads/forgedownloads/dl_main.py @@ -54,8 +54,10 @@ @expose('json:') def nav(self): - return dict(menu=[ - dict(name=s.label, - url=s.url, - icon=s.ui_icon) - for s in c.project.sitemap() ]) + my_entry = c.app.sitemap[0] + def _entry(s): + d = dict(name=s.label, url=s.url, icon=s.ui_icon) + if s.url == my_entry.url: + d['selected'] = True + return d + return dict(menu=[ _entry(s) for s in c.project.sitemap() ] )