Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## [Unreleased]
+* no unreleased changes
* fix bootstrap 5 data attribute with BS namespace

## 2.4.0 / 2025-01-31
### Changed
Expand Down
8 changes: 4 additions & 4 deletions app/helpers/ndr_error/errors_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ def multiple_occurrences_badge_for(fingerprint)

text = "+ #{fingerprint.count - 1}"
opts = {
'class' => 'badge badge-info',
'data-toggle' => 'tooltip',
'data-placement' => 'right',
'title' => "Since #{fingerprint.created_at.to_formatted_s(:db)}"
'class' => 'badge badge-info',
'data-bs-toggle' => 'tooltip',
'data-bs-placement' => 'right',
'data-bs-title' => "Since #{fingerprint.created_at.to_formatted_s(:db)}"
}

content_tag(:span, text, opts)
Expand Down
4 changes: 2 additions & 2 deletions app/views/ndr_error/errors/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<%= previous_button_for(@error.previous) %>

<div class="btn-group">
<a class="btn btn-outline-secondary dropdown-toggle" data-toggle="dropdown" href="#">
<a class="btn btn-outline-secondary dropdown-toggle" data-bs-toggle="dropdown" href="#">
<%= pluralize(@error.similar_errors.length - 1, 'Similar Error') %> Stored
<span class="caret"></span>
</a>
Expand All @@ -45,7 +45,7 @@

<% if @fingerprint.caused_error_fingerprints.any? %>
<div class="btn-group">
<a class="btn btn-outline-secondary dropdown-toggle" data-toggle="dropdown" href="#">
<a class="btn btn-outline-secondary dropdown-toggle" data-bs-toggle="dropdown" href="#">
<%= pluralize(@fingerprint.caused_error_fingerprints.length, 'Downstream Error') %> Stored
<span class="caret"></span>
</a>
Expand Down
4 changes: 2 additions & 2 deletions test/unit/helpers/ndr_error/errors_helper_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ class ErrorsHelperTest < ActionView::TestCase
print.stubs(count: 3)

actual = multiple_occurrences_badge_for(print)
expected = '<span class="badge badge-info" data-placement="right"' \
' data-toggle="tooltip" title="Since 2015-01-01">+ 2</span>'
expected = '<span class="badge badge-info" data-bs-placement="right"' \
' data-bs-toggle="tooltip" data-bs-title="Since 2015-01-01">+ 2</span>'

assert_dom_equal expected, actual
end
Expand Down
Loading