mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-04-05 21:01:35 +08:00
Adding default body css classes when editing/displaying content items
--HG-- branch : 1.x
This commit is contained in:
parent
a6bf2e4517
commit
c77b88809d
@ -1,4 +1,10 @@
|
||||
<div class="edit-item">
|
||||
@using Orchard.ContentManagement
|
||||
@using Orchard.Utility.Extensions
|
||||
@{
|
||||
ContentItem contentItem = Model.ContentItem;
|
||||
Html.AddPageClassNames("edit-" + contentItem.ContentType.HtmlClassify());
|
||||
}
|
||||
<div class="edit-item">
|
||||
<div class="edit-item-primary">
|
||||
@if (Model.Content != null) {
|
||||
<div class="edit-item-content">
|
||||
|
@ -5,6 +5,7 @@
|
||||
}
|
||||
|
||||
var contentTypeClassName = ((string)Model.ContentItem.ContentType).HtmlClassify();
|
||||
Html.AddPageClassNames("display-" + contentTypeClassName);
|
||||
}
|
||||
<article class="content-item @contentTypeClassName">
|
||||
<header>
|
||||
|
Loading…
Reference in New Issue
Block a user