The sidebar-disabled class and behavior is good. (Although we will need the css copied into the sftheme scss file too)
For the title text, we shouldn't put tracker-specific title text right in sidebar_menu.html. In general the core Allura package shouldn't have any special knowledge of individual tickets. I'd recommend expanding SitemapEntry to support something like a sidebar_html_attrs field which would be a dict that the template loops through. And then you can pass the title text in through that.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The
sidebar-disabled
class and behavior is good. (Although we will need the css copied into the sftheme scss file too)For the title text, we shouldn't put tracker-specific title text right in
sidebar_menu.html
. In general the core Allura package shouldn't have any special knowledge of individual tickets. I'd recommend expandingSitemapEntry
to support something like asidebar_html_attrs
field which would be a dict that the template loops through. And then you can pass the title text in through that.Great points. I'll add support for extra_html_attrs so it can be used for extending anywhere we use SitemapEntry.
Looks good now, but one test needs to be updated (it fails now):
forgetracker.tests.functional.test_root:TestFunctionalController.test_render_index
I updated the test, thanks Dave.