diff --git a/LearningHub.Nhs.WebUI/Views/Home/_MyCoursesAndElearning.cshtml b/LearningHub.Nhs.WebUI/Views/Home/_MyCoursesAndElearning.cshtml index 8923e8e2..394398de 100644 --- a/LearningHub.Nhs.WebUI/Views/Home/_MyCoursesAndElearning.cshtml +++ b/LearningHub.Nhs.WebUI/Views/Home/_MyCoursesAndElearning.cshtml @@ -93,7 +93,7 @@ } - @if (isLastPage && pagingViewModel.TotalCount >=8) + @if (isLastPage && pagingViewModel.TotalCount >= 8) {
  • @@ -190,16 +190,17 @@ else {
    - @if (Model.MyLearnings.Type == "my-in-progress" && Model.MyLearnings.TotalCount <= 0) - { -

    You have not accessed any learning yet.

    -

    Accessed resources and courses will be displayed here. Browse from the list of resources below or search for a specific term using the search bar at the top of the screen.

    - } - else if (Model.MyLearnings.Type == "my-certificates" && Model.MyLearnings.TotalCount <= 0) + @if (Model.MyLearnings.Type == "my-certificates" && Model.MyLearnings.TotalCount <= 0) {

    You have no certificates.

    Certificates when available will be displayed here.

    } + else if (Model.DashboardTrayLearningResourceType == "elearning" && Model.MyLearnings.TotalCount <= 0) + { +

    You have not accessed any learning yet.

    +

    Accessed resources and courses will be displayed here. Browse from the list of resources below or search for a specific term using the search bar at the top of the screen.

    + } +
    }
    diff --git a/LearningHub.Nhs.WebUI/Views/Home/_ResourceTray.cshtml b/LearningHub.Nhs.WebUI/Views/Home/_ResourceTray.cshtml index b17ea20f..0d812f20 100644 --- a/LearningHub.Nhs.WebUI/Views/Home/_ResourceTray.cshtml +++ b/LearningHub.Nhs.WebUI/Views/Home/_ResourceTray.cshtml @@ -69,9 +69,9 @@
    -
      - @if (@Model.Resources.Resources != null) - { + @if (@Model.Resources.Resources.Count() > 0) + { +
        @foreach (var resource in Model.Resources.Resources) { var resourceViewModel = new Tuple("resources", resource); @@ -79,8 +79,16 @@ } +
      + } + else + { + if (Model.Resources.Type == "my-recent-completed") + { +

      You have not recently completed any learning.

      +

      When available your completed learning will be displayed here.

      } -
    + }