Parent: [272af5] (diff)

Child: [6f44f8] (diff)

Download this file

site_admin_api_tickets.html    48 lines (43 with data), 1.0 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{% set page="api_tickets" %}
{% extends 'allura:templates/site_admin.html' %}
{% block content %}
<h1>Special API Tickets</h1>
<p>API Tickets give access to special APIs which should be used under supervision.
</p>
<form name="ticket_form" method="POST">
<table>
<tr>
<td>Username:</td> <td><input name="for_user" type="text" value="{{for_user}}"></td>
</tr>
<tr>
<td>Capabilities (JSON):</td> <td><input name="caps" type="text" value="{{caps}}"></td>
</tr>
<tr>
<td>Expiration date:</td> <td><input name="expires" type="text" value="{{expires}}"></td>
</tr>
<tr>
<td><input type="submit" value="Save"><td>
</tr>
</table>
</form>
<table>
<tr>
<th>Username</th>
<th>Expiration Date</th>
<th>Capabilities</th>
</tr>
{% for token in token_list %}
<tr>
<td>{{token.user.username}}</td>
<td>{{token.expires}}</td>
<td>{{token.capabilities}}</td>
<td></td>
</tr>
<tr>
<td colspan="3">
&nbsp;&nbsp;&nbsp;API Ticket: {{token.api_key}}<br/>
&nbsp;&nbsp;&nbsp;Secret Key: {{token.secret_key}}</td>
</tr>
{% endfor %}
</table>
{% endblock %}