File tree Expand file tree Collapse file tree 7 files changed +21
-13
lines changed
LearningHub.Nhs.WebUI/Views Expand file tree Collapse file tree 7 files changed +21
-13
lines changed Original file line number Diff line number Diff line change 126126 <div class =" catalogue-title nhsuk-u-margin-bottom-7" >
127127 @if (! string .IsNullOrEmpty (Model .Catalogue .BadgeUrl ))
128128 {
129- <img alt =" catalogue badge" src =" @GetBadgeUrl()" class =" catalogue-badge" />
129+ <img alt =" ELFH catalogue badge" src =" @GetBadgeUrl()" class =" catalogue-badge" />
130130 }
131131
132132 <h1 class =" heading-lg title nhsuk-u-margin-bottom-0" >@( ViewBag .ActiveTab == " browse" && Model .NodeDetails != null ? Model .NodeDetails .Name : Model .Catalogue .Name ) </h1 >
146146 asp-route-title =" @Model.Catalogue.Name.Truncate(60)"
147147 asp-route-nodeId =" @Model.Catalogue.NodeId"
148148 asp-route-path =" @Model.Catalogue.Url"
149- asp-route-returnUrl =" @(Context.Request.Path + Context.Request.QueryString)" >@( Model .Catalogue .IsBookmarked ? " Remove from" : " Add to" ) my bookmarks </a >
149+ asp-route-returnUrl =" @(Context.Request.Path + Context.Request.QueryString)"
150+ aria-label =" @(Model.Catalogue.IsBookmarked ? " Remove from " : " Add to " ) my bookmarks" >@( Model .Catalogue .IsBookmarked ? " Remove from" : " Add to" ) my bookmarks </a >
150151 </div >
151152 }
152153
Original file line number Diff line number Diff line change 22
33<form id =" search" asp-controller =" catalogue" asp-action =" index" asp-fragment =" searchTab" method =" get" role =" search" >
44 <div class =" nhsuk-form-group nhsuk-header__search-form--search-results" >
5- <label class =" nhsuk-label nhsuk-u-visually-hidden" for =" search-field" >Search</label >
6- <input class =" nhsuk-input nhsuk-search__input" type =" search" name =" term" autocomplete =" off" id =" search-field" value =" @Model" placeholder =" Search" >
5+ <label class =" nhsuk-label nhsuk-u-visually-hidden" for =" sub- search-field" >Search</label >
6+ <input class =" nhsuk-input nhsuk-search__input" type =" search" name =" term" autocomplete =" off" id =" sub- search-field" value =" @Model" placeholder =" Search" >
77 <button class =" nhsuk-search__submit" type =" submit" >
88 <span class =" nhsuk-u-visually-hidden" >
99 Submit
Original file line number Diff line number Diff line change 6363 @if (providerExists )
6464 {
6565 var provider = @Model .Providers .First ();
66- <img src =" ~/images/provider-logos/@provider.Logo" alt =" @provider.Name" class =" provider-badge" />
66+ <img src =" ~/images/provider-logos/@provider.Logo" alt =" @provider.Name catalogue badge " class =" provider-badge" />
6767 }
6868 else if (! string .IsNullOrEmpty (Model .BadgeUrl ))
6969 {
70- <img src =" @(" /api /dashboard /download-image /" + Uri.EscapeDataString(Model.BadgeUrl))" alt =" @(Model.Name) " class =" catalogue-badge" />
70+ <img src =" @(" /api /dashboard /download-image /" + Uri.EscapeDataString(Model.BadgeUrl))" alt =" Provider's catalogue badge " class =" catalogue-badge" />
7171 }
7272 </div >
7373 </div >
Original file line number Diff line number Diff line change 7777 @if (providerExists )
7878 {
7979 var provider = @Model .Item2 .Providers .First ();
80- <img src =" ~/images/provider-logos/@provider.Logo" alt =" @provider.Name" class =" provider-badge" />
80+ <img src =" ~/images/provider-logos/@provider.Logo" alt =" @provider.Name catalogue badge " class =" provider-badge" />
8181 }
8282 else if (! string .IsNullOrEmpty (Model .Item2 .BadgeUrl ))
8383 {
84- <img src =" @(" /api /dashboard /download-image /" + Uri.EscapeDataString(Model.Item2.BadgeUrl))" alt =" @(Model.Item2.CatalogueName) " class =" catalogue-badge" />
84+ <img src =" @(" /api /dashboard /download-image /" + Uri.EscapeDataString(Model.Item2.BadgeUrl))" alt =" Provider's catalogue badge " class =" catalogue-badge" />
8585 }
8686 </div >
8787 </div >
Original file line number Diff line number Diff line change 77@inject Microsoft .Extensions .Options .IOptions <LearningHub .Nhs .WebUI .Configuration .Settings > options
88@{
99 var resourceItem = Model .ResourceItem ;
10+ bool providerExists = Model .ResourceItem .Providers ? .Count > 0 ;
1011
1112 bool CanDisplayEsrLink ()
1213 {
3940 <div class =" display__flex-space-between" >
4041 <h2 >Resource details</h2 >
4142
43+ @if (providerExists )
44+ {
45+ var providersss = @resourceItem .Providers ;
46+ var provider = @resourceItem .Providers .First ();
47+ <img src =" ~/images/provider-logos/@provider.Logo" alt =" @provider.Name catalogue badge" class =" provider-badge" />
48+ }
4249 @if (! string .IsNullOrEmpty (resourceItem .Catalogue .BadgeUrl ))
4350 {
44- <img src =" @(" /api /dashboard /download-image /" + Uri.EscapeDataString(resourceItem.Catalogue.BadgeUrl))" alt =" @(resourceItem.Catalogue.Name) " class =" catalogue-badge" />
51+ <img src =" @(" /api /dashboard /download-image /" + Uri.EscapeDataString(resourceItem.Catalogue.BadgeUrl))" alt =" Provider's catalogue badge " class =" catalogue-badge" />
4552 }
4653 </div >
4754
Original file line number Diff line number Diff line change 22
33<form id =" search" asp-controller =" search" asp-action =" results" method =" get" role =" search" >
44 <div class =" nhsuk-u-margin-bottom-5 nhsuk-header__search-form--search-results" >
5- <label class =" nhsuk-label nhsuk-u-visually-hidden" for =" search-field" >Search the learning hub</label >
6- <input class =" nhsuk-input nhsuk-search__input" type =" search" name =" term" autocomplete =" off" id =" search-field" placeholder =" Search the learning hub" value =" @Model" >
5+ <label class =" nhsuk-label nhsuk-u-visually-hidden" for =" sub- search-field" >Search the learning hub</label >
6+ <input class =" nhsuk-input nhsuk-search__input" type =" search" name =" term" autocomplete =" off" id =" sub- search-field" placeholder =" Search the learning hub" value =" @Model" >
77 <button class =" nhsuk-search__submit" type =" submit" >
88 <span class =" nhsuk-u-visually-hidden" >
99 Submit
Original file line number Diff line number Diff line change 2727 @await Component.InvokeAsync("NavigationItems", new { navView = " MobileTopRightNav" , controllerName = controllerName } )
2828 @if (User .Identity .IsAuthenticated ) {
2929 < div class = " nhsuk-header__menu" >
30- < label class = " nhsuk-header__menu-toggle" id = " toggle-menu" aria - controls = " header-navigation" aria - expanded = " false" > Menu < / label >
30+ < button class = " nhsuk-header__menu-toggle" id = " toggle-menu" aria - controls = " header-navigation" aria - expanded = " false" > Menu < / button >
3131 @await Component .InvokeAsync (" NavigationItems" , new { navView = " MenuNotificationDot" })
3232 < / div >
3333 }
4141
4242 @if (User .Identity .IsAuthenticated ) {
4343 < div class = " nhsuk-header__menu nhsuk-header__not-mobile" >
44- < label class = " nhsuk-header__menu-toggle" id = " toggle-menu" aria - controls = " header-navigation" aria - expanded = " false" > Menu < / label >
44+ < button class = " nhsuk-header__menu-toggle" id = " toggle-menu" aria - controls = " header-navigation" aria - expanded = " false" > Menu < / button >
4545 @await Component .InvokeAsync (" NavigationItems" , new { navView = " MenuNotificationDot" })
4646 < / div >
4747 }
You can’t perform that action at this time.
0 commit comments