|
1 | | -@using System.Globalization |
2 | | -@using Abp.Configuration.Startup |
| 1 | +@using Abp.Configuration.Startup |
3 | 2 | @using Abp.Web.Mvc.Alerts |
4 | 3 | @using Abp.Web.Security.AntiForgery |
5 | 4 | @using AbpCompanyName.AbpProjectName.Web.Resources |
6 | | -@inject AbpCompanyName.AbpProjectName.Timing.AppTimes AppTimes |
7 | 5 | @inject IAbpAntiForgeryManager AbpAntiForgeryManager |
8 | 6 | @inject IMultiTenancyConfig MultiTenancyConfig |
9 | 7 | @inject IWebResourceManager WebResourceManager |
|
24 | 22 |
|
25 | 23 | <title>@pageTitle</title> |
26 | 24 |
|
27 | | - <link rel="shortcut icon" href="~/img/favicon.ico"> |
28 | | - <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700" rel="stylesheet"> |
29 | | - |
30 | | - <environment names="Development"> |
31 | | - <link href="~/libs/font-awesome/css/all.min.css" rel="stylesheet" asp-append-version="true" /> |
32 | | - <link href="~/libs-ext/famfamfam-flags/dist/sprite/famfamfam-flags.min.css" rel="stylesheet" asp-append-version="true" /> |
33 | | - <link href="~/libs/animate.css/animate.css" rel="stylesheet" asp-append-version="true" /> |
34 | | - <link href="~/libs/icheck-bootstrap/icheck-bootstrap.css" rel="stylesheet" asp-append-version="true" /> |
35 | | - <link href="~/libs/toastr/toastr.css" rel="stylesheet" asp-append-version="true" /> |
36 | | - <link href="~/libs/admin-lte/dist/css/adminlte.min.css" rel="stylesheet" asp-append-version="true" /> |
37 | | - <link href="~/libs/datatables/css/dataTables.bootstrap4.min.css" rel="stylesheet" asp-append-version="true" /> |
38 | | - <link href="~/libs/datatables/css/responsive.bootstrap4.min.css" rel="stylesheet" asp-append-version="true" /> |
39 | | - <link href="~/libs/datatables/css/buttons.bootstrap4.min.css" rel="stylesheet" asp-append-version="true" /> |
40 | | - <link href="~/css/style.css" rel="stylesheet" asp-append-version="true" /> |
41 | | - <link href="~/view-resources/Views/Shared/_Layout.css" rel="stylesheet" asp-append-version="true" /> |
42 | | - </environment> |
43 | | - |
44 | | - <environment names="Staging,Production"> |
45 | | - <link href="~/view-resources/Views/_Bundles/shared-layout.min.css" rel="stylesheet" asp-append-version="true" /> |
46 | | - </environment> |
47 | | - |
| 25 | + @await Html.PartialAsync("_Styles.cshtml") |
48 | 26 | @RenderSection("styles", required: false) |
49 | 27 | </head> |
50 | 28 | <body class="hold-transition sidebar-mini"> |
|
57 | 35 | </div> |
58 | 36 | @await Html.PartialAsync("_Footer.cshtml") |
59 | 37 | </div> |
60 | | - <script type="text/javascript"> |
61 | | - // This is used to get the application's root path from javascript. |
62 | | - // It's useful if you're running application in a virtual directory under IIS. |
63 | | - var abp = abp || {}; |
64 | | - abp.appPath = '@ApplicationPath'; |
65 | | - </script> |
66 | | - <environment names="Development"> |
67 | | - <script src="~/libs/jquery/jquery.js" asp-append-version="true"></script> |
68 | | - <script src="~/libs/bootstrap/dist/js/bootstrap.bundle.js" asp-append-version="true"></script> |
69 | | - <script src="~/libs/admin-lte/dist/js/adminlte.js" asp-append-version="true"></script> |
70 | | - <script src="~/libs/jquery-validate/jquery.validate.js" asp-append-version="true"></script> |
71 | | - <script src="~/libs/jquery-validate/jquery.validate.unobtrusive.js" asp-append-version="true"></script> |
72 | | - <script src="~/libs/block-ui/jquery.blockUI.js" asp-append-version="true"></script> |
73 | | - <script src="~/libs/spin/spin.js" asp-append-version="true"></script> |
74 | | - <script src="~/libs-ext/spin/jquery.spin.js" asp-append-version="true"></script> |
75 | | - <script src="~/libs/sweetalert/sweetalert.min.js" asp-append-version="true"></script> |
76 | | - <script src="~/libs/toastr/toastr.min.js" asp-append-version="true"></script> |
77 | | - <script src="~/libs/push.js/push.js" asp-append-version="true"></script> |
78 | | - <script src="~/libs/moment/moment-with-locales.js" asp-append-version="true"></script> |
79 | | - <script src="~/libs/abp-web-resources/Abp/Framework/scripts/abp.js" asp-append-version="true"></script> |
80 | | - <script src="~/libs/abp-web-resources/Abp/Framework/scripts/libs/abp.jquery.js" asp-append-version="true"></script> |
81 | | - <script src="~/libs/abp-web-resources/Abp/Framework/scripts/libs/abp.toastr.js" asp-append-version="true"></script> |
82 | | - <script src="~/libs/abp-web-resources/Abp/Framework/scripts/libs/abp.blockUI.js" asp-append-version="true"></script> |
83 | | - <script src="~/libs/abp-web-resources/Abp/Framework/scripts/libs/abp.spin.js" asp-append-version="true"></script> |
84 | | - <script src="~/libs/abp-web-resources/Abp/Framework/scripts/libs/abp.sweet-alert.js" asp-append-version="true"></script> |
85 | | - <script src="~/libs/datatables/js/jquery.dataTables.min.js" asp-append-version="true"></script> |
86 | | - <script src="~/libs/datatables/js/dataTables.bootstrap4.min.js" asp-append-version="true"></script> |
87 | | - <script src="~/libs/datatables/js/dataTables.responsive.min.js" asp-append-version="true"></script> |
88 | | - <script src="~/libs/datatables/js/responsive.bootstrap4.min.js" asp-append-version="true"></script> |
89 | | - <script src="~/libs/datatables/js/dataTables.buttons.js" asp-append-version="true"></script> |
90 | | - <script src="~/libs/datatables/js/buttons.bootstrap4.js" asp-append-version="true"></script> |
91 | | - <script src="~/js/abp.dataTable.js" asp-append-version="true"></script> |
92 | | - <script src="~/js/main.js" asp-append-version="true"></script> |
93 | | - </environment> |
94 | | - |
95 | | - <environment names="Staging,Production"> |
96 | | - <script src="~/view-resources/Views/_Bundles/shared-layout.min.js" asp-append-version="true"></script> |
97 | | - </environment> |
98 | | - |
99 | | - @if (CultureInfo.CurrentUICulture.Name != "en") |
100 | | - { |
101 | | - var normalizedCurrentUICultureName = CultureInfo.CurrentUICulture.Name.Replace("-", "_"); |
102 | | - var localizationFileNameWithExtension = "messages_"; |
103 | | - switch (normalizedCurrentUICultureName) |
104 | | - { |
105 | | - case "zh_Hans": |
106 | | - localizationFileNameWithExtension += "zh"; |
107 | | - break; |
108 | | - case "es_MX": |
109 | | - localizationFileNameWithExtension += "es"; |
110 | | - break; |
111 | | - default: |
112 | | - localizationFileNameWithExtension += normalizedCurrentUICultureName; |
113 | | - break; |
114 | | - } |
115 | | - localizationFileNameWithExtension += ".min.js"; |
116 | | - <script src="~/libs/jquery-validate/localization/@localizationFileNameWithExtension" asp-append-version="true"></script> |
117 | | - } |
118 | 38 |
|
119 | | - <script type="text/javascript"> |
120 | | - // Localizing momentjs |
121 | | - moment.locale('@CultureInfo.CurrentUICulture.Name'); |
122 | | - </script> |
123 | | - |
124 | | - <!-- Dynamic scripts of ABP system (They are created on runtime and can not be bundled) --> |
125 | | - <script src="~/AbpServiceProxies/GetAll?v=@(AppTimes.StartupTime.Ticks)" type="text/javascript"></script> |
126 | | - <script src="~/AbpScripts/GetScripts?v=@(AppTimes.StartupTime.Ticks)" type="text/javascript"></script> |
127 | | - |
128 | | - <script src="~/libs/signalr/dist/browser/signalr.js" asp-append-version="true"></script> |
129 | | - <script src="~/libs/abp-web-resources/Abp/Framework/scripts/libs/abp.signalr-client.js" asp-append-version="true"></script> |
130 | | - |
131 | | - @WebResourceManager.RenderScripts() |
| 39 | + @await Html.PartialAsync("_Scripts.cshtml") |
132 | 40 | @RenderSection("scripts", required: false) |
| 41 | + @WebResourceManager.RenderScripts() |
133 | 42 | </body> |
134 | 43 | </html> |
0 commit comments