add: better profile settings mobile ui
add: allow Atto-Grant cookie to act auth token for oauth grants
This commit is contained in:
parent
5844d23399
commit
ca8f510a3a
4 changed files with 90 additions and 38 deletions
|
@ -1,7 +1,6 @@
|
|||
(text "{% extends \"root.html\" %} {% block head %}")
|
||||
(title
|
||||
(text "Settings - {{ config.name }}"))
|
||||
|
||||
(text "{% endblock %} {% block body %} {{ macros::nav() }}")
|
||||
(main
|
||||
("class" "flex flex-col gap-2")
|
||||
|
@ -12,39 +11,30 @@
|
|||
(b
|
||||
(text "Editing other user's settings! Please be careful.")))
|
||||
(text "{%- endif %}")
|
||||
|
||||
; nav
|
||||
(div
|
||||
("class" "pillmenu")
|
||||
(a
|
||||
("data-tab-button" "account")
|
||||
("class" "active")
|
||||
("href" "#/account")
|
||||
(text "{{ icon \"smile\" }}")
|
||||
(span
|
||||
(text "{{ text \"settings:tab.account\" }}")))
|
||||
(a
|
||||
("data-tab-button" "profile")
|
||||
("href" "#/profile")
|
||||
(text "{{ icon \"user-round\" }}")
|
||||
(span
|
||||
(text "{{ text \"settings:tab.profile\" }}")))
|
||||
(a
|
||||
("data-tab-button" "theme")
|
||||
("href" "#/theme")
|
||||
(text "{{ icon \"paint-bucket\" }}")
|
||||
(span
|
||||
(text "{{ text \"settings:tab.theme\" }}")))
|
||||
(a
|
||||
("data-tab-button" "sessions")
|
||||
("href" "#/sessions")
|
||||
(text "{{ icon \"cookie\" }}")
|
||||
(span
|
||||
(text "{{ text \"settings:tab.sessions\" }}")))
|
||||
(a
|
||||
("data-tab-button" "connections")
|
||||
("href" "#/connections")
|
||||
(text "{{ icon \"cable\" }}")
|
||||
(span
|
||||
(text "{{ text \"settings:tab.connections\" }}"))))
|
||||
("class" "mobile_nav mobile")
|
||||
; primary nav
|
||||
(div
|
||||
("class" "dropdown")
|
||||
("style" "width: max-content")
|
||||
(button
|
||||
("class" "camo raised small")
|
||||
("onclick" "trigger('atto::hooks::dropdown', [event])")
|
||||
("exclude" "dropdown")
|
||||
(icon (text "sliders-horizontal"))
|
||||
(span ("class" "current_tab_text") (text "account")))
|
||||
(div
|
||||
("class" "inner left")
|
||||
(text "{{ macros::profile_settings_nav_options() }}"))))
|
||||
|
||||
; nav desktop
|
||||
(div
|
||||
("class" "desktop pillmenu")
|
||||
(text "{{ macros::profile_settings_nav_options() }}"))
|
||||
|
||||
; ...
|
||||
(div
|
||||
("class" "w-full flex flex-col gap-2")
|
||||
("data-tab" "account")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue