summaryrefslogtreecommitdiff
path: root/views.rkt
diff options
context:
space:
mode:
Diffstat (limited to 'views.rkt')
-rw-r--r--views.rkt5
1 files changed, 3 insertions, 2 deletions
diff --git a/views.rkt b/views.rkt
index 7dd6dbd..ccafb99 100644
--- a/views.rkt
+++ b/views.rkt
@@ -286,8 +286,9 @@
(a ((class "btn btn-danger") [href ,(format "/ferti/fertilizers/~a/destroy" id)])
"Supprimer")))
(page-template product-name
- `((h1 ((class "display-1 mb-3")) ,(or brand-name "Intrant générique"))
- (h5 ((class "display-5 mb-3")) ,product-name)
+ `((h1 ((class "display-1 mb-3")) ,product-name)
+ (h5 ((class "display-5 mb-3"))
+ ,(if (non-empty-string? brand-name) brand-name "Intrant générique"))
,button-group
,table)))
Copyright 2019--2026 Marius PETER