/templates/webapps/galaxy/user/api_keys.mako
https://bitbucket.org/cistrome/cistrome-harvard/ · Mako · 45 lines · 42 code · 3 blank · 0 comment · 2 complexity · 1095c553fc899bf061ab7cc7b935bd35 MD5 · raw file
- <%inherit file="/base.mako"/>
- <%namespace file="/message.mako" import="render_msg" />
- <br/><br/>
- <ul class="manage-table-actions">
- <li>
- <a class="action-button" href="${h.url_for( controller='user', action='index', cntrller=cntrller )}">User preferences</a>
- </li>
- </ul>
- %if message:
- ${render_msg( message, status )}
- %endif
- <div class="toolForm">
- <div class="toolFormTitle">Web API Key</div>
- <div class="toolFormBody">
- <form name="user_api_keys" id="user_api_keys" action="${h.url_for( controller='user', action='api_keys', cntrller=cntrller )}" method="post" >
- <div class="form-row">
- <label>Current API key:</label>
- %if user.api_keys:
- ${user.api_keys[0].key}
- %else:
- none set
- %endif
- </div>
- <div class="form-row">
- <input type="submit" name="new_api_key_button" value="Generate a new key now"/>
- %if user.api_keys:
- (invalidates old key)
- %endif
- <div class="toolParamHelp" style="clear: both;">
- <%
- if trans.webapp.name == 'galaxy':
- webapp_str = 'Galaxy'
- else:
- webapp_str = 'the Tool Shed'
- %>
- An API key will allow you to access ${webapp_str} via its web API. Please note that <strong>this key acts as an alternate means
- to access your account and should be treated with the same care as your login password</strong>.
- </div>
- </div>
- </form>
- </div>
- </div>