From 615c903a1bdb1851721e253ebf24de1e44477e97 Mon Sep 17 00:00:00 2001 From: Jovan Popovic Date: Sun, 5 Feb 2017 14:28:30 +0100 Subject: [PATCH] Updated belgrade-product-catalog Added changes from the BelgradeProductCatalog before renaming folder. --- .../Controllers/CompanyController.cs | 1 + .../ProductCatalog.xproj | 2 +- .../Views/ProductCatalog/Index.cshtml | 4 +- .../Views/Shared/_Layout.cshtml | 2 - .../sql-scripts/1 setup.sql | 14 ++-- .../sql-scripts/3 setup-temporal.sql | 2 +- .../wwwroot/dashboard.html | 67 ++++++++++++++++ .../wwwroot/index.html | 3 +- .../wwwroot/media/js/dashboard.js | 76 +++++++++++++++++++ .../wwwroot/temporal.html | 3 +- 10 files changed, 158 insertions(+), 16 deletions(-) create mode 100644 samples/demos/belgrade-product-catalog-demo/wwwroot/dashboard.html create mode 100644 samples/demos/belgrade-product-catalog-demo/wwwroot/media/js/dashboard.js diff --git a/samples/demos/belgrade-product-catalog-demo/Controllers/CompanyController.cs b/samples/demos/belgrade-product-catalog-demo/Controllers/CompanyController.cs index b79ee644..84003f3f 100644 --- a/samples/demos/belgrade-product-catalog-demo/Controllers/CompanyController.cs +++ b/samples/demos/belgrade-product-catalog-demo/Controllers/CompanyController.cs @@ -38,6 +38,7 @@ namespace ProductCatalog.Controllers case "index": referer = "/index.html"; break; case "report1": referer = "/report-pie.html"; break; case "report2": referer = "/report-multibar.html"; break; + case "dashboard": referer = "/dashboard.html"; break; case "temporal": referer = "/temporal.html"; break; default: referer = "/index.html"; break; } diff --git a/samples/demos/belgrade-product-catalog-demo/ProductCatalog.xproj b/samples/demos/belgrade-product-catalog-demo/ProductCatalog.xproj index bddc4a1d..d6cd6870 100644 --- a/samples/demos/belgrade-product-catalog-demo/ProductCatalog.xproj +++ b/samples/demos/belgrade-product-catalog-demo/ProductCatalog.xproj @@ -7,7 +7,7 @@ 7e230e5a-b0b6-4f56-9561-942fd1817b80 - product_catalog + ProductCatalog .\obj .\bin\ v4.6 diff --git a/samples/demos/belgrade-product-catalog-demo/Views/ProductCatalog/Index.cshtml b/samples/demos/belgrade-product-catalog-demo/Views/ProductCatalog/Index.cshtml index 47d6b9c3..aeb38ab5 100644 --- a/samples/demos/belgrade-product-catalog-demo/Views/ProductCatalog/Index.cshtml +++ b/samples/demos/belgrade-product-catalog-demo/Views/ProductCatalog/Index.cshtml @@ -90,8 +90,8 @@ @product.Color @product.Price @product.Quantity - @product.Data.MadeIn - @(product.Tags==null?string.Empty:string.Join(", ", product.Tags)) + @(product.Data == null ? string.Empty : product.Data.MadeIn) + @(product.Tags==null ? string.Empty : string.Join(", ", product.Tags)) } diff --git a/samples/demos/belgrade-product-catalog-demo/Views/Shared/_Layout.cshtml b/samples/demos/belgrade-product-catalog-demo/Views/Shared/_Layout.cshtml index 84beae84..1a9ba475 100644 --- a/samples/demos/belgrade-product-catalog-demo/Views/Shared/_Layout.cshtml +++ b/samples/demos/belgrade-product-catalog-demo/Views/Shared/_Layout.cshtml @@ -27,8 +27,6 @@