fix some crap

This commit is contained in:
Sijmen 2019-11-04 00:41:08 +01:00
parent 492f75cbdf
commit 7eb6911f03
Signed by: vijfhoek
GPG key ID: DAF7821E067D9C48
2 changed files with 8 additions and 0 deletions

View file

@ -1,6 +1,10 @@
:- http_handler(root(cart/add/ProductName), cart_add(ProductName), []). :- http_handler(root(cart/add/ProductName), cart_add(ProductName), []).
% GET /cart/add/ProductName % GET /cart/add/ProductName
cart_add(ProductName, Request) :-
\+ product(ProductName, _), !,
http_redirect(see_other, root(.), Request).
cart_add(ProductName, Request) :- cart_add(ProductName, Request) :-
http_session_id(SessionId), http_session_id(SessionId),
assert_cart_entry(SessionId, ProductName), assert_cart_entry(SessionId, ProductName),

View file

@ -25,6 +25,10 @@ main {
border-radius: 5px; border-radius: 5px;
color: rgba(0, 0, 0, .87); color: rgba(0, 0, 0, .87);
text-decoration: none; text-decoration: none;
overflow-wrap: break-word;
overflow: hidden;
text-overflow: ellipsis;
} }
.product__name { .product__name {