Hash :
ef78743a
Author :
Thomas de Grivel
Date :
2021-11-22T13:16:44
admin: repositories
<div class="container-fluid">
<h1>Repositories</h1>
<table class="table admin-index">
<tr>
<th><%= gettext "Id" %></th>
<th><%= gettext "Owner" %></th>
<th><%= gettext "Slug" %></th>
</tr>
<%= Enum.map @repos, fn(repo) -> %>
<tr>
<td><%= link repo.id, to: Routes.admin_repository_path(@conn, :show, repo) %></td>
<td>
<%= case owner = Repository.owner(repo) do %>
<% %Organisation{} -> %>
<%= link owner.name || owner.slug.slug, to: Routes.admin_organisation_path(@conn, :show, owner) %>
<% %User{} -> %>
<%= link owner.slug.slug, to: Routes.admin_user_path(@conn, :show, owner) %>
<% end %>
</td>
<td><%= link Repository.full_slug(repo), to: Routes.admin_repository_path(@conn, :show, repo) %></td>
</tr>
<% end %>
</table>
</div>