aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Web/Tango.MachineService/Views/Downloads/Index.cshtml
blob: 805c2cc55a045672f924b8c698e7915e491fb1de (plain)
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
@model Tango.MachineService.Views.Downloads.IndexViewModel

@section styles
{
    <link rel="stylesheet" href="~/Styles/Downloads.css">
}

    <table class="container">
        <thead>
            <tr>
                <th><h1></h1></th>
                <th><h1>Name</h1></th>
                <th><h1>Date</h1></th>
                <th><h1>User</h1></th>
                <th><h1>Comments</h1></th>
            </tr>
        </thead>
        <tbody>
            @foreach (var item in Model.Downloads)
            {
                <tr>
                    <td width="100">
                        @if (item.App == Tango.MachineService.Models.DownloadModel.DownloadApp.MachineStudio)
                        {
                            <img src="~/Images/machine-studio.png" width="50" />
                        }
                        else if (item.App == Tango.MachineService.Models.DownloadModel.DownloadApp.PPC)
                        {
                            <img src="~/Images/ppc.png" width="50" />
                        }
                        else
                        {
                            <img src="~/Images/eureka.png" width="50" />
                        }
                    </td>
                    <td>
                        <a style="display:inline" href="/Downloads/Download?blobName=@item.ID&downloadApp=@item.App">@item.Name</a>
                    </td>
                    <td>@item.Date</td>
                    <td>@item.User</td>
                    <td>@item.Comments</td>
                </tr>
            }
        </tbody>
    </table>