mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-12-03 03:58:13 +08:00
Formatting descriptions in Gallery pages
--HG-- branch : 1.x
This commit is contained in:
@@ -59,13 +59,7 @@
|
||||
<div class="iconThumbnail">
|
||||
<div class="extensionDetails column">
|
||||
<div class="extensionName @if (item.Installed) {<text>installed</text>}">
|
||||
@if (!string.IsNullOrWhiteSpace(item.GalleryDetailsUrl)) {
|
||||
<a href="@item.GalleryDetailsUrl">
|
||||
<h2>@item.Title<span> - @T("Version: {0}", item.Version)</span></h2>
|
||||
</a>
|
||||
} else {
|
||||
<h2>@item.Title<span> - @T("Version: {0}", item.Version)</span></h2>
|
||||
}
|
||||
<h2>@item.Title<span> - @T("Version: {0}", item.Version)</span></h2>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -75,7 +69,16 @@
|
||||
</div>
|
||||
|
||||
<div class="properties">
|
||||
<p>@(item.Description ?? T("(No description").Text)</p>
|
||||
@{
|
||||
var description = item.Description ?? T("(No description").Text;
|
||||
}
|
||||
<p>@Html.Raw(Html.Encode(description).Replace("\n", "<br />"))</p>
|
||||
<p>
|
||||
@if (!string.IsNullOrWhiteSpace(item.GalleryDetailsUrl)) {
|
||||
<a href="@item.GalleryDetailsUrl">@T("more...")</a>
|
||||
}
|
||||
</p>
|
||||
|
||||
<ul class="pageStatus group">
|
||||
<li>@T("Last Updated: {0}", item.LastUpdated)</li>
|
||||
<li> | @T("Author: {0}", !string.IsNullOrEmpty(item.Authors) ? item.Authors : T("Unknown").ToString())</li>
|
||||
|
||||
@@ -64,14 +64,8 @@
|
||||
<div class="@extensionClass">
|
||||
<div class="extensionDetails column">
|
||||
<div class="extensionName @if (item.Installed) {<text>installed</text>}">
|
||||
@if (!string.IsNullOrWhiteSpace(item.GalleryDetailsUrl)) {
|
||||
<a href="@item.GalleryDetailsUrl">
|
||||
<h2>@item.Title<span> - @T("Version: {0}", item.Version)</span></h2>
|
||||
</a>
|
||||
} else {
|
||||
<h2>@item.Title<span> - @T("Version: {0}", item.Version)</span></h2>
|
||||
}
|
||||
</div>
|
||||
<h2>@item.Title<span> - @T("Version: {0}", item.Version)</span></h2>
|
||||
</div>
|
||||
|
||||
<div class="related">
|
||||
@Html.ActionLink(T("Install").ToString(), "InstallGallery", "PackagingServices", new RouteValueDictionary { { "packageId", item.PackageId }, { "version", item.Version }, { "sourceId", item.Source.Id }, { "redirectUrl", HttpContext.Current.Request.RawUrl } }, null)@T(" | ")
|
||||
@@ -79,7 +73,15 @@
|
||||
</div>
|
||||
|
||||
<div class="properties">
|
||||
<p>@(item.Description == null ? T("(No description").Text : item.Description)</p>
|
||||
@{
|
||||
var description = item.Description ?? T("(No description").Text;
|
||||
}
|
||||
<p>@Html.Raw(Html.Encode(description).Replace("\n", "<br />"))</p>
|
||||
<p>
|
||||
@if (!string.IsNullOrWhiteSpace(item.GalleryDetailsUrl)) {
|
||||
<a href="@item.GalleryDetailsUrl">@T("more...")</a>
|
||||
}
|
||||
</p>
|
||||
<ul class="pageStatus group">
|
||||
<li>@T("Last Updated: {0}", item.LastUpdated)</li>
|
||||
<li> | @T("Author: {0}", !string.IsNullOrEmpty(item.Authors) ? item.Authors : T("Unknown").ToString())</li>
|
||||
|
||||
Reference in New Issue
Block a user