Fixing some admin blog views

The titles should be set using Layout.Title

--HG--
branch : 1.x
This commit is contained in:
Sebastien Ros
2013-02-08 12:22:39 -08:00
parent 8730c94d8a
commit c08438c22d
3 changed files with 4 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
@{
Html.AddTitleParts(T("Manage Blog").ToString());
Layout.Title = T("Manage Blog").ToString();
}
@* Model is a Shape, calling Display() so that it is rendered using the most specific template for its Shape type *@
@Display(Model)

View File

@@ -1,7 +1,8 @@
@using Orchard.Blogs.Extensions;
@using Orchard.Blogs.Models;
@using Orchard.ContentManagement
@{ Layout.Title = (string)Model.Title; }
@{ Layout.Title = T("Manage {0}", Html.ItemDisplayText((IContent)Model.ContentItem)); }
@Display(Model.Header)
@Display(Model.Actions)

View File

@@ -1,6 +1,6 @@
@using Orchard.Mvc.Html;
@{
Html.AddTitleParts((string)Model.Title);
Layout.Title = T("New Blog");
}
<div class="edit-item">
<div class="edit-item-primary">