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

[1236] update courses index link #177

Merged
merged 1 commit into from Apr 10, 2019
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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