From b619fb6d112afa1a3d4abaa8ceda9e2eecf460aa Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 23 Mar 2017 18:16:10 -0400 Subject: [PATCH] Hmmmmmm... --- Project-Unite/Views/Shared/_Layout.cshtml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/Project-Unite/Views/Shared/_Layout.cshtml b/Project-Unite/Views/Shared/_Layout.cshtml index b484e02..159a7d5 100644 --- a/Project-Unite/Views/Shared/_Layout.cshtml +++ b/Project-Unite/Views/Shared/_Layout.cshtml @@ -1,5 +1,13 @@  - +@{ + string style = ""; + if (ViewBag.Banner != null) + { + style = "background-image: url(\"" + ViewBag.Banner + "\") cover;"; + } +} + + @@ -12,14 +20,7 @@ @Scripts.Render("~/bundles/modernizr") -@{ - string style = ""; - if(ViewBag.Banner != null) - { - style = "background-image: url(\"" + ViewBag.Banner + "\") cover;"; - } -} - + @Scripts.Render("~/Scripts/highlight.js")