generated from t/malachite
add: user profiles and junk
This commit is contained in:
parent
6b8c33d27f
commit
2bd23f8214
28 changed files with 1139 additions and 108 deletions
|
@ -12,10 +12,10 @@
|
|||
|
||||
(meta ("name" "theme-color") ("content" "{{ theme_color }}"))
|
||||
(meta ("property" "og:type") ("content" "website"))
|
||||
(meta ("property" "og:site_name") ("content" "{{ name }}"))
|
||||
(meta ("property" "og:site_name") ("content" "{{ config.name }}"))
|
||||
|
||||
(meta ("property" "og:title") ("content" "{{ name }}"))
|
||||
(meta ("property" "twitter:title") ("content" "{{ name }}"))
|
||||
(meta ("property" "og:title") ("content" "{{ config.name }}"))
|
||||
(meta ("property" "twitter:title") ("content" "{{ config.name }}"))
|
||||
(link ("rel" "icon") ("href" "/public/favicon.svg"))
|
||||
|
||||
(script ("src" "/public/app.js?v={{ build_code }}") ("defer"))
|
||||
|
@ -24,6 +24,9 @@
|
|||
(text "{% block head %}{% endblock %}"))
|
||||
|
||||
(body
|
||||
("class" "{% if user and user.settings.use_system_font -%} use_system_font {%- endif %}")
|
||||
(text "{% if user and use_user_theme -%} {{ components::theme(user=user, theme_preference=user.settings.theme_preference) }} {%- endif %}")
|
||||
|
||||
; nav
|
||||
(nav
|
||||
("class" "flex w_full justify_between gap_2")
|
||||
|
@ -44,7 +47,7 @@
|
|||
("class" "inner left")
|
||||
(a
|
||||
("class" "button")
|
||||
("href" "/")
|
||||
("href" "{% if user -%} /chats {%- else -%} / {%- endif %}")
|
||||
(text "home"))
|
||||
(a
|
||||
("class" "button")
|
||||
|
@ -61,10 +64,6 @@
|
|||
("href" "{{ config.service_hosts.tetratto }}/auth/register")
|
||||
(text "sign up"))
|
||||
(text "{%- else -%}")
|
||||
(a
|
||||
("class" "button")
|
||||
("href" "/chats")
|
||||
(text "my chats"))
|
||||
(a
|
||||
("class" "button")
|
||||
("href" "{{ config.service_hosts.tetratto }}/settings")
|
||||
|
@ -74,7 +73,17 @@
|
|||
("onclick" "user_logout()")
|
||||
(text "logout"))
|
||||
(text "{%- endif %}")
|
||||
(text "{% block dropdown %}{% endblock %}"))))
|
||||
(text "{% block dropdown %}{% endblock %}")))
|
||||
(text "{% if user -%}")
|
||||
(a
|
||||
("href" "{{ config.service_hosts.tetratto }}/notifs")
|
||||
("class" "button camo fade")
|
||||
(text "{% if user.notification_count > 0 -%}")
|
||||
(span ("class" "red") (text "{{ icon \"bell-dot\" }}"))
|
||||
(text "{% else %}")
|
||||
(text "{{ icon \"bell\" }}")
|
||||
(text "{%- endif %}"))
|
||||
(text "{%- endif %}"))
|
||||
|
||||
(div
|
||||
("class" "side flex")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue