summaryrefslogtreecommitdiff
path: root/Project-Unite/Views/Shared/_Layout.cshtml
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-03-23 18:08:20 -0400
committerMichael <[email protected]>2017-03-23 18:08:20 -0400
commit0f2629f0603b3c8f5dddf0747da6916dbf479dc4 (patch)
tree277a286b77ccaead5bd8f948f4eca9c0239ecabb /Project-Unite/Views/Shared/_Layout.cshtml
parent8330fbc5cb51d359d3716c431d1b4af0d31d4e2c (diff)
downloadproject-unite-0f2629f0603b3c8f5dddf0747da6916dbf479dc4.tar.gz
project-unite-0f2629f0603b3c8f5dddf0747da6916dbf479dc4.tar.bz2
project-unite-0f2629f0603b3c8f5dddf0747da6916dbf479dc4.zip
Profile work.
Diffstat (limited to 'Project-Unite/Views/Shared/_Layout.cshtml')
-rw-r--r--Project-Unite/Views/Shared/_Layout.cshtml9
1 files changed, 8 insertions, 1 deletions
diff --git a/Project-Unite/Views/Shared/_Layout.cshtml b/Project-Unite/Views/Shared/_Layout.cshtml
index 932593f..6530022 100644
--- a/Project-Unite/Views/Shared/_Layout.cshtml
+++ b/Project-Unite/Views/Shared/_Layout.cshtml
@@ -12,7 +12,14 @@
@Scripts.Render("~/bundles/modernizr")
</head>
-<body>
+@{
+ string style = "";
+ if(ViewBag.Model != null)
+ {
+ style = "background-image: url(\"" + ViewBag.Model + "\") cover;";
+ }
+}
+<body style="@style">
@Scripts.Render("~/Scripts/highlight.js")
<div class="navbar navbar-default navbar-fixed-top">
<div> <!--Let's just add some padding there so the page doesn't look fucked.-->