Skip to content

Commit 6232dd1

Browse files
authored
Merge pull request #37 from NHSDigital/bugifx/fix-error-helper-link-with-icon
fix link with icon button style
2 parents 81e0bcc + f968e83 commit 6232dd1

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
## [Unreleased]
2-
* no unreleased changes
2+
* fix link with icon button style
33

44
## 2.4.1 / 2025-02-03
55
### Fixed

app/helpers/ndr_error/errors_helper.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def downstream_fingerprint_link(print)
5757
end
5858

5959
def ticket_link_for(fingerprint, small = false) # rubocop:disable Style/OptionalBooleanParameter
60-
text = "#{bootstrap_icon_tag('asterisk', :bi)} View ticket"
60+
text = bootstrap_icon_tag('asterisk', :bi) + ' View ticket' # rubocop:disable Style/StringConcatenation
6161
css = 'btn btn-outline-secondary'
6262
css << ' btn-xs' if small
6363

@@ -67,14 +67,14 @@ def ticket_link_for(fingerprint, small = false) # rubocop:disable Style/Optional
6767

6868
def edit_button_for(fingerprint)
6969
css = 'btn btn-outline-secondary'
70-
text = "#{bootstrap_icon_tag('pencil', :bi)} Edit Ticket"
70+
text = bootstrap_icon_tag('pencil', :bi) + ' Edit Ticket' # rubocop:disable Style/StringConcatenation
7171

7272
link_to(text, edit_error_fingerprint_path(fingerprint), class: css)
7373
end
7474

7575
def purge_button_for(fingerprint)
7676
css = 'btn btn-danger'
77-
text = "#{bootstrap_icon_tag('trash-fill', :bi)} Purge"
77+
text = bootstrap_icon_tag('trash-fill', :bi) + ' Purge' # rubocop:disable Style/StringConcatenation
7878

7979
options = {
8080
'method' => :delete,

0 commit comments

Comments
 (0)