PageRenderTime 14ms CodeModel.GetById 8ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/templates/webapps/reports/base_panels.mako

https://bitbucket.org/cistrome/cistrome-harvard/
Mako | 38 lines | 32 code | 2 blank | 4 comment | 4 complexity | e2fdc2027fbe26c0eb51e7bb46295356 MD5 | raw file
 1<%inherit file="/base/base_panels.mako"/>
 2
 3## Default title
 4<%def name="title()">Galaxy Reports</%def>
 5
 6## Masthead
 7<%def name="masthead()">
 8    ## Tab area, fills entire width
 9    <div style="position: absolute; top: 0; left: 0; width: 100%; text-align: center">
10        <table class="tab-group" border="0" cellspacing="0" style="margin: auto;">
11            <tr>
12                <%def name="tab( id, display, href, target='_parent', visible=True, extra_class='' )">
13                    <%
14                    cls = "tab"
15                    if extra_class:
16                        cls += " " + extra_class
17                    if self.active_view == id:
18                        cls += " active"
19                    style = ""
20                    if not visible:
21                        style = "display: none;"
22                    %>
23                    <td class="${cls}" style="${style}"><a target="${target}" href="${href}">${display}</a></td>
24                </%def>
25            </tr>
26        </table>
27    </div>
28    ## Logo, layered over tabs to be clickable
29    <div class="title" style="position: absolute; top: 0; left: 0;">
30        <a href="${h.url_for( app.config.get( 'logo_url', '/' ) )}">
31        <img border="0" src="${h.url_for('/static/images/galaxyIcon_noText.png')}" style="width: 26px; vertical-align: top;">
32        Galaxy Reports
33        %if app.config.brand:
34            <span class='brand'>/ ${app.config.brand}</span>
35        %endif
36        </a>
37    </div>
38</%def>