PageRenderTime 24ms CodeModel.GetById 15ms app.highlight 4ms RepoModel.GetById 2ms app.codeStats 0ms

/BlogEngine/BlogEngine.NET/Templates/packages.htm

#
HTML | 61 lines | 61 code | 0 blank | 0 comment | 0 complexity | 6b78f40f6e9dfafc35239c3c7ee98405 MD5 | raw file
 1{#if $T.d == null || $T.d[0] == null}
 2<br />
 3<div class="info">
 4    There are no packages to display.
 5</div>
 6{#else}
 7<ul class="gallery {$T.d[0].PackageType}">
 8    {#foreach $T.d as p}
 9        {#if $T.p.Location == "I"}
10            <li class="pkg-installed">
11        {#else}
12            <li>
13        {#/if}   
14        <div class="{$T.p.PackageType}">
15            <div class="pkg-hdr">
16                <div class="pkg-img">
17                    <img src="{$T.p.IconUrl}" class="thumbnail" alt="theme" />
18                </div> 
19                <div class="prop-hdr">
20                    {#if $T.p.PackageUrl != null && $T.p.PackageUrl.length > 0}
21                        <a href="{$T.p.PackageUrl}" target="_new">
22                            <h2>{$T.p.Title}</h2>
23                        </a>
24                    {#else}
25                        <h2>{$T.p.Title}</h2>
26                    {#/if}
27                        <p class="version">Version: {$T.p.OnlineVersion}</p>
28                    {#if $T.p.Website != null}
29                        <p class="website">Author: <a target="_new" href="{$T.p.Website}">{$T.p.Authors}</a></p> 
30                    {#else}
31                        <p>Author: {$T.p.Authors}</p>
32                    {#/if}
33                    <p>Downloads: {$T.p.DownloadCount}</p>
34                    {#if $T.p.Location == "G"}
35                    <p id="p_{$T.p.Id}">
36                        <a href="" id="a-{$T.p.Id}" class="newAction" onclick="InstallPackage('{$T.p.Id}'); return false;">Install</a>
37                    </p>
38                    {#else}
39                        {#if $T.p.UpdateAvailable}
40                            <p id="upd-{$T.p.Id}" class="package-update">
41                                <a href="" onclick="UpdatePackage('{$T.p.Id}','G'); return false;">Update</a>
42                            </p>
43                        {#else}
44                            <p class="package-installed" style="float: none">
45                                Installed
46                            </p>
47                        {#/if}
48                    {#/if}
49                </div>  
50            </div>          
51            <div class="pkg-desc">
52                <p>{$T.p.Description}</p>
53                {#if $T.p.Tags != null}
54                    <p class="tags">Tags: {$T.p.Tags}</p> 
55                {#/if}                                     
56            </div> 
57        </div>        
58    </li>
59    {#/for}
60</ul>
61{#/if}