1
- @using MySpaProject .WebSpaDurandal .Views
1
+ @*
2
+ IMPORTANT NOTES FROM ASP.NET BOILERPLATE:
3
+
4
+ This _Layout.cshtml is not used actually. It's left here if you want to add some classic style (MPA)
5
+ pages to your application.
6
+
7
+ See App/Main/shell.cshtml for Durandal application's layout page.
8
+ *@
9
+
2
10
<!DOCTYPE html>
3
11
<html lang =" en" >
4
12
<head >
5
-
6
- <!-- Standard meta tags -->
7
13
<meta charset =" utf-8" >
8
14
<meta http-equiv =" X-UA-Compatible" content =" IE=edge" >
9
15
<meta name =" viewport" content =" width=device-width, initial-scale=1" >
10
16
<meta name =" description" content =" " >
11
17
<meta name =" author" content =" " >
12
18
13
- <!-- favicon -->
14
- <link rel =" shortcut icon" href =" ~/favicon.ico" >
19
+ <title >MySpaProject</title >
15
20
16
- <!-- Site title -->
17
- <title >My ASP.NET Boilerplate Project!</title >
21
+ <link rel =" shortcut icon" href =" ~/favicon.ico" >
18
22
19
- <!-- Style for jQueryUI -->
20
23
<link href =" ~/Content/themes/base/all.css" rel =" stylesheet" />
21
-
22
- <!-- Style for Bootstrap -->
23
24
<link href =" ~/Content/bootstrap-cosmo.min.css" rel =" stylesheet" >
24
-
25
- <!-- Style for Durandal -->
26
- <link href =" ~/Content/durandal.css" rel =" stylesheet" />
27
-
28
- <!-- Styles for jQuery plug-ins -->
29
25
<link href =" ~/Content/toastr.min.css" rel =" stylesheet" />
30
-
31
- <!-- Country flags -->
32
26
<link href =" ~/Content/flags/famfamfam-flags.css" rel =" stylesheet" />
33
27
28
+ <script type =" text/javascript" >
29
+ // This is used to get the application's root path from javascript. It's useful if you're running application in a virtual directory under IIS.
30
+ var abp = abp || {}; abp .appPath = ' @ApplicationPath' ;
31
+ </script >
32
+
34
33
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
35
34
<!-- [if lt IE 9]>
36
35
<script src="@Url.Content("~/Scripts/others/html5shiv.js")"></script>
37
36
<script src="@Url.Content("~/Scripts/others/respond.min.js")"></script>
38
37
<![endif]-->
39
38
40
- @RenderSection( "styles", required: false)
41
-
42
- <!-- Windows Phone 8 and Internet Explorer 10 FIX -->
43
39
<script src =" ~/Abp/Framework/scripts/utils/ie10fix.js" ></script >
44
40
45
- <!-- Modernizr: for feature detection (All other scripts are included at the end of file for faster page load) -->
46
41
<script src =" ~/Scripts/modernizr-2.8.3.js" ></script >
47
42
48
- </head >
49
-
50
- <body >
51
-
52
- @RenderBody()
53
-
54
- <!-- jQuery and plugins -->
55
43
<script src =" ~/Scripts/json2.min.js" ></script >
56
44
<script src =" ~/Scripts/jquery-2.1.1.min.js" ></script >
57
45
<script src =" ~/Scripts/jquery-ui.min-1.11.1.js" ></script >
58
- <script src =" ~/Scripts/jquery.validate.min.js" ></script >
59
46
<script src =" ~/Scripts/jquery.blockUI.min.js" ></script >
60
47
<script src =" ~/Scripts/toastr.min.js" ></script >
61
48
<script src =" ~/Scripts/others/spinjs/spin.js" ></script >
62
49
<script src =" ~/Scripts/others/spinjs/jquery.spin.js" ></script >
63
50
64
- <!-- Knockout -->
65
- <script src =" ~/Scripts/knockout-3.2.0.js" ></script >
66
- <script src =" ~/Scripts/knockout.mapping-latest.js" ></script >
67
-
68
- <!-- Twitter Bootstrap -->
69
51
<script src =" ~/Scripts/bootstrap.min.js" ></script >
70
52
71
- <!-- Abp framework scripts -->
72
53
<script src =" ~/Abp/Framework/scripts/abp.js" ></script >
73
54
<script src =" ~/Abp/Framework/scripts/libs/abp.jquery.js" ></script >
74
55
<script src =" ~/Abp/Framework/scripts/libs/abp.toastr.js" ></script >
75
56
<script src =" ~/Abp/Framework/scripts/libs/abp.blockUI.js" ></script >
76
57
<script src =" ~/Abp/Framework/scripts/libs/abp.spin.js" ></script >
77
58
78
- <!-- Dynamic script for client side localization (It's created on runtime) -->
59
+ <!-- Dynamic scripts of ABP system (They are created on runtime and can not be bundled) -->
60
+ <script src =" ~/api/AbpServiceProxies/GetAll" ></script >
79
61
<script src =" ~/AbpLocalization/GetScripts" type =" text/javascript" ></script >
80
-
81
- <!-- Custom scripts for views -->
82
- @RenderSection( "scripts", required: false)
83
-
62
+ <script src =" ~/AbpAuthorization/GetScripts" type =" text/javascript" ></script >
63
+ <script src =" ~/AbpNavigation/GetScripts" type =" text/javascript" ></script >
64
+ </head >
65
+ <body >
66
+ @RenderBody()
84
67
</body >
85
- </html >
68
+ </html >
0 commit comments