PageRenderTime 6ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 2ms app.codeStats 0ms

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

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