source: indico/indico/MaKaC/webinterface/tpls/UserAPI.tpl @ 624623

hello-world-walkthroughipv6v0.98-seriesv0.98.2v0.98.3v0.98b2v0.99v1.0v1.1
Last change on this file since 624623 was 624623, checked in by Jose Benito <jose.benito.gonzalez@…>, 21 months ago

[MIN] Fix typo

  • Property mode set to 100644
File size: 2.3 KB
Line 
1<table class="groupTable">
2    <tr>
3        <td colspan="2">
4            <div class="groupTitle">${ _("HTTP API details") }</div>
5        </td>
6    </tr>
7    <tr>
8        <td class="dataCaptionTD"><span class="dataCaptionFormat">${ _("API Key")}</span></td>
9        <td class="blacktext">
10            ${apiKey.getKey() if apiKey else _('None')}
11        </td>
12    </tr>
13    <tr>
14        <td nowrap class="dataCaptionTD"><span class="dataCaptionFormat">${ _("Created")}</span></td>
15        <td class="blacktext">
16            ${formatDateTime(apiKey.getCreatedDT()) if apiKey else _('n/a')}
17        </td>
18    </tr>
19    <tr>
20        <td nowrap class="dataCaptionTD"><span class="dataCaptionFormat">${ _("Last used")}</span></td>
21        <td class="blacktext">
22            ${apiKey.getLastUsedDT() and formatDateTime(apiKey.getLastUsedDT()) or 'Never' if apiKey else _('n/a')}
23        </td>
24    </tr>
25    <tr>
26        <td nowrap class="dataCaptionTD"><span class="dataCaptionFormat">${ _("Last used by")}</span></td>
27        <td class="blacktext">
28            ${apiKey.getLastUsedIP() or 'n/a' if apiKey else _('n/a')}
29        </td>
30    </tr>
31    <tr>
32        <td nowrap class="dataCaptionTD"><span class="dataCaptionFormat">${ _("Last request")}</span></td>
33        <td class="blacktext">
34            ${apiKey.getLastRequest() or 'n/a' if apiKey else _('n/a')}
35        </td>
36    </tr>
37    <tr>
38        <td nowrap class="dataCaptionTD"><span class="dataCaptionFormat">${ _("Total uses")}</span></td>
39        <td class="blacktext">
40            ${apiKey.getUseCount() if apiKey else _('n/a')}
41        </td>
42    </tr>
43    <tr>
44        <td></td>
45        <td>
46            % if not apiKey:
47                <form action="${urlHandlers.UHUserAPICreate.getURL()}" method="POST" onsubmit="return confirm('${_("Please only create an API key if you actually need one. Unused API keys might be deleted after some time.")}');">
48                    <input type="submit" value="Create API key" />
49                </form>
50            % else:
51                <form action="${urlHandlers.UHUserAPICreate.getURL()}" method="POST" onsubmit="return confirm('${_("Warning: When creating a new API key, your old key will stop working immediately!")}');">
52                    <input type="submit" value="Create a new API key" />
53                </form>
54            % endif
55        </td>
56    </tr>
57</table>
Note: See TracBrowser for help on using the repository browser.