Commit 491832ea3634eebc650f54ae041dfabda687a04d

Thomas de Grivel 2023-11-10T09:40:41

fix ci status image

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/kmxgit_web/templates/repository/log.html.heex b/lib/kmxgit_web/templates/repository/log.html.heex
index 0b5a639..f29b5b2 100644
--- a/lib/kmxgit_web/templates/repository/log.html.heex
+++ b/lib/kmxgit_web/templates/repository/log.html.heex
@@ -44,7 +44,7 @@
                 <%= 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"])) %>
                   <%= link to: ci_status_path do %>
-                    <img src={"/_images/status_#{commit.ci_status}.32.png"} alt={commit.ci_status} class={"status-#{@git.log1.ci_status}"} />
+                    <img src={"/_images/status_#{commit.ci_status}.32.png"} alt={commit.ci_status} class={"status-#{commit.ci_status}"} />
                   <% end %>
                 <% end %>
               </td>