Skip to content

Commit

Permalink
feat: Added menu item for resources section
Browse files Browse the repository at this point in the history
Added menu item for Resources.
  • Loading branch information
nnagepat authored Sep 25, 2023
2 parents a57b793 + eb062ea commit 844edea
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Childrens-Social-Care-CPD/Views/Shared/_ErrorLayout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,14 @@
</svg>
</a>
</li>
<li class="dfe-header__navigation-item" id="mmi-resources">
<a class="dfe-header__navigation-link" href="/training-resources">
Resources
<svg class="dfe-icon dfe-icon__chevron-right" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true" width="34" height="34">
<path d="M15.5 12a1 1 0 0 1-.29.71l-5 5a1 1 0 0 1-1.42-1.42l4.3-4.29-4.3-4.29a1 1 0 0 1 1.42-1.42l5 5a1 1 0 0 1 .29.71z"></path>
</svg>
</a>
</li>
</ul>
</div>
</nav>
Expand Down
2 changes: 2 additions & 0 deletions Childrens-Social-Care-CPD/Views/Shared/_Header.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@
RenderMenuItem("career", "Career stages", "career-stages", category == "Career information");
RenderMenuItem("developmentProgrammes", "Development programmes", "development-programmes", category == "Development programmes");
RenderMenuItem("exploreRoles", "Explore roles", "explore-roles", category == "Explore roles");
RenderMenuItem("resources", "Resources", "training-resources", category == "Resources");

}
</ul>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ test.describe('Header', () => {
['Career stages', '/career-stages'],
['Development programmes', '/development-programmes'],
['Explore roles', '/explore-roles'],
['Resources', '/training-resources'],
]

for (const link of links) {
Expand Down

0 comments on commit 844edea

Please sign in to comment.