PageRenderTime 6ms CodeModel.GetById 3ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/BlogEngine/BlogEngine.NET/admin/Extensions/Extensions.cshtml

#
Razor | 67 lines | 60 code | 7 blank | 0 comment | 1 complexity | 283152748019676364f3bf03190f8531 MD5 | raw file
 1@using BlogEngine.Core.Packaging
 2
 3@{
 4    Page.Title = Resources.labels.themes;
 5    Layout = "~/admin/_Layout.cshtml";
 6
 7    var loaderSrc = Path.Combine(BlogEngine.Core.Utils.ApplicationRelativeWebRoot, "pics/ajax-loader.gif");
 8
 9    // disallow gallery page in child blogs.
10    var canManagePackages = BlogEngine.Core.Blog.CurrentInstance.IsPrimary;
11    
12    if (!canManagePackages)
13    {   
14        Response.Redirect("default.cshtml");
15        return;
16    }
17}
18
19 <script type="text/javascript">
20     $(document).ready(function () {
21         $('.loader2').hide();
22         $('.page-loader').hide();
23         GalleryGetPackages(0, 'Extension');
24     });
25</script>
26
27<div class="content-box-outer">
28    <div class="content-box-full">
29        <div class="TabRow">
30            <div class="AlternatePagesDivder"></div>
31            <div class="AlternatePageDivTab">
32	            <span class="AlternatePageTab AlternatePageTabSelected" title="Tasks">Extensions</span>
33            </div>
34            <div class="AlternatePagesDivder"></div>
35            <div class="AlternatePageDivTab">
36	            <span class="AlternatePageTab" title="News" onclick="location.href='Themes.cshtml'">Themes</span>
37            </div>
38            <div class="AlternatePagesDivder"></div>
39            <div class="AlternatePageDivTab">
40	            <span class="AlternatePageTab" title="News" onclick="location.href='Widgets.cshtml'">Widgets</span>
41            </div>
42            <div class="TabRight">
43                <a href="default.cshtml">@Resources.labels.installed</a> 
44                | <span>@Resources.labels.gallery</span>
45            </div>
46        </div>
47        
48        <div>
49            <div class="gallery-options">
50                <div id="gallery-search">
51                    <input type="text" value="" id="searchGallery" />
52                    <input type="submit" id="btnGalSearch" class="btn primary" onclick="GalleryGetPackages(0,'Extension'); return false;" value="@Resources.labels.search" />
53                </div>
54                <span>@Resources.labels.orderBy: </span>
55                <select id="gallery-sort-order" onchange="GalleryGetPackages(0,'Extension')">
56                    <option value="Alphanumeric">@Resources.labels.alphaNumeric</option>
57                    <option value="Downloads">@Resources.labels.downloads</option>
58                    <option value="Newest" selected="selected">@Resources.labels.newest</option>
59                </select>
60                <img class="page-loader" src="@loaderSrc" alt="loader" />
61            </div>
62            <div id="Container"></div>
63            <div id="Pager"></div>
64        </div>
65        <div class="clear"></div>
66    </div>
67</div>