1 | <%inherit file="/base_panels.mako"/> |
---|
2 | |
---|
3 | ## Default title |
---|
4 | <%def name="title()">Galaxy Tool Shed</%def> |
---|
5 | |
---|
6 | ## Masthead |
---|
7 | <%def name="masthead()"> |
---|
8 | |
---|
9 | ## Tab area, fills entire width |
---|
10 | <div style="position: absolute; top: 0; left: 0; width: 100%; text-align: center"> |
---|
11 | |
---|
12 | <table class="tab-group" border="0" cellspacing="0" style="margin: auto;"> |
---|
13 | <tr> |
---|
14 | |
---|
15 | <%def name="tab( id, display, href, target='_parent', visible=True, extra_class='' )"> |
---|
16 | <% |
---|
17 | cls = "tab" |
---|
18 | if extra_class: |
---|
19 | cls += " " + extra_class |
---|
20 | if self.active_view == id: |
---|
21 | cls += " active" |
---|
22 | style = "" |
---|
23 | if not visible: |
---|
24 | style = "display: none;" |
---|
25 | %> |
---|
26 | <td class="${cls}" style="${style}"><a target="${target}" href="${href}">${display}</a></td> |
---|
27 | </%def> |
---|
28 | |
---|
29 | ${tab( "tools", "Tools", h.url_for( controller='/tool', action='index', webapp='community' ) )} |
---|
30 | ${tab( "admin", "Admin", h.url_for( controller='/admin', action='index', webapp='community' ), extra_class="admin-only", visible=( trans.user and app.config.is_admin_user( trans.user ) ) )} |
---|
31 | |
---|
32 | <td class="tab"> |
---|
33 | <a>Help</a> |
---|
34 | <div class="submenu"> |
---|
35 | <ul> |
---|
36 | <li><a target="galaxy_main" href="${h.url_for( controller='tool', action='help' )}">How to upload, download and install tools</a></li> |
---|
37 | <li><a href="${app.config.get( "bugs_email", "mailto:galaxy-bugs@bx.psu.edu" )}">Email comments, bug reports, or suggestions</a></li> |
---|
38 | <li><a target="_blank" href="${app.config.get( "wiki_url", "http://bitbucket.org/galaxy/galaxy-central/wiki" )}">Galaxy Wiki</a></li> |
---|
39 | <li><a target="_blank" href="${app.config.get( "screencasts_url", "http://galaxycast.org" )}">Video tutorials (screencasts)</a></li> |
---|
40 | <li><a target="_blank" href="${app.config.get( "citation_url", "http://bitbucket.org/galaxy/galaxy-central/wiki/Citations" )}">How to Cite Galaxy</a></li> |
---|
41 | </ul> |
---|
42 | </div> |
---|
43 | </td> |
---|
44 | |
---|
45 | ## User tab. |
---|
46 | <% |
---|
47 | cls = "tab" |
---|
48 | if self.active_view == 'user': |
---|
49 | cls += " active" |
---|
50 | %> |
---|
51 | <td class="${cls}"> |
---|
52 | <a>User</a> |
---|
53 | <% |
---|
54 | if trans.user: |
---|
55 | user_email = trans.user.email |
---|
56 | style1 = "display: none;" |
---|
57 | style2 = ""; |
---|
58 | else: |
---|
59 | user_email = "" |
---|
60 | style1 = "" |
---|
61 | style2 = "display: none;" |
---|
62 | %> |
---|
63 | <div class="submenu"> |
---|
64 | <ul class="loggedout-only" style="${style1}"> |
---|
65 | <li><a target="galaxy_main" href="${h.url_for( controller='/user', action='login', webapp='community' )}">Login</a></li> |
---|
66 | %if app.config.allow_user_creation: |
---|
67 | <li><a target="galaxy_main" href="${h.url_for( controller='/user', action='create', webapp='community' )}">Register</a></li> |
---|
68 | %endif |
---|
69 | </ul> |
---|
70 | <ul class="loggedin-only" style="${style2}"> |
---|
71 | %if app.config.use_remote_user: |
---|
72 | %if app.config.remote_user_logout_href: |
---|
73 | <li><a href="${app.config.remote_user_logout_href}" target="_top">Logout</a></li> |
---|
74 | %endif |
---|
75 | %else: |
---|
76 | <li>Logged in as <span id="user-email">${user_email}</span></li> |
---|
77 | <li><a target="galaxy_main" href="${h.url_for( controller='/user', action='index', webapp='community' )}">Preferences</a></li> |
---|
78 | <% |
---|
79 | if app.config.require_login: |
---|
80 | logout_url = h.url_for( controller='/root', action='index', webapp='community', m_c='user', m_a='logout' ) |
---|
81 | else: |
---|
82 | logout_url = h.url_for( controller='/user', action='logout', webapp='community' ) |
---|
83 | %> |
---|
84 | <li><a target="_top" href="${logout_url}">Logout</a></li> |
---|
85 | %endif |
---|
86 | </ul> |
---|
87 | </div> |
---|
88 | </td> |
---|
89 | </tr> |
---|
90 | </table> |
---|
91 | </div> |
---|
92 | |
---|
93 | ## Logo, layered over tabs to be clickable |
---|
94 | <div class="title" style="position: absolute; top: 0; left: 0;"> |
---|
95 | <a href="${app.config.get( 'logo_url', '/' )}"> |
---|
96 | <img border="0" src="${h.url_for('/static/images/galaxyIcon_noText.png')}" style="width: 26px; vertical-align: top;"> |
---|
97 | Galaxy Tool Shed |
---|
98 | %if app.config.brand: |
---|
99 | <span class='brand'>/ ${app.config.brand}</span> |
---|
100 | %endif |
---|
101 | </a> |
---|
102 | </div> |
---|
103 | |
---|
104 | </%def> |
---|