Bug Fix: MVC Layouts to Static

This commit is contained in:
Gary Sharp
2013-11-14 14:13:23 +11:00
parent fe00963cb0
commit 230b1af9f7
14 changed files with 34 additions and 49 deletions
@@ -1,4 +1,4 @@
@{
Layout = "~/Views/Shared/_Layout.cshtml";
Layout = MVC.Shared.Views._Layout;
Html.BundleDeferred("~/Style/Config");
}
@@ -2,7 +2,7 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.18051
// Runtime Version:4.0.30319.34003
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
@@ -45,7 +45,7 @@ namespace Disco.Web.Areas.Config.Views
#line 1 "..\..\Areas\Config\Views\_ViewStart.cshtml"
Layout = "~/Views/Shared/_Layout.cshtml";
Layout = MVC.Shared.Views._Layout;
Html.BundleDeferred("~/Style/Config");
@@ -1,3 +1,3 @@
@{
Layout = "~/Views/Shared/_PublicLayout.cshtml";
Layout = MVC.Shared.Views._PublicLayout;
}
@@ -45,7 +45,7 @@ namespace Disco.Web.Areas.Public.Views
#line 1 "..\..\Areas\Public\Views\_ViewStart.cshtml"
Layout = "~/Views/Shared/_PublicLayout.cshtml";
Layout = MVC.Shared.Views._PublicLayout;
#line default
+2 -3
View File
@@ -1788,10 +1788,10 @@
<Generator>RazorGenerator</Generator>
<LastGenOutput>Licence.generated.cs</LastGenOutput>
</None>
<Content Include="Views\Shared\DisplayTemplates\AccessDeniedException.cshtml">
<None Include="Views\Shared\DisplayTemplates\AccessDeniedException.cshtml">
<Generator>RazorGenerator</Generator>
<LastGenOutput>AccessDeniedException.generated.cs</LastGenOutput>
</Content>
</None>
<None Include="Views\Shared\DisplayTemplates\Exception.cshtml">
<Generator>RazorGenerator</Generator>
<LastGenOutput>Exception.generated.cs</LastGenOutput>
@@ -1933,7 +1933,6 @@
</ItemGroup>
<ItemGroup>
<Folder Include="Areas\API\Models\WirelessCertificate\" />
<Folder Include="Areas\Public\Views\Shared\" />
<Folder Include="Areas\Services\Models\" />
</ItemGroup>
<ItemGroup>
+11 -25
View File
@@ -90,7 +90,6 @@ namespace T4MVC
public Disco.Web.Areas.Public.Controllers.HeldDevicesController HeldDevices = new Disco.Web.Areas.Public.Controllers.T4MVC_HeldDevicesController();
public Disco.Web.Areas.Public.Controllers.PublicController Public = new Disco.Web.Areas.Public.Controllers.T4MVC_PublicController();
public Disco.Web.Areas.Public.Controllers.UserHeldDevicesController UserHeldDevices = new Disco.Web.Areas.Public.Controllers.T4MVC_UserHeldDevicesController();
public T4MVC.Public.SharedController Shared = new T4MVC.Public.SharedController();
}
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
public class ServicesClass
@@ -373,7 +372,7 @@ namespace Links
}
public static readonly string Timeline_js_bundle = Url("Timeline.js.bundle");
public static readonly string timeline_js = T4MVCHelpers.IsProduction() && T4Extensions.FileExists(URLPATH + "/timeline.min.js") ? Url("timeline.min.js") : Url("timeline.js");
public static readonly string Timeline_js = T4MVCHelpers.IsProduction() && T4Extensions.FileExists(URLPATH + "/Timeline.min.js") ? Url("Timeline.min.js") : Url("Timeline.js");
public static readonly string Timeline_min_js = Url("Timeline.min.js");
public static readonly string Timeline_min_js_map = Url("Timeline.min.js.map");
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
@@ -2163,6 +2162,7 @@ namespace T4MVC
public readonly string _JobTable = "_JobTable";
public readonly string _JobTableRender = "_JobTableRender";
public readonly string _Layout = "_Layout";
public readonly string _PublicLayout = "_PublicLayout";
public readonly string _SearchDialog = "_SearchDialog";
public readonly string Error = "Error";
}
@@ -2171,8 +2171,17 @@ namespace T4MVC
public readonly string _JobTable = "~/Views/Shared/_JobTable.cshtml";
public readonly string _JobTableRender = "~/Views/Shared/_JobTableRender.cshtml";
public readonly string _Layout = "~/Views/Shared/_Layout.cshtml";
public readonly string _PublicLayout = "~/Views/Shared/_PublicLayout.cshtml";
public readonly string _SearchDialog = "~/Views/Shared/_SearchDialog.cshtml";
public readonly string Error = "~/Views/Shared/Error.cshtml";
static readonly _DisplayTemplatesClass s_DisplayTemplates = new _DisplayTemplatesClass();
public _DisplayTemplatesClass DisplayTemplates { get { return s_DisplayTemplates; } }
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
public partial class _DisplayTemplatesClass
{
public readonly string AccessDeniedException = "AccessDeniedException";
public readonly string Exception = "Exception";
}
}
}
@@ -10567,29 +10576,6 @@ namespace Disco.Web.Areas.Public.Controllers
}
}
namespace T4MVC.Public
{
public class SharedController
{
static readonly ViewsClass s_views = new ViewsClass();
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
public ViewsClass Views { get { return s_views; } }
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
public class ViewsClass
{
static readonly _ViewNamesClass s_ViewNames = new _ViewNamesClass();
public _ViewNamesClass ViewNames { get { return s_ViewNames; } }
public class _ViewNamesClass
{
public readonly string _Layout = "_Layout";
}
public readonly string _Layout = "~/Areas/Public/Views/Shared/_Layout.cshtml";
}
}
}
namespace Disco.Web.Areas.Services.Controllers
{
public partial class ClientController
@@ -1,4 +1,4 @@
@{
Layout = "~/Views/InitialConfig/_Layout.cshtml";
Layout = MVC.InitialConfig.Views._Layout;
Html.BundleDeferred("~/Style/InitialConfig");
}
@@ -2,7 +2,7 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.18051
// Runtime Version:4.0.30319.34003
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
@@ -45,7 +45,7 @@ namespace Disco.Web.Views.InitialConfig
#line 1 "..\..\Views\InitialConfig\_ViewStart.cshtml"
Layout = "~/Views/InitialConfig/_Layout.cshtml";
Layout = MVC.InitialConfig.Views._Layout;
Html.BundleDeferred("~/Style/InitialConfig");
+1 -1
View File
@@ -2,7 +2,7 @@
@{
Authorization.Require(Claims.Job.Actions.Create);
Layout = "~/Views/Shared/_DialogLayout.cshtml";
Layout = MVC.Shared.Views._DialogLayout;
ViewBag.Title = Html.ToBreadcrumb("Jobs", MVC.Job.Index(), "Create");
}
<div id="createJob_Container">
+6 -6
View File
@@ -2,7 +2,7 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.18051
// Runtime Version:4.0.30319.34003
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
@@ -47,7 +47,7 @@ namespace Disco.Web.Views.Job
Authorization.Require(Claims.Job.Actions.Create);
Layout = "~/Views/Shared/_DialogLayout.cshtml";
Layout = MVC.Shared.Views._DialogLayout;
ViewBag.Title = Html.ToBreadcrumb("Jobs", MVC.Job.Index(), "Create");
@@ -208,15 +208,15 @@ WriteLiteral(">\r\n");
#line hidden
WriteLiteral(" <div");
WriteAttribute("id", Tuple.Create(" id=\"", 1098), Tuple.Create("\"", 1129)
, Tuple.Create(Tuple.Create("", 1103), Tuple.Create("createJob_SubType_", 1103), true)
WriteAttribute("id", Tuple.Create(" id=\"", 1091), Tuple.Create("\"", 1122)
, Tuple.Create(Tuple.Create("", 1096), Tuple.Create("createJob_SubType_", 1096), true)
#line 28 "..\..\Views\Job\Create.cshtml"
, Tuple.Create(Tuple.Create("", 1121), Tuple.Create<System.Object, System.Int32>(jt.Id
, Tuple.Create(Tuple.Create("", 1114), Tuple.Create<System.Object, System.Int32>(jt.Id
#line default
#line hidden
, 1121), false)
, 1114), false)
);
WriteLiteral(" class=\"createJob_SubType\"");
+1 -1
View File
@@ -1,7 +1,7 @@
@model Disco.Web.Models.Update.IndexModel
@{
ViewBag.Title = "Disco Post-Update Configuration";
Layout = "~/Areas/Public/Views/Shared/_Layout.cshtml";
Layout = MVC.Shared.Views._PublicLayout;
Html.BundleDeferred("~/ClientScripts/Modules/Knockout");
Html.BundleDeferred("~/ClientScripts/Modules/jQuery-SignalR");
+2 -2
View File
@@ -2,7 +2,7 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.18051
// Runtime Version:4.0.30319.34003
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
@@ -46,7 +46,7 @@ namespace Disco.Web.Views.Update
#line 2 "..\..\Views\Update\Index.cshtml"
ViewBag.Title = "Disco Post-Update Configuration";
Layout = "~/Areas/Public/Views/Shared/_Layout.cshtml";
Layout = MVC.Shared.Views._PublicLayout;
Html.BundleDeferred("~/ClientScripts/Modules/Knockout");
Html.BundleDeferred("~/ClientScripts/Modules/jQuery-SignalR");
+1 -1
View File
@@ -1,3 +1,3 @@
@{
Layout = "~/Views/Shared/_Layout.cshtml";
Layout = MVC.Shared.Views._Layout;
}
+2 -2
View File
@@ -2,7 +2,7 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.18051
// Runtime Version:4.0.30319.34003
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
@@ -45,7 +45,7 @@ namespace Disco.Web.Views
#line 1 "..\..\Views\_ViewStart.cshtml"
Layout = "~/Views/Shared/_Layout.cshtml";
Layout = MVC.Shared.Views._Layout;
#line default