Commit 73ab313bea1d297e13b3084bb0efb2570f5dd4f5

Thomas de Grivel 2023-02-28T12:03:01

ci_mux

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/lib/rbpkg.rb b/lib/rbpkg.rb
index 83e513e..f098c31 100644
--- a/lib/rbpkg.rb
+++ b/lib/rbpkg.rb
@@ -91,11 +91,12 @@ module Rbpkg
     <ul class="list-group">
 EOF
           sublogs.each do |d, sublog|
-            sublog.img = status_img(sublog.status)
-            sublog_html = sublog.html.to_html
+            sublog_img = status_img(sublog[:status])
+            sublog_html = sublog[:html].to_html
+            sublog_status = sublog[:status].to_s.to_html
             output.puts <<-EOF
       <li class="list-group-item">
-        <img src="#{img}" class="status-#{sublog.status.to_s.to_html}"/>
+        <img src="#{sublog_img}" class="status-#{sublog_status}"/>
         <a href="#{sublog_html}">#{sublog_html}</a>
       </li>
 EOF