From cdc61eb4ea5309769ad4db84d92594e4dc3dff67 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 20 Mar 2017 16:45:17 -0400 Subject: Initial commit (azure deploy test) --- Project-Unite/Views/Forum/Index.cshtml | 39 ++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 Project-Unite/Views/Forum/Index.cshtml (limited to 'Project-Unite/Views/Forum/Index.cshtml') diff --git a/Project-Unite/Views/Forum/Index.cshtml b/Project-Unite/Views/Forum/Index.cshtml new file mode 100644 index 0000000..8e26c24 --- /dev/null +++ b/Project-Unite/Views/Forum/Index.cshtml @@ -0,0 +1,39 @@ +@model IEnumerable + +@{ + ViewBag.Title = "Forums"; +} + +

Welcome to the forums.

+ +@foreach (var cat in Model) +{ + + + + + + + + @foreach (var subcat in cat.Children) + { + + + + + + + } +
@cat.NameTopicsPostsMost Recent Post
@Html.ActionLink(subcat.Name, "ViewForum", "Forum", new { id = subcat.Id }, null)
+

@subcat.Description

+ @if(subcat.Children.Length > 0) + { +

Subforums: + @foreach(var subfrm in subcat.Children) + { + @Html.ActionLink(subfrm.Name, "ViewForum", "Forum", new { id = subfrm.Id }, null)  + } +

+ } +
@subcat.Topics.Length
+} \ No newline at end of file -- cgit v1.2.3