ui: add org settings and user settings to mobile nav
This commit is contained in:
parent
258e01af28
commit
172b830b6b
1 changed files with 14 additions and 1 deletions
|
|
@ -580,8 +580,21 @@ defmodule ToweropsWeb.Layouts do
|
|||
</.mobile_nav_link>
|
||||
</div>
|
||||
|
||||
<!-- Help & account -->
|
||||
<!-- Organization & account -->
|
||||
<div class="px-2 py-3 border-t border-gray-100 dark:border-white/5">
|
||||
<p class="px-3 mb-1 text-[10px] font-semibold uppercase tracking-wider text-gray-400 dark:text-gray-500">
|
||||
{t("Account")}
|
||||
</p>
|
||||
<.mobile_nav_link
|
||||
:if={@current_organization}
|
||||
navigate={~p"/orgs/#{@current_organization.slug}/settings"}
|
||||
active={@active_page == "settings"}
|
||||
>
|
||||
<.icon name="hero-cog-6-tooth" class="size-5" /> {t("Organization Settings")}
|
||||
</.mobile_nav_link>
|
||||
<.mobile_nav_link navigate={~p"/users/settings"} active={@active_page == "user_settings"}>
|
||||
<.icon name="hero-user-circle" class="size-5" /> {t("My Settings")}
|
||||
</.mobile_nav_link>
|
||||
<.mobile_nav_link navigate={~p"/help"} active={@active_page == "help"}>
|
||||
<.icon name="hero-question-mark-circle" class="size-5" /> {t("Help")}
|
||||
</.mobile_nav_link>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue