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

/templates/webapps/galaxy/admin/index.mako

https://bitbucket.org/cistrome/cistrome-harvard/
Mako | 129 lines | 117 code | 9 blank | 3 comment | 8 complexity | 8e44e917a56de8c93a8671b32032c5a7 MD5 | raw file
  1<%inherit file="/webapps/galaxy/base_panels.mako"/>
  2<%namespace file="/message.mako" import="render_msg" />
  3
  4## Default title
  5<%def name="title()">Galaxy / Cistrome Administration</%def>
  6
  7<%def name="stylesheets()">
  8    ${parent.stylesheets()}    
  9    ## Include "base.css" for styling tool menu and forms (details)
 10    ${h.css( "base", "autocomplete_tagging", "tool_menu" )}
 11
 12    ## But make sure styles for the layout take precedence
 13    ${parent.stylesheets()}
 14
 15    <style type="text/css">
 16        body { margin: 0; padding: 0; overflow: hidden; }
 17        #left {
 18            background: #C1C9E5 url(${h.url_for('/static/style/menu_bg.png')}) top repeat-x;
 19        }
 20
 21        .unified-panel-body {
 22            overflow: auto;
 23        }
 24        .toolMenu {
 25            margin: 8px 0 0 10px;
 26        }
 27    </style>
 28</%def>
 29
 30<%def name="javascripts()">
 31    ${parent.javascripts()}
 32</%def>
 33
 34<%def name="init()">
 35    <%
 36        self.has_left_panel=True
 37        self.has_right_panel=False
 38        self.active_view="admin"
 39    %>
 40</%def>
 41
 42<%def name="left_panel()">
 43    <div class="unified-panel-header" unselectable="on">
 44        <div class='unified-panel-header-inner'>Administration</div>
 45    </div>
 46    <div class="unified-panel-body">
 47        <div class="toolMenu">
 48            <div class="toolSectionList">
 49                <div class="toolSectionTitle">Security</div>
 50                <div class="toolSectionBody">
 51                    <div class="toolSectionBg">
 52                        <div class="toolTitle"><a href="${h.url_for( controller='admin', action='users' )}" target="galaxy_main">Manage users</a></div>
 53                        <div class="toolTitle"><a href="${h.url_for( controller='admin', action='groups' )}" target="galaxy_main">Manage groups</a></div>
 54                        <div class="toolTitle"><a href="${h.url_for( controller='admin', action='roles' )}" target="galaxy_main">Manage roles</a></div>
 55			            <div class="toolTitle"><a href="${h.url_for( controller='userskeys', action='all_users' )}" target="galaxy_main">Manage users API keys</a></div>
 56                        %if trans.app.config.allow_user_impersonation:
 57                            <div class="toolTitle"><a href="${h.url_for( controller='admin', action='impersonate' )}" target="galaxy_main">Impersonate a user</a></div>
 58                        %endif
 59                    </div>
 60                </div>
 61                <div class="toolSectionPad"></div>
 62                <div class="toolSectionTitle">Data</div>
 63                <div class="toolSectionBody">
 64                    <div class="toolSectionBg">
 65                        %if trans.app.config.enable_quotas:
 66                            <div class="toolTitle"><a href="${h.url_for( controller='admin', action='quotas' )}" target="galaxy_main">Manage quotas</a></div>
 67                        %endif
 68                        <div class="toolTitle"><a href="${h.url_for( controller='library_admin', action='browse_libraries' )}" target="galaxy_main">Manage data libraries</a></div>
 69                        %if trans.app.config.enable_beta_job_managers:
 70                            <div class="toolTitle"><a href="${h.url_for( controller='data_admin', action='manage_data' )}" target="galaxy_main">Manage local data</a></div>
 71                        %endif
 72                        <div class="toolTitle"><a href="${h.url_for( controller='data_manager' )}" target="galaxy_main">Manage local data (beta)</a></div>
 73                    </div>
 74                </div>
 75                <div class="toolSectionPad"></div>
 76                <div class="toolSectionTitle">Server</div>
 77                <div class="toolSectionBody">
 78                    <div class="toolSectionBg">
 79                        <div class="toolTitle"><a href="${h.url_for( controller='admin', action='view_datatypes_registry' )}" target="galaxy_main">View data types registry</a></div>
 80                        <div class="toolTitle"><a href="${h.url_for( controller='admin', action='view_tool_data_tables' )}" target="galaxy_main">View data tables registry</a></div>
 81                        <div class="toolTitle"><a href="${h.url_for( controller='admin', action='tool_versions' )}" target="galaxy_main">View tool lineage</a></div>
 82                        <div class="toolTitle"><a href="${h.url_for( controller='admin', action='reload_tool' )}" target="galaxy_main">Reload a tool's configuration</a></div>
 83                        <div class="toolTitle"><a href="${h.url_for( controller='admin', action='memdump' )}" target="galaxy_main">Profile memory usage</a></div>
 84                        <div class="toolTitle"><a href="${h.url_for( controller='admin', action='jobs' )}" target="galaxy_main">Manage jobs</a></div>
 85                        <div class="toolTitle"><a href="${h.url_for( controller='admin', action='review_tool_migration_stages' )}" target="galaxy_main">Review tool migration stages</a></div>
 86                        %if installing_repository_ids:
 87                            <div class="toolTitle"><a href="${h.url_for( controller='admin_toolshed', action='monitor_repository_installation', tool_shed_repository_ids=installing_repository_ids )}" target="galaxy_main">Monitor installing tool shed repositories</a></div>
 88                        %endif
 89                        %if installed_repositories:
 90                            <div class="toolTitle"><a href="${h.url_for( controller='admin_toolshed', action='reset_metadata_on_selected_installed_repositories' )}" target="galaxy_main">Reset metadata for tool shed repositories</a></div>
 91                            <div class="toolTitle"><a href="${h.url_for( controller='admin_toolshed', action='browse_repositories' )}" target="galaxy_main">Manage installed tool shed repositories</a></div>
 92                        %endif
 93                    </div>
 94                </div>
 95                %if trans.app.tool_shed_registry and trans.app.tool_shed_registry.tool_sheds:
 96                    <div class="toolSectionPad"></div>
 97                    <div class="toolSectionTitle">Tool sheds</div>
 98                    <div class="toolSectionBody">
 99                        <div class="toolSectionBg">                        
100                            <div class="toolTitle"><a href="${h.url_for( controller='admin_toolshed', action='browse_tool_sheds' )}" target="galaxy_main">Search and browse tool sheds</a></div>
101                        </div>
102                    </div>
103                %endif
104                <div class="toolSectionPad"></div>
105                <div class="toolSectionTitle">Form Definitions</div>
106                <div class="toolSectionBody">
107                    <div class="toolSectionBg">
108                        <div class="toolTitle"><a href="${h.url_for( controller='forms', action='browse_form_definitions' )}" target="galaxy_main">Manage form definitions</a></div>
109                    </div>
110                </div>
111                <div class="toolSectionPad"></div>
112                <div class="toolSectionTitle">Sample Tracking</div>
113                <div class="toolSectionBody">
114                    <div class="toolSectionBg">
115                        <div class="toolTitle"><a href="${h.url_for( controller='external_service', action='browse_external_services' )}" target="galaxy_main">Manage sequencers and external services</a></div>
116                        <div class="toolTitle"><a href="${h.url_for( controller='request_type', action='browse_request_types' )}" target="galaxy_main">Manage request types</a></div>
117                        <div class="toolTitle"><a href="${h.url_for( controller='requests_admin', action='browse_requests' )}" target="galaxy_main">Sequencing requests</a></div>
118                        <div class="toolTitle"><a href="${h.url_for( controller='requests_common', action='find_samples', cntrller='requests_admin' )}" target="galaxy_main">Find samples</a></div>
119                    </div>
120                </div>
121            </div>
122        </div>    
123    </div>
124</%def>
125
126<%def name="center_panel()">
127    <% center_url = h.url_for( controller='admin', action='center', message=message, status=status ) %>
128    <iframe name="galaxy_main" id="galaxy_main" frameborder="0" style="position: absolute; width: 100%; height: 100%;" src="${center_url}"> </iframe>
129</%def>