Esempio n. 1
0
 private static void CreateBreadcrumbs(UrlHelper urlHelper)
 {
     _breadcrumbs = new []
     {
         new Breadcrumb(BreadcrumbId.Dashboard, urlHelper.Dashboard(), "Dashboard", new []
         {
             new Breadcrumb(BreadcrumbId.Issues, urlHelper.Issues(), "Issues", new []
             {
                 new Breadcrumb(BreadcrumbId.AddIssue, string.Empty, "Add Issue"),
                 new Breadcrumb(BreadcrumbId.Issue, string.Empty, "Issue"),
             }),
             new Breadcrumb(BreadcrumbId.Errors, string.Empty, "Errors"),
             new Breadcrumb(BreadcrumbId.ActivityLog, string.Empty, "Activity Log"),
             new Breadcrumb(BreadcrumbId.Search, string.Empty, "Search")
         }),
         new Breadcrumb(BreadcrumbId.Home, urlHelper.QuickStart(), "Docs", new []
         {
             new Breadcrumb(BreadcrumbId.Contact, string.Empty, "Contact"),
             new Breadcrumb(BreadcrumbId.About, "", "About"),
             new Breadcrumb(BreadcrumbId.QuickStart, string.Empty, "Quick Start"),
             new Breadcrumb(BreadcrumbId.Clients, string.Empty, "Client"),
             new Breadcrumb(BreadcrumbId.Pricing, string.Empty, "Pricing"),
             new Breadcrumb(BreadcrumbId.Features, string.Empty, "Features"),
             new Breadcrumb(BreadcrumbId.Privacy, string.Empty, "Privacy"),
             new Breadcrumb(BreadcrumbId.TermsAndConditions, string.Empty, "Terms and Conditions")
         }),
         new Breadcrumb(BreadcrumbId.Admin, urlHelper.Subscription(), "Account", new []
         {
             new Breadcrumb(BreadcrumbId.Subscription, urlHelper.Subscription(), "Subscription", new []
             {
                 new Breadcrumb(BreadcrumbId.SubscriptionHome, string.Empty, "Subscription"),
                 new Breadcrumb(BreadcrumbId.BillingHistory, string.Empty, "Billing History"),
                 new Breadcrumb(BreadcrumbId.ChangeSubscription, string.Empty, "Change Subscription"),
                 new Breadcrumb(BreadcrumbId.CancelSubscription, string.Empty, "Cancel Subscription"),
                 new Breadcrumb(BreadcrumbId.SubscriptionSignUp, string.Empty, "Subscription Sign Up"),
                 new Breadcrumb(BreadcrumbId.SubscriptionSignUpFailed, string.Empty, "Subscription Sign Up Failed")
             }),
             new Breadcrumb(BreadcrumbId.Applications, urlHelper.Applications(), "Applications", new []
             {
                 new Breadcrumb(BreadcrumbId.AddApplication, string.Empty, "Add"),
                 new Breadcrumb(BreadcrumbId.EditApplication, string.Empty, "Edit")
             }),
             new Breadcrumb(BreadcrumbId.Users, urlHelper.Users(), "Users", new []
             {
                 new Breadcrumb(BreadcrumbId.AddUser, string.Empty, "Add User"),
                 new Breadcrumb(BreadcrumbId.EditUser, string.Empty, "Edit User"),
                 new Breadcrumb(BreadcrumbId.EditYourDetails, string.Empty, "Edit Your Details")
             }),
             new Breadcrumb(BreadcrumbId.Groups, urlHelper.Groups(), "Groups", new []
             {
                 new Breadcrumb(BreadcrumbId.AddGroup, string.Empty, "Add Group"),
                 new Breadcrumb(BreadcrumbId.EditGroup, string.Empty, "Edit Group")
             }),
             new Breadcrumb(BreadcrumbId.Settings, urlHelper.Organisation(), "Settings"),
         }),
         new Breadcrumb(BreadcrumbId.SysAdmin, urlHelper.SystemAdmin(), "System Admin", new []
         {
             new Breadcrumb(BreadcrumbId.AdminErrors, string.Empty, "Errors"),
             new Breadcrumb(BreadcrumbId.AdminImpersonation, string.Empty, "Impersonation"),
             new Breadcrumb(BreadcrumbId.AdminOrganisations, urlHelper.Organisations(), "Organisations", new []
             {
                 new Breadcrumb(BreadcrumbId.AdminUsers, string.Empty, "Users"),
                 new Breadcrumb(BreadcrumbId.AdminApplications, string.Empty, "Applications")
             }),
             new Breadcrumb(BreadcrumbId.AdminFlushCaches, urlHelper.FlushAllCaches(), "Flush Caches", new []
             {
                 new Breadcrumb(BreadcrumbId.AdminCache, string.Empty, "Cache")
             }),
         }),
     };
 }