add: products ui
This commit is contained in:
parent
8f76578f1b
commit
fd529d3847
31 changed files with 1041 additions and 49 deletions
|
@ -2681,3 +2681,23 @@
|
|||
(td (text "{{ ((post.likes + 1) / (post.dislikes + 1))|round(method=\"ceil\", precision=2) }}"))
|
||||
(td (span ("class" "date short") (text "{{ post.created }}"))))
|
||||
(text "{%- endmacro %}")
|
||||
|
||||
(text "{% macro product_listing_card(product, owner=false, edit=false) -%}")
|
||||
(a
|
||||
("class" "card button lowered w_full flex flex_col gap_2")
|
||||
("href" "/product/{{ product.id }}{% if edit -%} /edit {%- endif %}")
|
||||
(text "{% if owner -%}")
|
||||
(text "{{ self::full_username(user=owner) }}")
|
||||
(text "{%- endif %}")
|
||||
|
||||
(h3
|
||||
("class" "flex gap_2 items_center {% if not product.on_sale -%} fade {%- endif %}")
|
||||
("style" "height: 24px; text-decoration: {% if not product.on_sale -%} line-through {%- else -%} none {%- endif %}")
|
||||
(icon (text "package"))
|
||||
(text "{{ product.title }}"))
|
||||
(h4
|
||||
("class" "flex gap_2 items_center")
|
||||
("style" "height: 18px")
|
||||
(icon (text "badge-cent"))
|
||||
(text "{{ product.price }}")))
|
||||
(text "{%- endmacro %}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue