Confirmed users
353
edits
| Line 191: | Line 191: | ||
==== Navigation Menu Generation ==== | ==== Navigation Menu Generation ==== | ||
The view navigation menu in the UI is generated with the following specialized django manage.py command: | |||
python manage.py build_nav | |||
This command outputs two files. | |||
# python/sisyphus/webapp/html/nav/nav_menu.html - This file contains an HTML unordered list tag that's generated from the structure in views.json. It is used for the navigation menu for each data view. | |||
# python/sisyphus/webapp/templates/bughunter.navlookup.html - This file contains a single hidden input field containing a JSON associative array with each data view structure from views.json within it. It's used in the javascript as a lookup table when view configuration is required. | |||
==== Implementation ==== | ==== Implementation ==== | ||