diff --git a/grails-app/controllers/net/codebuilders/mybusiness/ProductController.groovy b/grails-app/controllers/net/codebuilders/mybusiness/ProductController.groovy index 3dcba73..ca4ffb1 100644 --- a/grails-app/controllers/net/codebuilders/mybusiness/ProductController.groovy +++ b/grails-app/controllers/net/codebuilders/mybusiness/ProductController.groovy @@ -306,11 +306,13 @@ class ProductController { def notices = noticeService.getCurrentNoticesByPage("Product") // used for no-image if a product is missing one. - def noImage = Photo.findByName("no-image")?.photo?.getCloudFile("large") + def noImageLarge = Photo.findByName("no-image")?.photo?.getCloudFile("large") + def noImageSmall = Photo.findByName("no-image")?.photo?.getCloudFile("small") // render(view:'index', model: [message: 'Hello world', result: result, fieldsList: indexedProperties.keySet()]) - respond productList, model: [productCategory: productCategory, productCount: productCount, noticeList: notices, noImage: noImage] + respond productList, model: [productCategory: productCategory, productCount: productCount, + noticeList: notices, noImageLarge: noImageLarge, noImageSmall: noImageSmall] } diff --git a/grails-app/views/product/index.gsp b/grails-app/views/product/index.gsp index df9893f..ef7af3a 100644 --- a/grails-app/views/product/index.gsp +++ b/grails-app/views/product/index.gsp @@ -1,71 +1,76 @@ -
- -+ | ||
|
- SKU: + | +SKU:
- - + ${product?.shortDescription} List Price: + currencyCode="USD"/> @@ -75,30 +80,30 @@ - |
+
-