Skip to content

Commit c27c2a7

Browse files
committed
Add alternative hidden text to be displayed when certificate is not available in My Learning page
1 parent 0b66acc commit c27c2a7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

LearningHub.Nhs.WebUI/Views/MyLearning/_ActivityTable.cshtml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@
108108
<a target="_blank" asp-controller="mylearning" asp-action="certificate" asp-route-resourceReferenceId="@activity.ResourceReferenceId" asp-route-majorVersion="@activity.MajorVersion" asp-route-minorVersion="@activity.MinorVersion">View certificate</a>
109109
}
110110
}
111+
else {
112+
<span class="nhsuk-u-visually-hidden">Certificate unavailable</span>
113+
}
111114
</span>
112115
</td>
113116
<td role="cell" class="nhsuk-table__cell nhsuk-u-font-size-16">

0 commit comments

Comments
 (0)