aboutsummaryrefslogtreecommitdiff
path: root/templates/index.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/index.tpl')
-rw-r--r--templates/index.tpl17
1 files changed, 9 insertions, 8 deletions
diff --git a/templates/index.tpl b/templates/index.tpl
index c8c95d4..9baef2a 100644
--- a/templates/index.tpl
+++ b/templates/index.tpl
@@ -12,10 +12,9 @@
12 </td> 12 </td>
13 </tr> 13 </tr>
14 </script> 14 </script>
15 <script id="account_row_template" type="text/template"> 15 <script id="aws_account_row_template" type="text/template">
16 <tr id="account-row-[[ .short_name ]]" class="account-row" data-account-name="[[ .short_name ]]" data-global-credential-endpoint="[[ .global_credential_url ]]"> 16 <tr id="account-row-[[ .short_name ]]" class="account-row" data-account-name="[[ .short_name ]]" data-global-credential-endpoint="[[ .global_credential_url ]]">
17 <td>[[ .name ]]</td> 17 <td>[[ .name ]] <span class="vendor-tag vendor-[[ .vendor ]]" alt="[[ .vendor ]]" title="[[ .vendor ]]">[[ .vendor ]]</span></td>
18 <td>[[ .vendor ]]</td>
19 <td> 18 <td>
20 <a href="[[ .console_redirect_url ]]">Console</a> | 19 <a href="[[ .console_redirect_url ]]">Console</a> |
21 <a data-content-type="application/vnd.broker.v2.credential.aws.ini" href="#/cli/[[ .short_name ]]">AWS CLI</a> | 20 <a data-content-type="application/vnd.broker.v2.credential.aws.ini" href="#/cli/[[ .short_name ]]">AWS CLI</a> |
@@ -27,29 +26,31 @@
27 </script> 26 </script>
28 <script type="text/javascript" src="/assets/site.js"></script> 27 <script type="text/javascript" src="/assets/site.js"></script>
29 <script type="text/javascript"> 28 <script type="text/javascript">
30 window.addEventListener('load', populateAPIKey); 29 window.addEventListener('load', setupHomePage);
31 window.addEventListener('load', populateAccountTable);
32 window.addEventListener('load', setAdminClass);
33 </script> 30 </script>
34 </head> 31 </head>
35 <body> 32 <body>
36 <p id="api-error">Error communicating with the API.</p> 33 <p id="api-error">Error communicating with the API.</p>
37 34
35 <div id="login-row">
36 Hello <span id="username"></span>! (<a href="/api">API</a> | <a href="#" id="show-api-key">API Key</a> | <a href="/logout">Logout</a>)
37 </div>
38
38 <h1>Cloud Accounts</h1> 39 <h1>Cloud Accounts</h1>
39 <table id="account-table"> 40 <table id="account-table">
40 <tr> 41 <tr>
41 <th>Console Login</th> 42 <th>Console Login</th>
42 <th>Vendor</th>
43 <th>Credentials</th> 43 <th>Credentials</th>
44 </tr> 44 </tr>
45 </table> 45 </table>
46 <p><button class="admin">Add Account</button></p>
47 46
47 <div id="api-key-block">
48 <h1>API Key</h1> 48 <h1>API Key</h1>
49 <div id="api-key"> 49 <div id="api-key">
50 <p>To access <a href="/api/account">the API</a> set the header <tt>Authorization: Bearer {token}</tt> to the token below:</p> 50 <p>To access <a href="/api/account">the API</a> set the header <tt>Authorization: Bearer {token}</tt> to the token below:</p>
51 <textarea>Bearer {token}</textarea> 51 <textarea>Bearer {token}</textarea>
52 <p><b>Token Expires:</b> <span id="session-expires"></span></p> 52 <p><b>Token Expires:</b> <span id="session-expires"></span></p>
53 </div> 53 </div>
54 </div>
54 </body> 55 </body>
55</html> 56</html>