[2] | 1 | <%inherit file="/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="${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> |
---|