Commit a9d041720e95c684c14f6eb0ddab7db9b478f735

Thomas de Grivel 2022-01-22T11:44:14

avatar in repo members

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/lib/kmxgit_web/templates/repository/show_properties.html.heex b/lib/kmxgit_web/templates/repository/show_properties.html.heex
index d3bf8c3..ff47f5e 100644
--- a/lib/kmxgit_web/templates/repository/show_properties.html.heex
+++ b/lib/kmxgit_web/templates/repository/show_properties.html.heex
@@ -41,13 +41,9 @@
       <% end %>
     </th>
     <td>
-      <ul>
-        <%= for user <- @members do %>
-          <li>
-            <%= link user.slug.slug, to: Routes.slug_path(@conn, :show, user.slug.slug) %>
-          </li>
-        <% end %>
-      </ul>
+      <%= for user <- @members do %>
+        <%= render("avatar.html", conn: @conn, email: user.email, size: 32, title: user.slug.slug) %>
+      <% end %>
     </td>
   </tr>
   <%= if @git.tags do %>