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