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 19:44:14 +02:00
|
|
|
<.navbar_brand class="ml-1">
|
2024-05-13 12:25:37 +02:00
|
|
|
<.navbar_item>
|
|
|
|
<.title is-4>
|
2024-05-16 15:59:56 +02:00
|
|
|
<.link patch={~p"/"} class="has-text-dark">
|
2024-05-16 15:23:26 +02:00
|
|
|
Freedive
|
|
|
|
</.link>
|
2024-05-13 12:25:37 +02:00
|
|
|
</.title>
|
|
|
|
</.navbar_item>
|
2024-05-13 11:21:05 +02:00
|
|
|
|
2024-05-13 12:25:37 +02:00
|
|
|
<.navbar_burger target="navbar_top" />
|
|
|
|
</.navbar_brand>
|
2024-05-13 11:21:05 +02:00
|
|
|
|
2024-05-13 19:44:14 +02:00
|
|
|
<.navbar_menu id="navbar_top" class="mr-1">
|
2024-05-16 15:23:26 +02:00
|
|
|
<%!-- <%= if @current_user do %>
|
2024-05-13 12:25:37 +02:00
|
|
|
<.navbar_start>
|
|
|
|
<.navbar_item has-dropdown is-hoverable>
|
|
|
|
<.navbar_link>
|
2024-05-14 21:58:42 +02:00
|
|
|
<.icon for="compute" aria-hidden="true">
|
|
|
|
Compute
|
|
|
|
</.icon>
|
2024-05-13 12:25:37 +02:00
|
|
|
</.navbar_link>
|
2024-05-13 11:21:05 +02:00
|
|
|
|
2024-05-13 12:25:37 +02:00
|
|
|
<.navbar_dropdown>
|
2024-05-14 21:58:42 +02:00
|
|
|
<.link href={~p"/compute/apps"} class="navbar-item">
|
|
|
|
Apps
|
|
|
|
</.link>
|
|
|
|
|
|
|
|
<.link href={~p"/compute/tasks"} class="navbar-item">
|
|
|
|
Tasks
|
|
|
|
</.link>
|
2024-05-13 12:25:37 +02:00
|
|
|
</.navbar_dropdown>
|
|
|
|
</.navbar_item>
|
2024-05-13 11:21:05 +02:00
|
|
|
|
2024-05-13 12:25:37 +02:00
|
|
|
<.navbar_item has-dropdown is-hoverable>
|
|
|
|
<.navbar_link>
|
2024-05-14 21:58:42 +02:00
|
|
|
<.icon for="storage" aria-hidden="true">
|
|
|
|
Storage
|
|
|
|
</.icon>
|
2024-05-13 12:25:37 +02:00
|
|
|
</.navbar_link>
|
2024-05-13 11:21:05 +02:00
|
|
|
|
2024-05-13 12:25:37 +02:00
|
|
|
<.navbar_dropdown>
|
2024-05-14 21:58:42 +02:00
|
|
|
<.link href={~p"/storage/local"} class="navbar-item">
|
|
|
|
Local
|
|
|
|
</.link>
|
|
|
|
|
|
|
|
<.link href={~p"/storage/shared"} class="navbar-item">
|
|
|
|
Shared
|
|
|
|
</.link>
|
|
|
|
|
|
|
|
<.link href={~p"/storage/remote"} class="navbar-item">
|
|
|
|
Remote
|
|
|
|
</.link>
|
2024-05-13 12:25:37 +02:00
|
|
|
</.navbar_dropdown>
|
|
|
|
</.navbar_item>
|
2024-05-13 11:21:05 +02:00
|
|
|
|
2024-05-13 12:25:37 +02:00
|
|
|
<.navbar_item has-dropdown is-hoverable>
|
|
|
|
<.navbar_link>
|
2024-05-14 21:58:42 +02:00
|
|
|
<.icon for="network" aria-hidden="true">
|
|
|
|
Network
|
|
|
|
</.icon>
|
2024-05-13 12:25:37 +02:00
|
|
|
</.navbar_link>
|
2024-05-13 11:21:05 +02:00
|
|
|
|
2024-05-13 12:25:37 +02:00
|
|
|
<.navbar_dropdown>
|
2024-05-14 21:58:42 +02:00
|
|
|
<.link href={~p"/network/public"} class="navbar-item">
|
|
|
|
Public
|
|
|
|
</.link>
|
|
|
|
|
|
|
|
<.link href={~p"/network/private"} class="navbar-item">
|
|
|
|
Private
|
|
|
|
</.link>
|
|
|
|
|
|
|
|
<.navbar_divider />
|
|
|
|
|
|
|
|
<.link href={~p"/network/endpoints"} class="navbar-item">
|
|
|
|
Endpoints
|
|
|
|
</.link>
|
2024-05-13 12:25:37 +02:00
|
|
|
</.navbar_dropdown>
|
|
|
|
</.navbar_item>
|
|
|
|
</.navbar_start>
|
2024-05-16 15:23:26 +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 11:21:05 +02:00
|
|
|
|
2024-05-13 19:35:09 +02:00
|
|
|
<.navbar_item has-dropdown is-hoverable>
|
2024-05-13 11:21:05 +02:00
|
|
|
<.navbar_link>
|
2024-05-14 21:58:42 +02:00
|
|
|
<.icon for="system" aria-hidden="true">
|
|
|
|
System
|
|
|
|
</.icon>
|
2024-05-13 11:21:05 +02:00
|
|
|
</.navbar_link>
|
|
|
|
|
|
|
|
<.navbar_dropdown>
|
2024-05-16 15:23:26 +02:00
|
|
|
<%!-- <.link href={~p"/updates"} class="navbar-item">
|
2024-05-14 01:21:07 +02:00
|
|
|
Software updates
|
|
|
|
</.link>
|
2024-05-13 12:25:37 +02:00
|
|
|
<.navbar_divider />
|
2024-05-14 01:21:07 +02:00
|
|
|
<.link href={~p"/packages"} class="navbar-item">
|
|
|
|
Packages
|
2024-05-16 15:23:26 +02:00
|
|
|
</.link> --%>
|
2024-05-16 15:59:56 +02:00
|
|
|
<.link patch={~p"/services"} class="navbar-item">
|
2024-05-13 19:35:09 +02:00
|
|
|
Services
|
|
|
|
</.link>
|
2024-05-13 11:21:05 +02:00
|
|
|
</.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>
|
2024-05-14 21:58:42 +02:00
|
|
|
<.icon for="account" aria-hidden="true">
|
|
|
|
Account
|
|
|
|
</.icon>
|
2024-05-13 12:25:37 +02:00
|
|
|
</.navbar_link>
|
|
|
|
|
|
|
|
<.navbar_dropdown>
|
|
|
|
<%= if @current_user do %>
|
2024-05-16 15:59:56 +02:00
|
|
|
<.link patch={~p"/users/settings"} class="navbar-item">
|
2024-05-13 18:34:00 +02:00
|
|
|
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">
|
2024-05-14 21:58:42 +02:00
|
|
|
Log in
|
2024-05-13 18:34:00 +02:00
|
|
|
</.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>
|