Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.
C# aspnet-corecsharpdockerdotnetecommerceecommerce-platformmongodbmulti-storemulti-vendornosqlonline-shopshoppingcart
Replace <b-tags> - News Item
DanielŻuławski829a4d53f49b
diff --git a/src/Web/Grand.Web/Views/News/NewsItem.cshtml b/src/Web/Grand.Web/Views/News/NewsItem.cshtmlindex c2fe07efc..2a34057f2 100644--- a/src/Web/Grand.Web/Views/News/NewsItem.cshtml+++ b/src/Web/Grand.Web/Views/News/NewsItem.cshtml@@ -9,18 +9,24 @@pagebuilder.AddMetaKeywordParts(Model.MetaKeywords);}<div class="page news-item-page">- <b-card class="mt-3" @if (!string.IsNullOrEmpty(Model.PictureModel.ImageUrl)) { <text> img-src="@Model.PictureModel.ImageUrl" img-alt="@Model.PictureModel.AlternateText" </text> }>- <template v-slot:header>+ <div class="card mt-3">+ <div class="card-header">+ @if (!string.IsNullOrEmpty(Model.PictureModel.ImageUrl))+ {+ <b-img-lazy class="img-fluid" src="@Model.PictureModel.ImageUrl" alt="@Model.PictureModel.AlternateText" />+ }<h1 class="h5 mb-0">@Model.Title</h1><span class="small text-muted">@Model.CreatedOn.ToString("D")</span>- </template>+ </div>@await Component.InvokeAsync("Widget", new { widgetZone = "newsitem_page_before_body", additionalData = Model.Id })- @Html.Raw(Model.Full)- </b-card>+ <div class="card-body">+ @Html.Raw(Model.Full)+ </div>+ </div>@await Component.InvokeAsync("Widget", new { widgetZone = "newsitem_page_before_comments", additionalData = Model.Id })@if (Model.AllowComments){@@ -68,8 +74,8 @@<div class="comments">@foreach (var comment in Model.Comments){- <b-card class="mb-3">- <template v-slot:header>+ <div class="card mb-3">+ <div class="card-header"><div class="d-inline-flex w-100"><h6 class="mb-0">@comment.CustomerName</h6><b-icon icon="calendar2-check" variant="info" class="mx-2"></b-icon>@@ -78,16 +84,16 @@<span>@comment.CreatedOn.ToString("g")</span></small></div>- </template>- <b-col cols="12" class="px-0">- <b-row>- <b-col>+ </div>+ <div class="col-12 px-0">+ <div class="row">+ <div class="col"><h5>@comment.CommentTitle</h5>@comment.CommentText- </b-col>- </b-row>- </b-col>- </b-card>+ </div>+ </div>+ </div>+ </div>}</div></div>