Warning: file_get_contents(http://s4p.us/a/api/?method=generateUrl&param=http%3A%2F%2Fpaste4.us%2Fview_paste%2F199%2F) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error in /home/content/82/8776282/html/evbpc.com/paste_system/code/view_paste.php on line 21
_DownloadListItemPartial
Fullscreen Options: With Syntax Highlighting | Plain Text | Design View
Short Link:
_DownloadListItemPartial
By EBrown
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
 @model Mavra2D_Website.Models.Download
@{
    ViewBag.Title = "_DownloadListItemPartial";
}

@{
    if (Model.URL != "" && Model.URL != null)
    {
        @:<a href="@Html.DisplayFor(m => Model.URL)">
    }
    if (Model.Stable)
    {
        @:<span class="text-primary">
    }
    else
    {
        @:<span class="text-muted">
    }
}

@Html.DisplayFor(m => Model.Major).@Html.DisplayFor(m => Model.Minor).@Html.DisplayFor(m => Model.Revision).@Html.DisplayFor(m => Model.Build)

@{
    if (Model.URL != "" && Model.URL != null)
    {
        if (Model.Stable)
        {
            @:Stable</span></a>
        }
        else
        {
            @:</span></a>
        }
    }
    else
    {
        if (Model.Stable)
        {
            @:Stable</span>
        }
        else
        {
            @:</span>
        }
    }
}

@if ((bool)ViewData["ShowControls"])
{
    @:|
    if ((bool)ViewData["IsAdministrator"])
    {
        @Html.ActionLink("Edit""Edit", new { id = Model.DownloadId }) @:|
        @Html.ActionLink("Delete""Delete", new { id = Model.DownloadId }) @:|
    }
    @Html.ActionLink("Download Details""Details", new { id = Model.DownloadId }, (Model.Stable ? new { @class = "text-primary" } : new { @class = "text-muted" }))
}