App Maintenance Theme
Updated to 'Initial Config' theme
This commit is contained in:
@@ -18,7 +18,7 @@ namespace Disco.Web
|
||||
BundleTable.Add(new Bundle("~/Style/Job", Links.ClientSource.Style.Job_min_css));
|
||||
BundleTable.Add(new Bundle("~/Style/User", Links.ClientSource.Style.User_min_css));
|
||||
BundleTable.Add(new Bundle("~/Style/Credits", Links.ClientSource.Style.Credits_min_css));
|
||||
BundleTable.Add(new Bundle("~/Style/InitialConfig", Links.ClientSource.Style.InitialConfig_min_css));
|
||||
BundleTable.Add(new Bundle("~/Style/AppMaintenance", Links.ClientSource.Style.AppMaintenance_min_css));
|
||||
BundleTable.Add(new Bundle("~/Style/jQueryUI/dynatree", Links.ClientSource.Style.jQueryUI.dynatree.ui_dynatree_min_css));
|
||||
BundleTable.Add(new Bundle("~/Style/Fancytree", Links.ClientSource.Style.Fancytree.disco_fancytree_min_css));
|
||||
BundleTable.Add(new Bundle("~/Style/Shadowbox", Links.ClientSource.Style.Shadowbox_min_css));
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
@{
|
||||
ViewContext.ViewData.Add("IsInitialConfig", true);
|
||||
ViewContext.ViewData.Add("IsMaintenanceMode", true);
|
||||
Layout = MVC.Shared.Views._PublicLayout;
|
||||
Html.BundleDeferred("~/Style/InitialConfig");
|
||||
Html.BundleDeferred("~/Style/AppMaintenance");
|
||||
}
|
||||
@@ -47,9 +47,9 @@ namespace Disco.Web.Views.InitialConfig
|
||||
|
||||
#line 1 "..\..\Views\InitialConfig\_ViewStart.cshtml"
|
||||
|
||||
ViewContext.ViewData.Add("IsInitialConfig", true);
|
||||
ViewContext.ViewData.Add("IsMaintenanceMode", true);
|
||||
Layout = MVC.Shared.Views._PublicLayout;
|
||||
Html.BundleDeferred("~/Style/InitialConfig");
|
||||
Html.BundleDeferred("~/Style/AppMaintenance");
|
||||
|
||||
|
||||
#line default
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
@{
|
||||
Html.BundleDeferred("~/Style/Site");
|
||||
Html.BundleDeferred("~/ClientScripts/Core");
|
||||
bool isMaintenanceMode = ViewContext.ViewData.ContainsKey("IsMaintenanceMode");
|
||||
}
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
@@ -20,7 +21,7 @@
|
||||
<div id="heading">
|
||||
<a href="@Url.Action(MVC.Job.Index())"><i title="Disco - ICT Management"></i></a>
|
||||
</div>
|
||||
@if (!ViewContext.ViewData.ContainsKey("IsInitialConfig"))
|
||||
@if (!isMaintenanceMode)
|
||||
{<text>
|
||||
<nav>
|
||||
<ul id="menu">
|
||||
@@ -36,7 +37,7 @@
|
||||
@RenderBody()
|
||||
</section>
|
||||
<footer>
|
||||
Disco v@(Disco.Web.DiscoApplication.Version) @if (ViewBag.IsInitialConfig != null)
|
||||
Disco v@(Disco.Web.DiscoApplication.Version) @if (!isMaintenanceMode)
|
||||
{<text>@@ @(Disco.Web.DiscoApplication.OrganisationName) | @Html.ActionLink("Credits", MVC.Public.Public.Credits()) | @Html.ActionLink("Licence", MVC.Public.Public.Licence())</text>}
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
@@ -49,6 +49,7 @@ namespace Disco.Web.Views.Shared
|
||||
|
||||
Html.BundleDeferred("~/Style/Site");
|
||||
Html.BundleDeferred("~/ClientScripts/Core");
|
||||
bool isMaintenanceMode = ViewContext.ViewData.ContainsKey("IsMaintenanceMode");
|
||||
|
||||
|
||||
#line default
|
||||
@@ -56,7 +57,7 @@ namespace Disco.Web.Views.Shared
|
||||
WriteLiteral("\r\n<!DOCTYPE html>\r\n<html>\r\n<head>\r\n <title>Disco");
|
||||
|
||||
|
||||
#line 8 "..\..\Views\Shared\_PublicLayout.cshtml"
|
||||
#line 9 "..\..\Views\Shared\_PublicLayout.cshtml"
|
||||
if (ViewBag.Title != null)
|
||||
{
|
||||
|
||||
@@ -65,14 +66,14 @@ WriteLiteral("\r\n<!DOCTYPE html>\r\n<html>\r\n<head>\r\n <title>Disco");
|
||||
WriteLiteral(" - ");
|
||||
|
||||
|
||||
#line 9 "..\..\Views\Shared\_PublicLayout.cshtml"
|
||||
#line 10 "..\..\Views\Shared\_PublicLayout.cshtml"
|
||||
Write(CommonHelpers.BreadcrumbsTitle(ViewBag.Title));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 9 "..\..\Views\Shared\_PublicLayout.cshtml"
|
||||
#line 10 "..\..\Views\Shared\_PublicLayout.cshtml"
|
||||
}
|
||||
|
||||
#line default
|
||||
@@ -108,7 +109,7 @@ WriteLiteral(" />\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 14 "..\..\Views\Shared\_PublicLayout.cshtml"
|
||||
#line 15 "..\..\Views\Shared\_PublicLayout.cshtml"
|
||||
Write(Html.BundleRenderDeferred());
|
||||
|
||||
|
||||
@@ -119,7 +120,7 @@ WriteLiteral("\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 15 "..\..\Views\Shared\_PublicLayout.cshtml"
|
||||
#line 16 "..\..\Views\Shared\_PublicLayout.cshtml"
|
||||
Write(RenderSection("head", false));
|
||||
|
||||
|
||||
@@ -139,14 +140,14 @@ WriteLiteral(" id=\"heading\"");
|
||||
|
||||
WriteLiteral(">\r\n <a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 724), Tuple.Create("\"", 759)
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 809), Tuple.Create("\"", 844)
|
||||
|
||||
#line 21 "..\..\Views\Shared\_PublicLayout.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 731), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.Job.Index())
|
||||
#line 22 "..\..\Views\Shared\_PublicLayout.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 816), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.Job.Index())
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 731), false)
|
||||
, 816), false)
|
||||
);
|
||||
|
||||
WriteLiteral("><i");
|
||||
@@ -156,14 +157,14 @@ WriteLiteral(" title=\"Disco - ICT Management\"");
|
||||
WriteLiteral("></i></a>\r\n </div>\r\n");
|
||||
|
||||
|
||||
#line 23 "..\..\Views\Shared\_PublicLayout.cshtml"
|
||||
#line 24 "..\..\Views\Shared\_PublicLayout.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 23 "..\..\Views\Shared\_PublicLayout.cshtml"
|
||||
if (!ViewContext.ViewData.ContainsKey("IsInitialConfig"))
|
||||
#line 24 "..\..\Views\Shared\_PublicLayout.cshtml"
|
||||
if (!isMaintenanceMode)
|
||||
{
|
||||
|
||||
#line default
|
||||
@@ -179,7 +180,7 @@ WriteLiteral(" class=\"active\"");
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 27 "..\..\Views\Shared\_PublicLayout.cshtml"
|
||||
#line 28 "..\..\Views\Shared\_PublicLayout.cshtml"
|
||||
Write(Html.ActionLink("Reports", MVC.Public.Public.Index()));
|
||||
|
||||
|
||||
@@ -188,7 +189,7 @@ WriteLiteral(">");
|
||||
WriteLiteral("</li>\r\n <li>");
|
||||
|
||||
|
||||
#line 28 "..\..\Views\Shared\_PublicLayout.cshtml"
|
||||
#line 29 "..\..\Views\Shared\_PublicLayout.cshtml"
|
||||
Write(Html.ActionLink("Administration", MVC.Job.Index(), accesskey: "1"));
|
||||
|
||||
|
||||
@@ -197,7 +198,7 @@ WriteLiteral("</li>\r\n <li>");
|
||||
WriteLiteral("</li>\r\n </ul>\r\n </nav>\r\n ");
|
||||
|
||||
|
||||
#line 31 "..\..\Views\Shared\_PublicLayout.cshtml"
|
||||
#line 32 "..\..\Views\Shared\_PublicLayout.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -206,13 +207,13 @@ WriteLiteral("</li>\r\n </ul>\r\n </nav>\r\n
|
||||
WriteLiteral(" </header>\r\n");
|
||||
|
||||
|
||||
#line 33 "..\..\Views\Shared\_PublicLayout.cshtml"
|
||||
#line 34 "..\..\Views\Shared\_PublicLayout.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 33 "..\..\Views\Shared\_PublicLayout.cshtml"
|
||||
#line 34 "..\..\Views\Shared\_PublicLayout.cshtml"
|
||||
if (ViewBag.Title != null)
|
||||
{
|
||||
|
||||
@@ -225,7 +226,7 @@ WriteLiteral(" id=\"layout_PageHeading\"");
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 34 "..\..\Views\Shared\_PublicLayout.cshtml"
|
||||
#line 35 "..\..\Views\Shared\_PublicLayout.cshtml"
|
||||
Write(CommonHelpers.Breadcrumbs(ViewBag.Title));
|
||||
|
||||
|
||||
@@ -234,7 +235,7 @@ WriteLiteral(">");
|
||||
WriteLiteral("</div>");
|
||||
|
||||
|
||||
#line 34 "..\..\Views\Shared\_PublicLayout.cshtml"
|
||||
#line 35 "..\..\Views\Shared\_PublicLayout.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -249,7 +250,7 @@ WriteLiteral(">\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 36 "..\..\Views\Shared\_PublicLayout.cshtml"
|
||||
#line 37 "..\..\Views\Shared\_PublicLayout.cshtml"
|
||||
Write(RenderBody());
|
||||
|
||||
|
||||
@@ -258,7 +259,7 @@ WriteLiteral(" ");
|
||||
WriteLiteral("\r\n </section>\r\n <footer>\r\n Disco v");
|
||||
|
||||
|
||||
#line 39 "..\..\Views\Shared\_PublicLayout.cshtml"
|
||||
#line 40 "..\..\Views\Shared\_PublicLayout.cshtml"
|
||||
Write(Disco.Web.DiscoApplication.Version);
|
||||
|
||||
|
||||
@@ -267,8 +268,8 @@ WriteLiteral("\r\n </section>\r\n <footer>\r\n Disco v"
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 39 "..\..\Views\Shared\_PublicLayout.cshtml"
|
||||
if (ViewBag.IsInitialConfig != null)
|
||||
#line 40 "..\..\Views\Shared\_PublicLayout.cshtml"
|
||||
if (!isMaintenanceMode)
|
||||
{
|
||||
|
||||
#line default
|
||||
@@ -276,7 +277,7 @@ WriteLiteral(" ");
|
||||
WriteLiteral("@ ");
|
||||
|
||||
|
||||
#line 40 "..\..\Views\Shared\_PublicLayout.cshtml"
|
||||
#line 41 "..\..\Views\Shared\_PublicLayout.cshtml"
|
||||
Write(Disco.Web.DiscoApplication.OrganisationName);
|
||||
|
||||
|
||||
@@ -285,7 +286,7 @@ WriteLiteral("@ ");
|
||||
WriteLiteral(" | ");
|
||||
|
||||
|
||||
#line 40 "..\..\Views\Shared\_PublicLayout.cshtml"
|
||||
#line 41 "..\..\Views\Shared\_PublicLayout.cshtml"
|
||||
Write(Html.ActionLink("Credits", MVC.Public.Public.Credits()));
|
||||
|
||||
|
||||
@@ -294,14 +295,14 @@ WriteLiteral(" | ");
|
||||
WriteLiteral(" | ");
|
||||
|
||||
|
||||
#line 40 "..\..\Views\Shared\_PublicLayout.cshtml"
|
||||
#line 41 "..\..\Views\Shared\_PublicLayout.cshtml"
|
||||
Write(Html.ActionLink("Licence", MVC.Public.Public.Licence()));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 40 "..\..\Views\Shared\_PublicLayout.cshtml"
|
||||
#line 41 "..\..\Views\Shared\_PublicLayout.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -310,13 +311,13 @@ WriteLiteral(" | ");
|
||||
WriteLiteral(" </footer>\r\n </div>\r\n");
|
||||
|
||||
|
||||
#line 43 "..\..\Views\Shared\_PublicLayout.cshtml"
|
||||
#line 44 "..\..\Views\Shared\_PublicLayout.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 43 "..\..\Views\Shared\_PublicLayout.cshtml"
|
||||
#line 44 "..\..\Views\Shared\_PublicLayout.cshtml"
|
||||
Disco.Services.Plugins.Features.UIExtension.UIExtensions.ExecuteExtensionResult(this);
|
||||
|
||||
#line default
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
@{
|
||||
ViewContext.ViewData.Add("IsMaintenanceMode", true);
|
||||
Layout = MVC.Shared.Views._PublicLayout;
|
||||
Html.BundleDeferred("~/Style/AppMaintenance");
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
#pragma warning disable 1591
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.34014
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Disco.Web.Views.Update
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Text;
|
||||
using System.Web;
|
||||
using System.Web.Helpers;
|
||||
using System.Web.Mvc;
|
||||
using System.Web.Mvc.Ajax;
|
||||
using System.Web.Mvc.Html;
|
||||
using System.Web.Routing;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.WebPages;
|
||||
using Disco;
|
||||
using Disco.BI.Extensions;
|
||||
using Disco.Models.Repository;
|
||||
using Disco.Services;
|
||||
using Disco.Services.Authorization;
|
||||
using Disco.Services.Web;
|
||||
using Disco.Web;
|
||||
using Disco.Web.Extensions;
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "2.0.0.0")]
|
||||
[System.Web.WebPages.PageVirtualPathAttribute("~/Views/Update/_ViewStart.cshtml")]
|
||||
public partial class ViewStart : System.Web.Mvc.ViewStartPage
|
||||
{
|
||||
public ViewStart()
|
||||
{
|
||||
}
|
||||
public override void Execute()
|
||||
{
|
||||
|
||||
#line 1 "..\..\Views\Update\_ViewStart.cshtml"
|
||||
|
||||
ViewContext.ViewData.Add("IsMaintenanceMode", true);
|
||||
Layout = MVC.Shared.Views._PublicLayout;
|
||||
Html.BundleDeferred("~/Style/AppMaintenance");
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore 1591
|
||||
Reference in New Issue
Block a user