fix some crap
This commit is contained in:
parent
492f75cbdf
commit
7eb6911f03
2 changed files with 8 additions and 0 deletions
|
@ -1,6 +1,10 @@
|
|||
:- http_handler(root(cart/add/ProductName), cart_add(ProductName), []).
|
||||
|
||||
% GET /cart/add/ProductName
|
||||
cart_add(ProductName, Request) :-
|
||||
\+ product(ProductName, _), !,
|
||||
http_redirect(see_other, root(.), Request).
|
||||
|
||||
cart_add(ProductName, Request) :-
|
||||
http_session_id(SessionId),
|
||||
assert_cart_entry(SessionId, ProductName),
|
||||
|
|
|
@ -25,6 +25,10 @@ main {
|
|||
border-radius: 5px;
|
||||
color: rgba(0, 0, 0, .87);
|
||||
text-decoration: none;
|
||||
|
||||
overflow-wrap: break-word;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.product__name {
|
||||
|
|
Loading…
Reference in a new issue