private static void AddHome(StringBuilder sb, IUrlBuilder urlBuilder, ViewContext viewContext) { bool isCurrent = RouteHelper.IsCurrentController("Dxt_Admin", "Home", viewContext); sb.AppendFormat("<li class=\"home {0}\">", isCurrent ? "current" : string.Empty); sb.AppendFormat("<a href=\"{0}\" title=\"Home\">Home</a></li>", urlBuilder.Admin.Home()); }
private static void AddUsers(StringBuilder sb, IUrlBuilder urlBuilder, ViewContext viewContext) { bool isCurrent = RouteHelper.IsCurrentController("Dxt_Admin", "Account", viewContext); sb.AppendFormat("<li class=\"users {0}\">", isCurrent ? "current" : string.Empty); sb.AppendFormat("<a href=\"{0}\" title=\"Users\">Users</a>", urlBuilder.Admin.Account.List()); sb.Append("<ul>"); sb.AppendFormat("<li><a href=\"{0}\" title=\"List.\">List</a></li>", urlBuilder.Admin.Account.List()); sb.AppendFormat("<li><a href=\"{0}\" title=\"Create.\">Create</a></li>", "#"); sb.Append("</ul>"); sb.Append("</li>"); }
private static void AddSettigns(StringBuilder sb, IUrlBuilder urlBuilder, ViewContext viewContext) { bool isCurrent = RouteHelper.IsCurrentController("Dxt_Admin", "Settings", viewContext); sb.AppendFormat("<li class=\"settings {0}\">", isCurrent ? "current" : string.Empty); sb.AppendFormat("<a href=\"{0}\" title=\"settings\">settings</a>", urlBuilder.Admin.EditConfiguration()); sb.Append("<ul>"); sb.AppendFormat("<li><a href=\"{0}\" title=\"Site Configuration.\">Site</a></li>", urlBuilder.Admin.EditConfiguration()); sb.AppendFormat("<li><a href=\"{0}\" title=\"SEO Configuration.\">SEO</a></li>", urlBuilder.Admin.EditSeoConfiguration()); sb.AppendFormat("<li><a href=\"{0}\" title=\"Tracking Configuration.\">Tracking</a></li>", urlBuilder.Admin.EditTrackingConfiguration()); sb.AppendFormat("<li><a href=\"{0}\" title=\"Comments Configuration.\">Comment</a></li>", urlBuilder.Admin.EditCommentsConfiguration()); sb.AppendFormat("<li><a href=\"{0}\" title=\"SMTP Configuration.\">Smtp</a></li>", urlBuilder.Admin.EditSmtpConfiguration()); sb.AppendFormat("<li><a href=\"{0}\" title=\"Reading Configuration.\">Reading</a></li>", urlBuilder.Admin.EditReadingConfiguration()); sb.Append("</ul>"); sb.Append("</li>"); }
private static void AddPost(StringBuilder sb, IUrlBuilder urlBuilder, ViewContext viewContext) { bool isCurrent = RouteHelper.IsCurrentController("Dxt_Admin", "Post", viewContext) || RouteHelper.IsCurrentController("Dxt_Admin", "Category", viewContext) || RouteHelper.IsCurrentController("Dxt_Admin", "Page", viewContext); sb.AppendFormat("<li class=\"write {0}\">", isCurrent ? "current" : string.Empty); sb.AppendFormat("<a href=\"{0}\" title=\"Post & Pages\">Posts</a>", urlBuilder.Admin.Post.List()); sb.Append("<ul>"); sb.AppendFormat("<li><a href=\"{0}\" title=\"All Posts.\">Posts</a></li>", urlBuilder.Admin.Post.List()); sb.AppendFormat("<li><a href=\"{0}\" title=\"Add new post.\">Add Post</a></li>", urlBuilder.Admin.Post.New()); sb.AppendFormat("<li><a href=\"{0}\" title=\"All pages.\">Pages</a></li>", urlBuilder.Admin.Page.List()); sb.AppendFormat("<li><a href=\"{0}\" title=\"Add new page.\">Add Page</a></li>", urlBuilder.Admin.Post.New()); sb.AppendFormat("<li><a href=\"{0}\" title=\"All categories.\">Categories</a></li>", urlBuilder.Admin.Category.List()); sb.AppendFormat("<li><a href=\"{0}\" title=\"Add new category.\">Add Category</a></li>", urlBuilder.Admin.Category.New()); sb.Append("</ul>"); sb.Append("</li>"); }