diff --git a/Project-Unite/ChartExtensions.cs b/Project-Unite/ChartExtensions.cs new file mode 100644 index 0000000..b9b2879 --- /dev/null +++ b/Project-Unite/ChartExtensions.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Web; +using System.Web.Mvc; + +namespace Project_Unite +{ + public static class ChartExtensions + { + public static IHtmlString PieChart(this HtmlHelper hpr, string title, Dictionary values) + { + var sb = new StringBuilder(); + string chart_id = Guid.NewGuid().ToString().Replace("-", ""); + sb.AppendLine($@""); + sb.AppendLine($"
"); + return hpr.Raw(sb.ToString()); + } + } +} \ No newline at end of file diff --git a/Project-Unite/Project-Unite.csproj b/Project-Unite/Project-Unite.csproj index dd41d50..f4da41b 100644 --- a/Project-Unite/Project-Unite.csproj +++ b/Project-Unite/Project-Unite.csproj @@ -248,6 +248,7 @@ + diff --git a/Project-Unite/Views/Bugs/Index.cshtml b/Project-Unite/Views/Bugs/Index.cshtml index 0e7754d..f5fd394 100644 --- a/Project-Unite/Views/Bugs/Index.cshtml +++ b/Project-Unite/Views/Bugs/Index.cshtml @@ -1,5 +1,7 @@ @model IEnumerable +@using Project_Unite.Models; @{ + var db = new ApplicationDbContext(); ViewBag.Title = "Bugtracker"; } @@ -10,18 +12,73 @@ }
-
-@{ - Html.RenderPartial("~/Views/Bugs/_Sidebar.cshtml", Model); -} +
+

Bug types

+ +
-
-

Welcome to the ShiftOS bug tracker.

+
+ @foreach(var category in Model.ToArray()) + { + string c = "tab-pane fade in"; + if(category == Model.First()) + { + c += " active"; + } +
+

@category.Name

+

@category.Description

-

ShiftOS is a game about an evolving operating system, and an evolving world. However, ShiftOS itself is evolving with new features everyday.

- -

We at ShiftOS strive to create a stable experience and most bugs are taken care of before they ever leave the development environment. However, sometimes we make mistakes. I mean, we're all human, right? Anyways, if you find a mistake we've made in ShiftOS, this is the best spot to place it.

- +
+
+ Open +
+
+ Urgency +
+
+ Actions +
+
+ @foreach(var bug in category.Open.OrderByDescending(x=>x.Urgency)) + { +
+
+
+

Reported at: @bug.ReportedAt • Reported by: @Html.UserLink(bug.Reporter)

+
+ @switch (bug.Urgency) + { + case 0: +
Minor
+ break; + case 1: +
Moderate
+ break; + case 2: +
Major
+ break; + case 3: +
Critical
+ break; + } + +
+ } +
+ }
\ No newline at end of file diff --git a/Project-Unite/Views/Shared/_Layout.cshtml b/Project-Unite/Views/Shared/_Layout.cshtml index 48b2fa6..5ade38b 100644 --- a/Project-Unite/Views/Shared/_Layout.cshtml +++ b/Project-Unite/Views/Shared/_Layout.cshtml @@ -25,6 +25,7 @@ @Scripts.Render("~/Scripts/simplemde.js") @Scripts.Render("~/bundles/modernizr") +