Commit a2b7998994dabe473b3ede1e624a71eaa5f01f2f

Thomas de Grivel 2024-05-14T15:38:07

[admin] GitManager.public_access?

diff --git a/lib/kmxgit_web/templates/admin/repository/show.html.heex b/lib/kmxgit_web/templates/admin/repository/show.html.heex
index 27156a1..d0eff16 100644
--- a/lib/kmxgit_web/templates/admin/repository/show.html.heex
+++ b/lib/kmxgit_web/templates/admin/repository/show.html.heex
@@ -23,7 +23,7 @@
       <th><%= gettext "Slug" %></th>
       <td><%= link Repository.full_slug(@repo), to: Routes.repository_path(@conn, :show, Repository.owner_slug(@repo), Repository.splat(@repo)) %></td>
     </tr>
-    <%= if @repo.public_access do %>
+    <%= if @public_access do %>
       <tr>
         <th><%= gettext "Git HTTP" %></th>
         <td><%= Repository.http_url(@repo) %></td>
@@ -36,7 +36,7 @@
     <tr>
       <th><%= gettext "Public access ?" %></th>
       <td>
-        <%= if @repo.public_access do %>
+        <%= if @public_access do %>
           <%= gettext "public" %>
         <% else %>
           <%= gettext "private" %>