Skip to content

Commit

Permalink
Merge pull request #2156 from Zelda-Cat/fix-sponsor-link
Browse files Browse the repository at this point in the history
Fix link to sponsor #2512
  • Loading branch information
matyikriszta authored Dec 23, 2024
2 parents 6632e6e + 2fcbdfa commit 100be32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/admin/sponsors/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
.bg-light.p-3.mb-4
%dl.row
%dt= t('.website')
%dd= link_to @sponsor.website
%dd= link_to @sponsor.website, @sponsor.website, target: '_blank'

%dt= t('.address')
- if @sponsor.address.present?
Expand Down
2 changes: 1 addition & 1 deletion spec/features/admin/sponsor_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
scenario 'displays all sponsor details' do
expect(page).to have_content(sponsor.name)
expect(page).to have_content(sponsor.description)
expect(page).to have_link(sponsor.website)
expect(page).to have_link(sponsor.website, href: sponsor.website)
expect(page).to have_content(sponsor.level)
expect(page).to have_content(ContactPresenter.new(sponsor.contacts.first).full_name)

Expand Down

0 comments on commit 100be32

Please sign in to comment.