#18634: Fixing Safe Mode Document shape

Work Item: 18634

--HG--
branch : 1.x
This commit is contained in:
Sebastien Ros
2012-07-02 17:38:37 -07:00
parent e5d3701763
commit d2282e334b
2 changed files with 11 additions and 12 deletions

View File

@@ -149,7 +149,7 @@ namespace Orchard.Setup {
class SafeModeSite : ContentPart, ISite { class SafeModeSite : ContentPart, ISite {
public string PageTitleSeparator { public string PageTitleSeparator {
get { return "*"; } get { return " - "; }
} }
public string SiteName { public string SiteName {

View File

@@ -2,22 +2,21 @@
@using Orchard.UI.Resources; @using Orchard.UI.Resources;
@{ @{
RegisterLink(new LinkEntry {Type = "image/x-icon", Rel = "shortcut icon", Href = Url.Content("~/modules/orchard.themes/Content/orchard.ico")}); RegisterLink(new LinkEntry {Type = "image/x-icon", Rel = "shortcut icon", Href = Url.Content("~/modules/orchard.themes/Content/orchard.ico")});
Script.Include("html5.js").UseCondition("lt IE 9").AtHead();
string title = Convert.ToString(Model.Title);
string siteName = Convert.ToString(WorkContext.CurrentSite.SiteName);
} }
<!DOCTYPE html> <!DOCTYPE html>
<html lang="@WorkContext.CurrentCulture" class="static @Html.ClassForPage()"> <html lang="@WorkContext.CurrentCulture" class="static @Html.ClassForPage()">
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<title>@Html.Title()</title> <title>@Html.Title(title, siteName)</title>
@{ @Display(Model.Head)
//todo: (heskew) have resource modules that can be leaned on (like a jQuery module that knows about various CDNs and jQuery's version and min naming schemes) <script> (function (d) { d.className = "dyn" + d.className.substring(6, d.className.length); })(document.documentElement);</script>
//todo: (heskew) this is an interim solution to inlude jQuery in every page and still allow that to be overriden in some theme by it containing a headScripts partial
}
@*Model.Zones.AddRenderPartial("head:before", "HeadPreload", Model);*@
@*Html.Zone("head", ":metas :styles :scripts"); %>*@
@Display(Model.Head)
<script>(function(d){d.className="dyn "+d.className.substring(7,d.length);})(document.documentElement);</script>
</head> </head>
<body> <body>
@* Layout (template) is in the Body zone @ the default position (nothing, zero, zilch) *@
@Display(Model.Body) @Display(Model.Body)
@Display(Model.Tail) @Display(Model.Tail)
</body> </body>