Commit 2d01e70566c7d54718d5567ec1b14714be6beae2

Thomas de Grivel 2022-01-22T12:17:15

show users avatar in org show

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/organisation/show.html.heex b/lib/kmxgit_web/templates/organisation/show.html.heex
index 891a362..a6c0cd1 100644
--- a/lib/kmxgit_web/templates/organisation/show.html.heex
+++ b/lib/kmxgit_web/templates/organisation/show.html.heex
@@ -61,13 +61,9 @@
             <% end %>
           </th>
           <td>
-            <ul>
-              <%= for user <- @org.users do %>
-                <li>
-                  <%= link(user.slug.slug, to: Routes.slug_path(@conn, :show, user.slug.slug), class: "user") %>
-                </li>
-              <% end %>
-            </ul>
+            <%= for user <- @org.users do %>
+              <%= render(KmxgitWeb.UserView, "avatar.html", conn: @conn, email: user.email, size: 48, title: user.slug.slug, class: "") %>
+            <% end %>
           </td>
         </tr>
         <tr>