diff --git a/Project-Unite/Views/Contests/Index.cshtml b/Project-Unite/Views/Contests/Index.cshtml index b83db41..a752cbd 100644 --- a/Project-Unite/Views/Contests/Index.cshtml +++ b/Project-Unite/Views/Contests/Index.cshtml @@ -26,7 +26,7 @@ @if (Request.IsAuthenticated) { - if (User.Identity.IsDeveloper()) + if (User.Identity.IsAdmin()) {
@Html.Markdown(Model.Description)
@@ -46,6 +46,43 @@Below is a list of all submissions for this contest.
+ +There are no submissions for this contest. Be the first!
+ } + else + { + foreach(var c in Model.Entries) + { +By @Html.UserLink(c.AuthorId) on @c.PostedAt • @c.Upvotes.Length • @c.Downvotes.Length
+