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
@using Grand.Web.AdminShared.Models.News
@model NewsItemModel
@{
var area = ViewContext.RouteData.Values["area"]?.ToString();
}
<partial name="Partials/WidgetZone.DetailsCommentsList" model="Model"/>
@if (!string.IsNullOrEmpty(Model.Id))
{
<partial name="Partials/WidgetZone.DetailsCommentsTop" model="Model"/>
<admin-card flush>
<admin-grid id="comments-grid"
read-url="@Url.Action("Comments", "News", new { filterByNewsItemId = Model.Id, area })"
destroy-url="@Url.Action("CommentDelete", "News", new { area })"
confirm-destroy="true">
<grid-column field="CustomerId" title="@Loc["Admin.Content.News.Comments.Fields.Customer"]" width="200">
<cell-template>
<a class="text-decoration-none" href="@Url.Action("Edit", "Customer", new { area })/{{ CustomerId }}">{{ CustomerInfo }}</a>
</cell-template>
</grid-column>
<grid-column field="CommentTitle" title="@Loc["Admin.Content.News.Comments.Fields.CommentTitle"]"/>
@*CommentText is encoded and has its line breaks turned into <br /> by the server (FormatText)*@
<grid-column field="CommentText" title="@Loc["Admin.Content.News.Comments.Fields.CommentText"]" encoded="false"/>
<grid-column field="CreatedOn" title="@Loc["Admin.Content.News.Comments.Fields.CreatedOn"]" width="200" format="{0:G}"/>
<grid-commands destroy="true" title="@Loc["Admin.Common.Delete"]" width="100"/>
</admin-grid>
</admin-card>
<partial name="Partials/WidgetZone.DetailsCommentsBottom" model="Model"/>
}
else
{
<div class="note note-info">
@Loc["Admin.Content.News.NewsItems.SaveBeforeEdit"]
</div>
}