From d9b00ced614932b1e744e45e8829f803de32e449 Mon Sep 17 00:00:00 2001 From: Martin-Belton-gov Date: Wed, 8 Nov 2023 08:58:11 +0000 Subject: [PATCH] PR Fixes --- .../Contentful/Models/VideoResource.cs | 3 +-- .../Views/Shared/_VideoResource.cshtml | 14 ++++---------- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/Childrens-Social-Care-CPD/Contentful/Models/VideoResource.cs b/Childrens-Social-Care-CPD/Contentful/Models/VideoResource.cs index 08730572..706384c0 100644 --- a/Childrens-Social-Care-CPD/Contentful/Models/VideoResource.cs +++ b/Childrens-Social-Care-CPD/Contentful/Models/VideoResource.cs @@ -7,6 +7,5 @@ public class VideoResource : IContent public string Id { get; set; } public Asset Video { get; set; } public Document Transcript { get; set; } - public string EmbededTitle { get; set; } - public string EmbededSourceUrl { get; set; } + public string EmbeddedSourceUrl { get; set; } } diff --git a/Childrens-Social-Care-CPD/Views/Shared/_VideoResource.cshtml b/Childrens-Social-Care-CPD/Views/Shared/_VideoResource.cshtml index 0f964bfb..17dd51b7 100644 --- a/Childrens-Social-Care-CPD/Views/Shared/_VideoResource.cshtml +++ b/Childrens-Social-Care-CPD/Views/Shared/_VideoResource.cshtml @@ -8,25 +8,19 @@
- @if(!string.IsNullOrEmpty(Model.EmbededTitle) && !string.IsNullOrEmpty(Model.EmbededSourceUrl)) + @if(!string.IsNullOrEmpty(Model.EmbeddedSourceUrl)) { -

- @Model.EmbededTitle -

- if (@Model.EmbededSourceUrl.IndexOf("vimeo") > -1) + if (@Model.EmbeddedSourceUrl.IndexOf("vimeo") > -1) { } else { - + } } else