Somewhat prettier code in sidebar partial.