summaryrefslogtreecommitdiff
path: root/Project-Unite/Views/Download/ViewRelease.cshtml
blob: e6bc1de9f0452f1af66025ebffa8faca2eca18c6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
@model Project_Unite.Models.Download
@{
    ViewBag.Title = Model.Name;
}

<h2>@Model.Name</h2>

<p>Released by @Html.UserLink(Model.ReleasedBy) at @Model.PostDate - 
    
    @if (Model.IsStable)
    {
        <span class="glyphicon glyphicon-star"></span> <strong>This build is stable!</strong>
    }
    else
    {
        <span class="glyphicon glyphicon-star-empty"></span> <strong>This build is unstable.</strong>
    }
    </p>

<div class="row">
    <div class="col-xs-8">
        @if (!string.IsNullOrWhiteSpace(Model.DevUpdateId))
        {
            <iframe src="http://youtube.com/embed/@Model.DevUpdateId" frameborder="0" allowfullscreen autoplay="true" style="width:720px;height:480px;"></iframe>

        }
        @if (!string.IsNullOrWhiteSpace(Model.ScreenshotUrl))
        {
        <img src="@Model.ScreenshotUrl" style="width:auto;height:auto;max-width:100%" />
        }

        @Html.Markdown(Model.Changelog)

        <h4>Reported bugs</h4>

        @if (Model.OpenBugs.Length == 0)
        {
            <p>There are no reported bugs to display.</p>
        }
        else
        {
            <table class="table">
                <tr>
                    <th style="width:55%">Bug</th>
                    <th>Urgency</th>
                    <th>Actions</th>
                </tr>
            
                @foreach (var bug in Model.OpenBugs.OrderByDescending(x=>x.Urgency))
                {
                    <tr>
                        <td>
                            @Html.ActionLink(bug.Name, "ViewBug", "Bugs", null, new { id=bug.Id})<br/>
                            Opened by @Html.UserLink(bug.Reporter) at @bug.ReportedAt
                        </td>
                        <th>
                            @switch (bug.Urgency)
                            {
                                case 0:
                                    <strong>Minor</strong>
                                    break;
                                case 1:
                                    <strong>Moderate</strong>

                                    break;
                                case 2:
                                    <strong>Major</strong>
                                    break;
                                case 3:
                                    <strong>Critical</strong>
                                    break;
                            }
                        </th>
                        <th>
                            <a href="@Url.Action("ViewBug", "Bugs", new {id=bug.Id})" class="btn btn-default"><span class="glyphicon glyphicon-eye-open"></span> View bug</a>
                        </th>
                    </tr>
                }
            </table>
        }
    </div>
    <div class="col-xs-4">
        <h3>Download</h3>
        
        <a href="@Model.DownloadUrl" class="btn btn-default"><span class="glyphicon glyphicon-arrow-down"></span> Download .ZIP</a>

        <p>At ShiftOS, we strive to make your experience in the multi-user domain as reliable as possible.</p>
        <p>If you have any issues with this build, please let us know. Also, to find out a bit more about the build, if you haven't already, check out the details to the left!</p>

        @if (Model.Obsolete)
                            {
        <h4>This build is obsolete!</h4>

        <p>We no longer support this build, and thus, any issues with this build that arise as we develop the game further will not be fixed. Consider picking up a more up-to-date build?</p>
        }
    </div>
</div>