Commit f3e03f67635d997b426cc06ea3dc2b67517e3471

Thomas de Grivel 2022-01-24T16:14:34

avatar in commit show

diff --git a/lib/kmxgit_web/templates/repository/commit.html.heex b/lib/kmxgit_web/templates/repository/commit.html.heex
index 6e6880d..4beb3e7 100644
--- a/lib/kmxgit_web/templates/repository/commit.html.heex
+++ b/lib/kmxgit_web/templates/repository/commit.html.heex
@@ -16,16 +16,13 @@
         <%= @commit.hash %>
       </h2>
       <div>
-        <b><%= gettext("Author") %> :</b>
-        <%= @commit.author %>
-      </div>
-      <div>
-        <b><%= gettext("Date") %> :</b>
+        <%= render(KmxgitWeb.UserView, "avatar.html", conn: @conn, email: @commit.author_email, size: 48, title: @commit.author, class: "commit-avatar") %>
         <%= @commit.date |> String.replace("T", " ") |> String.replace("+", " +") %>
+        <p>
+          <%= @commit.message %>
+        </p>
+        <div class="clear"></div>
       </div>
-      <p>
-        <%= @commit.message %>
-      </p>
       <%= if @diff_html do %>
         <div class="content_text">
           <div class="line_numbers">