| 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 | <div class="toolForm"> |
|---|
| 9 | <form name="user_api_keys" id="user_api_keys" action="${h.url_for( controller='user', action='api_keys' )}" method="post" > |
|---|
| 10 | <div class="toolFormTitle">Web API Key</div> |
|---|
| 11 | <div class="toolFormBody"> |
|---|
| 12 | <div class="form-row"> |
|---|
| 13 | <label>Current API key:</label> |
|---|
| 14 | %if user.api_keys: |
|---|
| 15 | ${user.api_keys[0].key} |
|---|
| 16 | %else: |
|---|
| 17 | none set |
|---|
| 18 | %endif |
|---|
| 19 | </div> |
|---|
| 20 | <div class="form-row"> |
|---|
| 21 | <input type="submit" name="new_api_key_button" value="Generate a new key now"/> |
|---|
| 22 | %if user.api_keys: |
|---|
| 23 | (invalidates old key) |
|---|
| 24 | %endif |
|---|
| 25 | <div class="toolParamHelp" style="clear: both;"> |
|---|
| 26 | An API key will allow you to access Galaxy via its web |
|---|
| 27 | API (documentation forthcoming). Please note that |
|---|
| 28 | <strong>this key acts as an alternate means to access |
|---|
| 29 | your account, and should be treated with the same care |
|---|
| 30 | as your login password</strong>. |
|---|
| 31 | </div> |
|---|
| 32 | </div> |
|---|
| 33 | </div> |
|---|
| 34 | </form> |
|---|
| 35 | </div> |
|---|