summaryrefslogtreecommitdiff
path: root/Project-Unite/Views/Developer/Releases.cshtml
blob: f154a6b4d498f92936c29b5f59afcdc8459e3f0d (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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
@model IEnumerable<Project_Unite.Models.Download>
@{
    ViewBag.Title = "Releases";
    ViewBag.Developer = true;
}

<h2>Releases</h2>

<ul class="nav nav-pills">
    <li><a href="@Url.Action("AddRelease", "Developer")"><span class="glyphicon glyphicon-plus"></span> Release new build.</a></li>
</ul>

<p>Below is a list of all ShiftOS releases, sorted by date in descending order, categorized by stability.</p>

<ul id="tabs" data-tabs="tabs" class="nav nav-tabs" role="tablist">
    <li class="active"><a data-toggle="tab" href="#t_stable">Stable</a></li>
    <li><a data-toggle="tab" href="#t_unstable">Unstable</a></li>
    <li><a data-toggle="tab" href="#t_obsolete">Obsolete</a></li>

</ul>

<div class="tab-content">
    <div class="tab-pane fade in active" id="t_stable">
        <h4>Stable releases</h4>
        <p>Stable builds of ShiftOS are generally more trusted - they may not contain all the latest features, but they are also bug-free... mostly.</p>
        
        <table class="table">
            <tr>
                <th style="width:45%">Release</th>
                <th>Actions</th>
            </tr>
            @foreach(var release in Model.Where(x => x.IsStable == true && x.Obsolete == false).OrderByDescending(x => x.PostDate))
            {
                <tr>
                    <td>
                        @if (release.Obsolete == true)
                        {
                            <strong>OBSOLETE: </strong>
                        }
                         @Html.ActionLink(release.Name, "ViewRelease", "Download", new { id = release.Id }, null)<br/>
                        <p>...released by @Html.UserLink(release.ReleasedBy), released on @release.PostDate</p>
                    </td>
                    <td>
                        <a href="http://youtube.com/[email protected]" class="btn btn-default"><span class="glyphicon glyphicon-play"></span> Watch dev update</a>
                        @Html.ActionLink("Make Unstable", "MakeUnstable", "Developer", new { id = release.Id }, new { @class = "btn btn-warning" })
                        @Html.ActionLink("Toggle Obsolete", "ToggleObsolete", "Developer", new { id = release.Id }, new { @class = "btn btn-warning" })
                        







                    </td>
                </tr>
            }
        </table>
    </div>
    <div class="tab-pane fade in" id="t_unstable">
        <h4>Unstable releases</h4>
        <p>Unstable builds are in-between builds of ShiftOS. They are more feature-rich, released faster, but that comes at the cost of stability. These builds may be really buggy. Seriously. I've released some that don't even boot.</p>

        <table class="table">
            <tr>
                <th style="width:45%">Release</th>
                <th>Actions</th>
            </tr>
            @foreach (var release in Model.Where(x => x.IsStable == false).OrderByDescending(x => x.PostDate))
            {
                <tr>
                    <td>
                        @if (release.Obsolete == true)
                        {
                            <strong>OBSOLETE: </strong>
                        }
                        @Html.ActionLink(release.Name, "ViewRelease", "Download", new { id = release.Id }, null)<br />
                        <p>...released by @Html.UserLink(release.ReleasedBy), released on @release.PostDate</p>
                    </td>
                    <td>
                        <a href="http://youtube.com/[email protected]" class="btn btn-default"><span class="glyphicon glyphicon-play"></span> Watch dev update</a>
                        @Html.ActionLink("Make Stable", "MakeStable", "Developer", new { id = release.Id }, new { @class = "btn btn-warning" })
                        @Html.ActionLink("Toggle Obsolete", "ToggleObsolete", "Developer", new { id = release.Id }, new { @class = "btn btn-warning" })
                        







                    </td>
                </tr>
            }
        </table>
    </div>

    <div class="tab-pane fade in" id="t_obsolete">
        <h4>Obsolete releases</h4>
        <p>Obsolete releases are kept up for archival purposes only. Rather than deleting a build, make it obsolete. That way, users can still play it if they want to (or can), but we don't have to accept bug reports for the obsolete release.</p>

        <table class="table">
            <tr>
                <th style="width:45%">Release</th>
                <th>Actions</th>
            </tr>
            @foreach (var release in Model.Where(x => x.Obsolete==true).OrderByDescending(x => x.PostDate))
            {
                <tr>
                    <td>
                        @if (release.Obsolete == true)
                        {
                            <strong>OBSOLETE: </strong>
                        }
                        @Html.ActionLink(release.Name, "ViewRelease", "Download", new { id = release.Id }, null)<br />
                        <p>...released by @Html.UserLink(release.ReleasedBy), released on @release.PostDate</p>
                    </td>
                    <td>
                        <a href="http://youtube.com/[email protected]" class="btn btn-default"><span class="glyphicon glyphicon-play"></span> Watch dev update</a>
                        @Html.ActionLink("Toggle Obsolete", "ToggleObsolete", "Developer", new { id = release.Id }, new { @class = "btn btn-warning" })
                        @Html.ActionLink("Delete", "Delete", "Developer", new { id = release.Id }, new { @class = "btn btn-danger" })
                    </td>
                </tr>
            }
        </table>
    </div>

</div>