/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
- <%inherit file="/base/base_panels.mako"/>
- ## Default title
- <%def name="title()">Galaxy Reports</%def>
- ## Masthead
- <%def name="masthead()">
- ## Tab area, fills entire width
- <div style="position: absolute; top: 0; left: 0; width: 100%; text-align: center">
- <table class="tab-group" border="0" cellspacing="0" style="margin: auto;">
- <tr>
- <%def name="tab( id, display, href, target='_parent', visible=True, extra_class='' )">
- <%
- cls = "tab"
- if extra_class:
- cls += " " + extra_class
- if self.active_view == id:
- cls += " active"
- style = ""
- if not visible:
- style = "display: none;"
- %>
- <td class="${cls}" style="${style}"><a target="${target}" href="${href}">${display}</a></td>
- </%def>
- </tr>
- </table>
- </div>
- ## Logo, layered over tabs to be clickable
- <div class="title" style="position: absolute; top: 0; left: 0;">
- <a href="${h.url_for( app.config.get( 'logo_url', '/' ) )}">
- <img border="0" src="${h.url_for('/static/images/galaxyIcon_noText.png')}" style="width: 26px; vertical-align: top;">
- Galaxy Reports
- %if app.config.brand:
- <span class='brand'>/ ${app.config.brand}</span>
- %endif
- </a>
- </div>
- </%def>