fix up the right-rail directive to work with multiple tabs
Merge branch 'document_sidebar' into testing