Commit 49a75f7336e797573806ca63862ca62fb3df01e5

Thomas de Grivel 2023-08-30T12:16:26

move ci column in log, close to message

diff --git a/lib/kmxgit_web/templates/repository/log.html.heex b/lib/kmxgit_web/templates/repository/log.html.heex
index b104a26..f952eb9 100644
--- a/lib/kmxgit_web/templates/repository/log.html.heex
+++ b/lib/kmxgit_web/templates/repository/log.html.heex
@@ -23,8 +23,8 @@
           <tr>
             <th class="author"><%= gettext "Author" %></th>
             <th class="commit"><%= gettext "Commit" %></th>
-            <th class="ci"><%= gettext "CI" %></th>
             <th class="date"><%= gettext "Date" %></th>
+            <th class="ci"><%= gettext "CI" %></th>
             <th class="message"><%= gettext "Message" %></th>
           </tr>
         </thead>
@@ -37,6 +37,9 @@
               <td class="hash">
                 <%= link String.slice(commit.hash, 0..7), id: commit.hash, to: Routes.repository_path(@conn, :show, Repository.owner_slug(@repo), Repository.splat(@repo, ["_commit", commit.hash])) %>
               </td>
+              <td class="date">
+                <%= NaiveDateTime.add(~N[1970-01-01 00:00:00], commit.date) %>
+              </td>
               <td class="ci">
                 <%= if File.exists?("priv/ci/#{Repository.full_slug(@repo)}/ci/log/rbpkg_ci.#{@repo.slug}.commit_#{commit.hash}.html") do %>
                   <% ci_status_path = Routes.repository_path(@conn, :show, Repository.owner_slug(@repo), Repository.splat(@repo, ["_ci", "ci", "log", "rbpkg_ci.#{@repo.slug}.commit_#{commit.hash}.html"])) %>
@@ -45,9 +48,6 @@
                   <% end %>
                 <% end %>
               </td>
-              <td class="date">
-                <%= NaiveDateTime.add(~N[1970-01-01 00:00:00], commit.date) %>
-              </td>
               <td class="message" %>
                 <%= commit.message %>
               </td>