@{ // ViewData["HasSidebar"] (bool): renders the hamburger that toggles this page's own #sidebar // (folder list on Mail, contact list on Contacts) - Settings/Maintenance have no sidebar of // their own, so they don't get this button. // ViewData["ActiveNav"] (string): "contacts" | "settings" | "maintenance" | null - which link // (if any) gets the "active" styling for the current page. var hasSidebar = ViewData["HasSidebar"] as bool? ?? false; var activeNav = ViewData["ActiveNav"] as string; }
@if (hasSidebar) { } MailSharp