]> git.openstreetmap.org Git - rails.git/commitdiff
Set colors for trace visibility badges using .text-bg-*
authorAnton Khorev <tony29@yandex.ru>
Fri, 15 Nov 2024 15:09:03 +0000 (18:09 +0300)
committerAnton Khorev <tony29@yandex.ru>
Fri, 15 Nov 2024 15:09:03 +0000 (18:09 +0300)
app/views/traces/_trace.html.erb

index f60eea7f1cbe22834e631359484b592f6cddb0a7..992f16199ac38a5044fa8df507b8dfc27b29e6c4 100644 (file)
@@ -27,7 +27,7 @@
                          when "public", "identifiable" then "success"
                          else "danger"
                          end %>
-        <span class="badge bg-<%= badge_class %> text-white"><%= t(".#{trace.visibility}") %></span>
+        <span class="badge text-bg-<%= badge_class %>"><%= t(".#{trace.visibility}") %></span>
       </li>
     </ul>
     <p class="text-body-secondary mb-0">