Hash :
0cd4a9bc
Author :
Thomas de Grivel
Date :
2021-12-11T12:13:29
<%= if @conn.assigns[:current_repository] do %>
<li class="nav-item">
<%= link Repository.full_slug(@repo),
to: Routes.repository_path(@conn, :show, Repository.owner_slug(@repo), Repository.splat(@repo)),
class: "nav-link" %>
</li>
<% end %>
<%= if @conn.assigns[:current_organisation] do %>
<li class="nav-item">
<%= link @current_organisation.name || @current_organisation.slug.slug,
to: Routes.slug_path(@conn, :show, @current_organisation.slug.slug),
class: "nav-link" %>
</li>
<% end %>
<li class="nav-item">
<%= link @current_user.slug.slug, to: Routes.slug_path(@conn, :show, @current_user.slug.slug), class: "nav-link" %>
</li>
<%= if @current_user.is_admin do %>
<li class="nav-item">
<%= link gettext("Admin"), to: Routes.admin_dashboard_path(@conn, :index), class: "nav-link" %>
</li>
<% end %>
<li class="nav-item">
<%= link gettext("Logout"), method: :delete, to: Routes.user_session_path(@conn, :delete), class: "nav-link" %>
</li>