Skip to content
This repository has been archived by the owner on Jun 14, 2022. It is now read-only.

Commit

Permalink
[1236] update courses index link
Browse files Browse the repository at this point in the history
  • Loading branch information
dankmitchell committed Apr 10, 2019
1 parent 635f451 commit 2067efe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/providers/show.html.erb
Expand Up @@ -37,7 +37,7 @@

<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<h2 class="govuk-heading-m"><%= govuk_link_to "Courses", manage_ui_url("/organisation/#{@provider[:provider_code]}/courses") %></h2>
<h2 class="govuk-heading-m"><%= link_to "Courses", provider_courses_path(@provider[:provider_code]), class: "govuk-link" %></h2>
<p class="govuk-body">Use this section to:</p>
<ul class="govuk-list govuk-list--bullet govuk-!-margin-bottom-8">
<li>write about each course</li>
Expand Down
2 changes: 2 additions & 0 deletions spec/features/providers_spec.rb
Expand Up @@ -20,5 +20,7 @@
visit('/organisations/A0')
expect(find('h1')).to have_content('ACME SCITT A0')
expect(page).to have_selector(".govuk-breadcrumbs")
expect(page).to have_link('Locations', href: '/organisations/A0/locations')
expect(page).to have_link('Courses', href: '/organisations/A0/courses')
end
end

0 comments on commit 2067efe

Please sign in to comment.