PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/templates/webapps/community/admin/index.mako

https://bitbucket.org/cistrome/cistrome-harvard/
Mako | 99 lines | 90 code | 7 blank | 2 comment | 7 complexity | f18a7470e8c800bd0edc8b632ba428c5 MD5 | raw file
 1<%inherit file="/webapps/community/base_panels.mako"/>
 2<%namespace file="/message.mako" import="render_msg" />
 3
 4<%def name="stylesheets()">   
 5    ## Include "base.css" for styling tool menu and forms (details)
 6    ${h.css( "base", "autocomplete_tagging", "tool_menu" )}
 7
 8    ## But make sure styles for the layout take precedence
 9    ${parent.stylesheets()}
10
11    <style type="text/css">
12        body { margin: 0; padding: 0; overflow: hidden; }
13        #left {
14            background: #C1C9E5 url(${h.url_for('/static/style/menu_bg.png')}) top repeat-x;
15        }
16    </style>
17</%def>
18
19<%def name="javascripts()">
20    ${parent.javascripts()}
21    ${h.js( "jquery", "galaxy.base" )}
22</%def>
23
24<%def name="init()">
25    <%
26        self.has_left_panel=True
27        self.has_right_panel=False
28        self.active_view="tools"
29    %>
30    %if trans.app.config.require_login and not trans.user:
31        <script type="text/javascript">
32            if ( window != top ) {
33                top.location.href = location.href;
34            }
35        </script>
36    %endif
37</%def>
38
39<%def name="left_panel()">
40    <div class="unified-panel-header" unselectable="on">
41        <div class='unified-panel-header-inner'>Administration</div>
42    </div>
43    <div class="page-container" style="padding: 10px;">
44        <div class="toolMenu">
45            <div class="toolSectionList">
46                <div class="toolSectionTitle">
47                    Repositories
48                </div>
49                <div class="toolSectionBody">
50                    <div class="toolSectionBg">
51                        <div class="toolTitle">
52                            <a target="galaxy_main" href="${h.url_for( controller='repository', action='browse_categories', webapp='community' )}">Browse by category</a>
53                        </div>
54                        <div class="toolTitle">
55                            <a target="galaxy_main" href="${h.url_for( controller='admin', action='browse_repositories', webapp='community' )}">Browse all repositories</a>
56                        </div>
57                        <div class="toolTitle">
58                            <a target="galaxy_main" href="${h.url_for( controller='admin', action='browse_repository_metadata', webapp='community' )}">Browse metadata</a>
59                        </div>
60                    </div>
61                </div>
62                <div class="toolSectionTitle">
63                    Categories
64                </div>
65                <div class="toolSectionBody">
66                    <div class="toolSectionBg">
67                        <div class="toolTitle">
68                            <a target="galaxy_main" href="${h.url_for( controller='admin', action='manage_categories', webapp='community' )}">Manage categories</a>
69                        </div>
70                    </div>
71                </div>
72                <div class="toolSectionPad"></div>
73                <div class="toolSectionTitle">
74                    Security
75                </div>
76                <div class="toolSectionBody">
77                    <div class="toolSectionBg">
78                        <div class="toolTitle">
79                            <a target="galaxy_main" href="${h.url_for( controller='admin', action='users', webapp='community' )}">Manage users</a>
80                        </div>
81                        <div class="toolTitle">
82                            <a target="galaxy_main" href="${h.url_for( controller='admin', action='groups', webapp='community' )}">Manage groups</a>
83                        </div>
84                        <div class="toolTitle">
85                            <a target="galaxy_main" href="${h.url_for( controller='admin', action='roles', webapp='community' )}">Manage roles</a>
86                        </div>
87                    </div>
88                </div>
89            </div>
90        </div>    
91    </div>
92</%def>
93
94<%def name="center_panel()">
95    <%
96        center_url = h.url_for( action='center', webapp='community' )
97    %>
98    <iframe name="galaxy_main" id="galaxy_main" frameborder="0" style="position: absolute; width: 100%; height: 100%;" src="${center_url}"> </iframe>
99</%def>