]> git.openstreetmap.org Git - rails.git/commitdiff
Merge pull request #5331 from AntonKhorev/trace-badges-text-bg
authorAndy Allan <git@gravitystorm.co.uk>
Fri, 15 Nov 2024 16:14:02 +0000 (16:14 +0000)
committerGitHub <noreply@github.com>
Fri, 15 Nov 2024 16:14:02 +0000 (16:14 +0000)
Set colors for trace visibility badges using .text-bg-*

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">