1. Brad Chapman
  2. galaxy-central

Source

galaxy-central / templates / webapps / community / index.mako

Greg Von Kuster f905e14 


Greg Von Kuster db4f8be 

Greg Von Kuster 70e1f41 





Greg Von Kuster db4f8be 
Greg Von Kuster 70e1f41 



Greg Von Kuster db4f8be 


Greg Von Kuster 70e1f41 




Greg Von Kuster f905e14 

Greg Von Kuster 70e1f41 


Greg Von Kuster f905e14 











Greg Von Kuster 69aab50 
Greg Von Kuster f905e14 



Greg Von Kuster c528fab 













Greg Von Kuster f905e14 
Greg Von Kuster 824c59d 


Greg Von Kuster f905e14 
Greg Von Kuster a5e19a6 
Greg Von Kuster 824c59d 


Greg Von Kuster b02edf5 
Greg Von Kuster 824c59d 


Greg Von Kuster a3ffda1 
Greg Von Kuster b11be06 
Greg Von Kuster a3ffda1 
Greg Von Kuster 85e0592 
Greg Von Kuster a5e19a6 
Greg Von Kuster f905e14 

Greg Von Kuster a5e19a6 

Greg Von Kuster b02edf5 

Greg Von Kuster a5e19a6 
Greg Von Kuster b02edf5 
Greg Von Kuster a5e19a6 


Greg Von Kuster f905e14 








Greg Von Kuster 9487657 
Greg Von Kuster b02edf5 
Greg Von Kuster 70e1f41 
Greg Von Kuster f905e14 

<%inherit file="/webapps/community/base_panels.mako"/>
<%namespace file="/message.mako" import="render_msg" />

<%def name="stylesheets()">
    ${parent.stylesheets()}    
    ## Include "base.css" for styling tool menu and forms (details)
    ${h.css( "base", "autocomplete_tagging", "tool_menu" )}

    ## But make sure styles for the layout take precedence
    ${parent.stylesheets()}

    <style type="text/css">
        body { margin: 0; padding: 0; overflow: hidden; }
        #left {
            background: #C1C9E5 url(${h.url_for('/static/style/menu_bg.png')}) top repeat-x;
        }
    </style>
</%def>

<%def name="javascripts()">
    ${parent.javascripts()}
    ${h.js( "jquery", "galaxy.base" )}
</%def>

<%def name="init()">
    <%
        self.has_left_panel=True
        self.has_right_panel=False
        self.active_view="tools"
    %>
    %if trans.app.config.require_login and not trans.user:
        <script type="text/javascript">
            if ( window != top ) {
                top.location.href = location.href;
            }
        </script>
    %endif
</%def>

<%def name="left_panel()">
    <div class="unified-panel-header" unselectable="on">
        <div class='unified-panel-header-inner'>${trans.app.shed_counter.valid_tools} valid tools on ${trans.app.shed_counter.generation_time}</div>
    </div>
    <div class="page-container" style="padding: 10px;">
        <div class="toolMenu">
            <div class="toolSectionList">
                %if repository_metadata:
                    <div class="toolSectionPad"></div>
                    <div class="toolSectionTitle">
                        Search
                    </div>
                    <div class="toolSectionBody">
                        <div class="toolTitle">
                            <a target="galaxy_main" href="${h.url_for( controller='repository', action='find_tools', webapp='community' )}">Search for valid tools</a>
                        </div>
                        <div class="toolTitle">
                            <a target="galaxy_main" href="${h.url_for( controller='repository', action='find_workflows', webapp='community' )}">Search for workflows</a>
                        </div>
                    </div>
                %endif
                <div class="toolSectionPad"></div>
                <div class="toolSectionTitle">
                    Repositories
                </div>
                <div class="toolSectionBody">
                    <div class="toolSectionBg">
                        <div class="toolTitle">
                            <a target="galaxy_main" href="${h.url_for( controller='repository', action='browse_categories', webapp='community' )}">Browse by category</a>
                        </div>
                        %if trans.user:
                            <div class="toolTitle">
                                <a target="galaxy_main" href="${h.url_for( controller='repository', action='browse_repositories', operation='my_repositories', webapp='community' )}">Browse my repositories</a>
                            </div>
                            <div class="toolTitle">
                                <a target="galaxy_main" href="${h.url_for( controller='repository', action='browse_invalid_tools', cntrller='repository', webapp='community' )}">Browse my invalid tools</a>
                            </div>
                        %endif
                    </div>
                </div>
                <div class="toolSectionBody">
                    <div class="toolSectionBg">
                        <div class="toolTitle">
                            %if trans.user:
                                <a target="galaxy_main" href="${h.url_for( controller='repository', action='create_repository', webapp='community' )}">Create new repository</a>
                            %else:
                                <a target="galaxy_main" href="${h.url_for( controller='/user', action='login', webapp='community' )}">Login to create a repository</a>
                            %endif
                        </div>
                    </div>
                </div>
            </div>
        </div>    
    </div>
</%def>

<%def name="center_panel()">
    <%
        if trans.app.config.require_login and not trans.user:
            center_url = h.url_for( controller='user', action='login', message=message, status=status, webapp='community' )
        else:
            center_url = h.url_for( controller='repository', action='browse_categories', message=message, status=status, webapp='community' )
    %>
    <iframe name="galaxy_main" id="galaxy_main" frameborder="0" style="position: absolute; width: 100%; height: 100%;" src="${center_url}"> </iframe>
</%def>