add: apps js sdk
This commit is contained in:
parent
e393221b4f
commit
636ecce9f4
11 changed files with 223 additions and 41 deletions
|
@ -1142,16 +1142,6 @@
|
|||
(text "{{ icon \"circle-user-round\" }}")
|
||||
(span
|
||||
(text "{{ text \"auth:link.my_profile\" }}")))
|
||||
(a
|
||||
("href" "/journals/0/0")
|
||||
(icon (text "notebook"))
|
||||
(str (text "general:link.journals")))
|
||||
(text "{% if config.lw_host -%}")
|
||||
(button
|
||||
("onclick" "document.getElementById('littleweb').showModal()")
|
||||
(icon (text "globe"))
|
||||
(str (text "general:link.little_web")))
|
||||
(text "{%- endif %}")
|
||||
(text "{% if not user.settings.disable_achievements -%}")
|
||||
(a
|
||||
("href" "/achievements")
|
||||
|
|
|
@ -39,12 +39,6 @@
|
|||
("title" "Create post")
|
||||
(icon (text "square-pen")))
|
||||
|
||||
(a
|
||||
("href" "/chats/0/0")
|
||||
("class" "button {% if selected == 'chats' -%}active{%- endif %}")
|
||||
("title" "Chats")
|
||||
(icon (text "message-circle")))
|
||||
|
||||
(a
|
||||
("href" "/requests")
|
||||
("class" "button {% if selected == 'requests' -%}active{%- endif %}")
|
||||
|
@ -65,6 +59,43 @@
|
|||
("id" "notifications_span")
|
||||
(text "{{ user.notification_count }}")))
|
||||
|
||||
(text "{% if user -%}")
|
||||
(div
|
||||
("class" "dropdown")
|
||||
(button
|
||||
("class" "flex-row {% if selected == 'chats' or selected == 'journals' -%}active{%- endif %}")
|
||||
("onclick" "trigger('atto::hooks::dropdown', [event])")
|
||||
("exclude" "dropdown")
|
||||
("title" "More services")
|
||||
(icon (text "grip")))
|
||||
|
||||
(div
|
||||
("class" "inner")
|
||||
(a
|
||||
("href" "/chats/0/0")
|
||||
("title" "Chats")
|
||||
(icon (text "message-circle"))
|
||||
(str (text "communities:label.chats")))
|
||||
(a
|
||||
("href" "/journals/0/0")
|
||||
(icon (text "notebook"))
|
||||
(str (text "general:link.journals")))
|
||||
(a
|
||||
("href" "/forges")
|
||||
(icon (text "anvil"))
|
||||
(str (text "forge:label.forges")))
|
||||
(a
|
||||
("href" "/developer")
|
||||
(icon (text "code"))
|
||||
(str (text "developer:label.apps")))
|
||||
(text "{% if config.lw_host -%}")
|
||||
(button
|
||||
("onclick" "document.getElementById('littleweb').showModal()")
|
||||
(icon (text "globe"))
|
||||
(str (text "general:link.little_web")))
|
||||
(text "{%- endif %}")))
|
||||
(text "{%- endif %}")
|
||||
|
||||
(text "{% if not hide_user_menu -%}")
|
||||
(div
|
||||
("class" "dropdown")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue