PageRenderTime 47ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/BlogEngine/BlogEngine.NET/admin/_Layout.cshtml

#
Razor | 74 lines | 65 code | 9 blank | 0 comment | 1 complexity | d0bbea86b80d7abc2f327f8ae72ca109 MD5 | raw file
Possible License(s): LGPL-2.1, Apache-2.0, BSD-3-Clause
  1. @using BlogEngine.Core;
  2. @using Microsoft.Web.Optimization;
  3. @{
  4. App_Code.WebUtils.CheckRightsForAdminPagesPages(false);
  5. string loginUrl = Href(Utils.RelativeWebRoot + "Account/login.aspx");
  6. }
  7. <!DOCTYPE html>
  8. <html>
  9. <head>
  10. <title>@Page.Title</title>
  11. <link rel="shortcut icon" href="@Href(Utils.RelativeWebRoot + "pics/blogengine.ico")" type="image/x-icon" />
  12. <link href="@BundleTable.Bundles.ResolveBundleUrl("~/admin/css")" rel="stylesheet" type="text/css" />
  13. </head>
  14. <body>
  15. <script type="text/javascript">
  16. var SiteVars = {
  17. ApplicationRelativeWebRoot: '@Utils.ApplicationRelativeWebRoot',
  18. RelativeWebRoot: '@Utils.RelativeWebRoot',
  19. BlogInstanceId: '@Blog.CurrentInstance.Id'
  20. };
  21. </script>
  22. <script type="text/javascript" src="@string.Format("{0}Scripts/jQuery/01-jquery.js", Utils.RelativeWebRoot)"></script>
  23. <script type="text/javascript" src="@string.Format("{0}Scripts/jQuery/02-jquery.cookie.js", Utils.RelativeWebRoot)"></script>
  24. <script type="text/javascript" src="@string.Format("{0}Scripts/jQuery/03-jquery.validate.min.js", Utils.RelativeWebRoot)"></script>
  25. <script type="text/javascript" src="@string.Format("{0}Scripts/jQuery/03-jquery.validate.min.js", Utils.RelativeWebRoot)"></script>
  26. <script type="text/javascript" src="@string.Format("{0}Scripts/jQuery/04-jquery-jtemplates.js", Utils.RelativeWebRoot)"></script>
  27. <script type="text/javascript" src="@string.Format("{0}Scripts/jQuery/05-json2.js", Utils.RelativeWebRoot)"></script>
  28. <script type="text/javascript" src="@string.Format("{0}admin/jquery.colorbox.js", Utils.RelativeWebRoot)"></script>
  29. <script type="text/javascript" src="@string.Format("{0}admin/jquery.masonry.min.js", Utils.RelativeWebRoot)"></script>
  30. <script type="text/javascript" src="@string.Format("{0}admin/jquery.tipsy.js", Utils.RelativeWebRoot)"></script>
  31. <script type="text/javascript" src="@string.Format("{0}admin/admin.js", Utils.RelativeWebRoot)"></script>
  32. <div class="page">
  33. <form id="form1">
  34. <div id="StatusBox">
  35. <div id="AdminStatus" runat="server"></div>
  36. </div>
  37. <div class="header">
  38. <div class="be-logo">
  39. <span>@BlogEngine.Core.BlogSettings.Instance.Name @Resources.labels.admin</span>
  40. </div>
  41. <div class="toolbox">
  42. @Resources.labels.welcome&nbsp;
  43. @if (AuthorProfile.GetProfile(Security.CurrentUser.Identity.Name) == null)
  44. { @Security.CurrentUser.Identity.Name }
  45. else
  46. { @AuthorProfile.GetProfile(Security.CurrentUser.Identity.Name).DisplayName }
  47. | <a href="@Href(Utils.RelativeWebRoot + "admin/Users/Profile.aspx?id=")@Security.CurrentUser.Identity.Name">@Resources.labels.myProfile</a>
  48. | <a href="@BlogEngine.Core.Utils.RelativeWebRoot">@Resources.labels.goToFrontPage</a>
  49. | <span><a href="@Href(Utils.RelativeWebRoot + "Account/Logout.cshtml")">@Resources.labels.logoff</a></span>
  50. </div>
  51. </div>
  52. <div class="tabs toprounded">
  53. @RenderPage("_menu.cshtml")
  54. <div id="recyclebin"><a class="empty" href="@(Utils.RelativeWebRoot)admin/Trash.aspx"></a></div>
  55. </div>
  56. <div class="clear"></div>
  57. @RenderBody()
  58. <div id="footer">
  59. <a href="http://dotnetblogengine.net">BlogEngine.NET @BlogEngine.Core.BlogSettings.Instance.Version()</a> |
  60. <a id="donate" runat="server" href="@Href(Utils.RelativeWebRoot + "admin/Donate.aspx")" target="_new">@Resources.labels.makeDonation</a>
  61. </div>
  62. </form>
  63. </div>
  64. </body>
  65. </html>