[2] | 1 | <%inherit file="/base.mako"/> |
---|
| 2 | <%namespace file="/message.mako" import="render_msg" /> |
---|
| 3 | |
---|
| 4 | %if message: |
---|
| 5 | ${render_msg( message, status )} |
---|
| 6 | %endif |
---|
| 7 | |
---|
| 8 | %if trans.user: |
---|
| 9 | <h2>${_('User preferences')}</h2> |
---|
| 10 | <p>You are currently logged in as ${trans.user.email}.</p> |
---|
| 11 | <ul> |
---|
| 12 | %if webapp == 'galaxy': |
---|
| 13 | <li><a href="${h.url_for( controller='user', action='show_info' )}">${_('Manage your information')}</a></li> |
---|
| 14 | <li><a href="${h.url_for( controller='user', action='set_default_permissions' )}">${_('Change default permissions')}</a> for new histories</li> |
---|
| 15 | %if trans.app.config.enable_api: |
---|
| 16 | <li><a href="${h.url_for( controller='user', action='api_keys' )}">${_('Manage your API Keys')}</a> for new histories</li> |
---|
| 17 | %endif |
---|
| 18 | %else: |
---|
| 19 | <li><a href="${h.url_for( controller='user', action='show_info', webapp='community' )}">${_('Manage your information')}</a></li> |
---|
| 20 | %endif |
---|
| 21 | </ul> |
---|
| 22 | %else: |
---|
| 23 | %if not message: |
---|
| 24 | <p>${n_('You are currently not logged in.')}</p> |
---|
| 25 | %endif |
---|
| 26 | <ul> |
---|
| 27 | <li><a href="${h.url_for( action='login' )}">${_('Login')}</li> |
---|
| 28 | <li><a href="${h.url_for( action='create' )}">${_('Register')}</a></li> |
---|
| 29 | </ul> |
---|
| 30 | %endif |
---|