freedive/lib/freedive_web/components/layouts/app.html.heex

105 lines
2.8 KiB
Text
Raw Normal View History

2024-05-13 12:25:37 +02:00
<main class="container">
<.flash_group flash={@flash} />
2024-05-13 18:46:52 +02:00
<.navbar is-fixed-top is-light>
2024-05-13 12:25:37 +02:00
<.navbar_brand>
<.navbar_item>
<.title is-4>
Freedive
</.title>
</.navbar_item>
2024-05-13 12:25:37 +02:00
<.navbar_burger target="navbar_top" />
</.navbar_brand>
2024-05-13 12:25:37 +02:00
<.navbar_menu id="navbar_top">
2024-05-13 18:34:00 +02:00
<%!-- <%= if @current_user do %>
2024-05-13 12:25:37 +02:00
<.navbar_start>
<.navbar_item has-dropdown is-hoverable>
<.navbar_link>
Compute
</.navbar_link>
2024-05-13 12:25:37 +02:00
<.navbar_dropdown>
<.navbar_item>
<.link>Bastille Jails</.link>
</.navbar_item>
</.navbar_dropdown>
</.navbar_item>
2024-05-13 12:25:37 +02:00
<.navbar_item has-dropdown is-hoverable>
<.navbar_link>
Storage
</.navbar_link>
2024-05-13 12:25:37 +02:00
<.navbar_dropdown>
<.navbar_item>
<.link>Shared Folders</.link>
</.navbar_item>
</.navbar_dropdown>
</.navbar_item>
2024-05-13 12:25:37 +02:00
<.navbar_item has-dropdown is-hoverable>
<.navbar_link>
Network
</.navbar_link>
2024-05-13 12:25:37 +02:00
<.navbar_dropdown>
<.navbar_item>
<.link>Private Network</.link>
</.navbar_item>
</.navbar_dropdown>
</.navbar_item>
</.navbar_start>
2024-05-13 18:34:00 +02:00
<% end %> --%>
2024-05-13 12:01:43 +02:00
2024-05-13 12:25:37 +02:00
<.navbar_end>
<%= if @current_user do %>
<.navbar_item>
<%= @current_user.email %>
</.navbar_item>
2024-05-13 19:35:09 +02:00
<.navbar_item has-dropdown is-hoverable>
<.navbar_link>
2024-05-13 12:25:37 +02:00
System
</.navbar_link>
<.navbar_dropdown>
2024-05-13 19:35:09 +02:00
<%!-- <.navbar_item>
2024-05-13 12:25:37 +02:00
<.link>Software Updates</.link>
</.navbar_item>
<.navbar_divider />
<.navbar_item>
<.link>Packages</.link>
2024-05-13 19:35:09 +02:00
</.navbar_item> --%>
<.link href={~p"/services"} class="navbar-item">
Services
</.link>
</.navbar_dropdown>
2024-05-13 19:35:09 +02:00
</.navbar_item>
2024-05-13 12:25:37 +02:00
<% end %>
<.navbar_item has-dropdown is-hoverable>
<.navbar_link>
Account
</.navbar_link>
<.navbar_dropdown>
<%= if @current_user do %>
2024-05-13 18:34:00 +02:00
<.link href={~p"/users/settings"} class="navbar-item">
Settings
</.link>
<.link href={~p"/users/log_out"} method="delete" class="navbar-item">
Log out
</.link>
2024-05-13 12:25:37 +02:00
<% else %>
2024-05-13 18:34:00 +02:00
<.link href={~p"/users/log_in"} class="navbar-item">
Log in
</.link>
2024-05-13 12:25:37 +02:00
<% end %>
</.navbar_dropdown>
</.navbar_item>
</.navbar_end>
</.navbar_menu>
</.navbar>
<%= @inner_content %>
2024-05-09 21:28:48 +02:00
</main>