Skip to content

Commit

Permalink
Merge branch 'Feature/VideoResources' of https://github.com/DFE-Digit…
Browse files Browse the repository at this point in the history
…al/childrens-social-care-cpd into Feature/VideoResources
  • Loading branch information
nileshgnagepatil committed Sep 28, 2023
2 parents 5feb536 + 82617d4 commit f76baf0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion Childrens-Social-Care-CPD/Views/Shared/_SideMenu.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
<ul class="dfe-vertical-nav__section">
@foreach (var menuItem in Model.Items)
{
var css = ViewBag.ContextModel.PageName == menuItem.Uri
string pageName = $"/{ViewBag.ContextModel.PageName}";
string uri = menuItem.Uri.StartsWith('/') ? menuItem.Uri : $"/{menuItem.Uri}";
var css = pageName.StartsWith(uri)
? "dfe-vertical-nav__section-item dfe-vertical-nav__section-item--current"
: "dfe-vertical-nav__section-item";

Expand Down
6 changes: 3 additions & 3 deletions Terraform/appgw.tf
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ resource "azurerm_application_gateway" "appgw" {
frontend_ip_configuration_name = var.frontend_ip_configuration_name[terraform.workspace]
frontend_port_name = var.frontend_ssl_port_name[terraform.workspace]
protocol = "Https"
ssl_certificate_name = "develop-child-family-social-work-career"
ssl_certificate_name = "develop-child-family-social-work-career-23"
host_names = data.azurerm_resource_group.rg.name == "s185p01-childrens-social-care-cpd-rg" ? ["www.develop-child-family-social-work-career.education.gov.uk", "develop-child-family-social-work-career.education.gov.uk", ] : null
}

Expand All @@ -89,8 +89,8 @@ resource "azurerm_application_gateway" "appgw" {
}

ssl_certificate {
name = "develop-child-family-social-work-career"
key_vault_secret_id = "${var.key_vault_url[terraform.workspace]}secrets/develop-child-family-social-work-career"
name = "develop-child-family-social-work-career-23"
key_vault_secret_id = "${var.key_vault_url[terraform.workspace]}secrets/develop-child-family-social-work-career-23"
}

ssl_policy {
Expand Down

0 comments on commit f76baf0

Please sign in to comment.