add: ProfileStyle products
This commit is contained in:
parent
077e9252e3
commit
95cb889080
19 changed files with 525 additions and 54 deletions
|
@ -1162,6 +1162,26 @@
|
|||
("class" "fade")
|
||||
(text "This represents the site theme shown to users viewing
|
||||
your profile.")))))
|
||||
(text "{% if profile.applied_configurations|length > 0 -%}")
|
||||
(div
|
||||
("class" "card_nest")
|
||||
("ui_ident" "applied_configurations")
|
||||
(div
|
||||
("class" "card small flex items_center gap_2")
|
||||
(icon (text "cog"))
|
||||
(str (text "setttings:label.applied_configurations")))
|
||||
(div
|
||||
("class" "card")
|
||||
(p (text "Products that you have purchased and applied to your profile are displayed below. Snippets are always synced to the product, meaning the owner could update it at any time."))
|
||||
(ul
|
||||
(text "{% for cnf in profile.applied_configurations -%}")
|
||||
(li
|
||||
(text "{{ cnf[0] }} ")
|
||||
(a
|
||||
("href" "/product/{{ cnf[1] }}")
|
||||
(text "{{ cnf[1] }}")))
|
||||
(text "{%- endfor %}"))))
|
||||
(text "{%- endif %}")
|
||||
(button
|
||||
("onclick" "save_settings()")
|
||||
("id" "save_button")
|
||||
|
@ -1742,6 +1762,7 @@
|
|||
\"import_export\",
|
||||
\"theme_preference\",
|
||||
\"profile_theme\",
|
||||
\"applied_configurations\",
|
||||
]);
|
||||
|
||||
ui.generate_settings_ui(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue