meta/lib/meta_web/templates/layout/_sidebar_nav.html.eex

31 lines
1.1 KiB
Elixir
Raw Permalink Normal View History

<ul>
<li><%= link "Home", to: Routes.page_path(@conn, :index) %></li>
<%= if @current_user do %>
<li>Logged in as <%= @current_user.username %></li>
<li><%= link "Settings", to: Routes.user_settings_path(@conn, :edit) %></li>
<li><%= link "Billing", to: Routes.billing_path(@conn, :index) %></li>
<li><%= link "Log out", to: Routes.user_session_path(@conn, :delete), method: :delete %></li>
2021-04-07 17:23:48 +02:00
<hr />
<!--
<li><%= link "Web Hosting", to: Routes.page_path(@conn, :index) %></li>
<li><%= link "Name Service", to: Routes.page_path(@conn, :index) %></li>
<li><%= link "Storage Services", to: Routes.page_path(@conn, :index) %></li>
-->
<li><%= link "Virtual Machines", to: Routes.virtual_machine_path(@conn, :index) %></li>
<% else %>
<li><%= link "Log in", to: Routes.user_session_path(@conn, :new) %></li>
<li><%= link "Register", to: Routes.user_registration_path(@conn, :new) %></li>
<% end %>
<hr />
<li>
2021-04-07 17:23:48 +02:00
<a href="https://status.recycled.cloud">
Infrastructure status
</a>
</li>
<a href="https://recycled.cloud">
Back to recycled.cloud &crarr;
</a>
2021-04-07 17:23:48 +02:00
</li>
</ul>