diff options
Diffstat (limited to 'Project-Unite/Views')
| -rw-r--r-- | Project-Unite/Views/Profiles/ViewProfile.cshtml | 27 | ||||
| -rw-r--r-- | Project-Unite/Views/Shared/_Layout.cshtml | 9 |
2 files changed, 35 insertions, 1 deletions
diff --git a/Project-Unite/Views/Profiles/ViewProfile.cshtml b/Project-Unite/Views/Profiles/ViewProfile.cshtml new file mode 100644 index 0000000..94ca858 --- /dev/null +++ b/Project-Unite/Views/Profiles/ViewProfile.cshtml @@ -0,0 +1,27 @@ +@model Project_Unite.Models.ApplicationUser +@{ + ViewBag.Title = Model.DisplayName; + ViewBag.Banner = Model.BannerUrl; +} + +<div class="row"> + <h3> + <img src="@Model.AvatarUrl" width="64" height="64" /> @if (string.IsNullOrWhiteSpace(Model.FullName)) + { <strong> @Model.DisplayName </strong>} + else + { + <strong>@Model.FullName</strong> <em>(@Model.DisplayName)</em>} + </h3> +</div> + +<div class="row"> + <div class="col-xs-4"> + <h4>User stats</h4> + <ul> + <li><strong>@Model.Codepoints</strong> Codepoints</li> + <li><strong>Joined at: </strong>@Model.JoinedAt</li> + <li><strong>Posts: </strong>@Model.PostCount</li> + <li><strong>Topics: </strong>@Model.TopicCount</li> + </ul> + </div> +</div>
\ No newline at end of file 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.--> |
