mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
#19869: Fixing media overriding a content item title in summary
Work Item: 19869 --HG-- branch : 1.x
This commit is contained in:
@@ -318,6 +318,9 @@
|
||||
<Content Include="Styles\font-awesome\font\fontawesome-webfont.woff" />
|
||||
<Content Include="Styles\font-awesome\font\FontAwesome.otf" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Views\Media.Summary.cshtml" />
|
||||
</ItemGroup>
|
||||
<PropertyGroup>
|
||||
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
|
||||
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
|
||||
|
@@ -0,0 +1,22 @@
|
||||
@using Orchard.MediaLibrary.Models
|
||||
@using Orchard.Utility.Extensions;
|
||||
@{
|
||||
MediaPart mediaPart = Model.ContentItem.MediaPart;
|
||||
var contentTypeClassName = mediaPart.ContentItem.ContentType.HtmlClassify();
|
||||
}
|
||||
<article class="media-item media-item-summary @contentTypeClassName">
|
||||
<header>
|
||||
@Display(Model.Header)
|
||||
@if (Model.Meta != null) {
|
||||
<div class="metadata">
|
||||
@Display(Model.Meta)
|
||||
</div>
|
||||
}
|
||||
</header>
|
||||
@Display(Model.Content)
|
||||
@if(Model.Footer != null) {
|
||||
<footer>
|
||||
@Display(Model.Footer)
|
||||
</footer>
|
||||
}
|
||||
</article>
|
@@ -2,7 +2,6 @@
|
||||
@using Orchard.Utility.Extensions;
|
||||
@{
|
||||
MediaPart mediaPart = Model.ContentItem.MediaPart;
|
||||
Layout.Title = mediaPart.Title;
|
||||
var contentTypeClassName = mediaPart.ContentItem.ContentType.HtmlClassify();
|
||||
}
|
||||
<article class="media-item media-item-summary-admin @contentTypeClassName">
|
||||
|
@@ -2,7 +2,3 @@
|
||||
@{
|
||||
OEmbedPart oEmbedPart = Model.ContentPart;
|
||||
}
|
||||
|
||||
<a href="@oEmbedPart.Source" target="_blank" class="button">
|
||||
<span>@T("Preview")</span>
|
||||
</a>
|
Reference in New Issue
Block a user