tokenslist.jsp 1.35 KB
Newer Older
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
<!DOCTYPE html>

<%@include file="/WEB-INF/jsp/init.jsp" %>

<html>
<head>
    <title><spring:message code="oauth-client.page.list.title"/></title>
</head>
<body>
<h1>
    <spring:message code="oauth-client.list"/>
</h1>

<p></p>
<table class="accessions">
    <thead>
    <tr>
        <td><spring:message code="oauth-client"/></td>
        <td><spring:message code="oauth-client.token.issue.date"/></td>
        <td><spring:message code="oauth-client.expires.date"/></td>
        <td><spring:message code="edit"/></td>
    </tr>
    </thead>

    <tbody>

    <c:forEach items="${tokens}" var="token">
28
        <tr class="${token.accessToken.expired ? 'expired' : ''}">
29
30
31
32
            <td>
                <a href="<c:url value="/management/${token.clientId}"/> ">${token.clientId}</a>
            </td>
            <td>
igoshin's avatar
igoshin committed
33
                <fmt:formatDate value="${token.createdDate}" pattern="MM-dd-yyyy hh:mm:ss"/>
34
35
            </td>
            <td>
36
                <fmt:formatDate value="${token.accessToken.expiration}" pattern="MM-dd-yyyy hh:mm:ss"/>
37
38
            </td>
            <td>
39
            	<!-- FIXME Use POST -->
40
41
42
43
44
45
46
47
48
49
                <a href="<c:url value="/management/user/${token.userName}/${token.tokenId}/remove"/>"><spring:message
                        code="oauth-client.remove"/></a>
            </td>
        </tr>
    </c:forEach>

    </tbody>
</table>
</body>
</html>