From c9c6c28bb886d90c1433553585d8b36a15439630 Mon Sep 17 00:00:00 2001 From: malik masis Date: Thu, 28 Jul 2022 14:05:51 +0300 Subject: [PATCH] Removed the unnecessary click view --- .../Pages/ProductDetail.cshtml | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/apps/public-web/src/EShopOnAbp.PublicWeb/Pages/ProductDetail.cshtml b/apps/public-web/src/EShopOnAbp.PublicWeb/Pages/ProductDetail.cshtml index 5656dc03..b4b9a644 100644 --- a/apps/public-web/src/EShopOnAbp.PublicWeb/Pages/ProductDetail.cshtml +++ b/apps/public-web/src/EShopOnAbp.PublicWeb/Pages/ProductDetail.cshtml @@ -8,10 +8,6 @@ @inject IStringLocalizer L @inject IOptions options -@{ - string pageHeader = Model.Product.Name; -} - @section styles{ } @@ -21,22 +17,16 @@ } -@if (Model.HasRemoteServiceError) -{ - pageHeader = L["CatalogServiceNotAvailable"]; -} -
-

@pageHeader

@{ var product = Model.Product; var productPrice = product.Price.ToString("C", new CultureInfo("en-US")); string productImage = !product.ImageName.IsNullOrEmpty() ? $"{options.Value.RemoteServices.Default.BaseUrl}product-images/{product.ImageName}" : $"{options.Value.RemoteServices.Default.BaseUrl}product-images/@product.ImageName"; string buyText = L["Index:AddToBasket"]; -
+
@product.Name
@@ -58,7 +48,7 @@
- } + }