ingeststatus.jsp 5.86 KB
Newer Older
1
<%-- 
Michael Ritter's avatar
Michael Ritter committed
2
    Document   : ingeststatus
3
4
5
6
    Created on : Jun 11, 2012, 4:20:58 PM
    Author     : shake
--%>

Michael Ritter's avatar
Michael Ritter committed
7
8
<%@page pageEncoding="UTF-8" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
9
10
11
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>

<!DOCTYPE html
Michael Ritter's avatar
Michael Ritter committed
12
13
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
14
15

<html>
Michael Ritter's avatar
Michael Ritter committed
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
48
49
50
51
52
53
54
55
56
57
58
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title>Ingest Store</title>
    <jsp:include page="imports.jsp"/>
</head>

<body>
<jsp:include page="header.jsp"/>

<%--@elvariable id="results" type="edu.umiacs.ace.monitor.register.IngestThreadPool"--%>
<%--@elvariable id="active" type="edu.umiacs.ace.monitor.register.IngestSupervisor"--%>

<div class="standardBody">
    <h2>Token Import Status</h2>
    <div class="row">
        <div class="col-3">
            <div class="nav nav-pills flex-column">
                <li class="nav-item">
                    Active Token Imports
                </li>
                <c:forEach items="${results.cache}" var="entry">
                    <c:set var="collection" value="${entry.key}"/>

                    <li class="nav-item">
                        <a class="${active != null && entry.key.id == active.collection.id
                              ? 'nav-link active' : 'nav-link'}"
                           href="TokenImportStatus?active=${entry.key.id}">
                                ${collection.group} - ${collection.name}
                        </a>
                    </li>
                </c:forEach>
            </div>
        </div>

        <!-- we want to pass the active thread here instead of looping all -->
        <div class="col-9">
            <div class="tab-content card" id="v-pills-tab-content">
                <div class="card-header">
                    <ul class="nav nav-pills card-header-pills">
                        <li class="nav-item">
                            <a class="nav-link active" id="pills-queued-tab" role="tab"
                               href="#pills-queued" data-toggle="pill"
                               aria-controls="pills-queued" aria-selected="true">Queued
59
                                (${active.queuedSize})</a>
Michael Ritter's avatar
Michael Ritter committed
60
61
62
63
64
                        </li>
                        <li class="nav-item">
                            <a class="nav-link" id="pills-new-tab" role="tab"
                               href="#pills-new" data-toggle="pill"
                               aria-controls="pills-new" aria-selected="false">New
65
                                (${active.newSize})</a>
Michael Ritter's avatar
Michael Ritter committed
66
67
68
69
70
                        </li>
                        <li class="nav-item">
                            <a class="nav-link" id="pills-updated-tab" role="tab"
                               href="#pills-updated" data-toggle="pill"
                               aria-controls="pills-updated" aria-selected="false">Updated
71
                                (${active.updatedSize})</a>
Michael Ritter's avatar
Michael Ritter committed
72
73
74
75
76
                        </li>
                        <li class="nav-item">
                            <a class="nav-link" id="pills-match-tab" role="tab"
                               href="#pills-match" data-toggle="pill"
                               aira-controls="pills-match" aria-selected="false">
77
                                Matched (${active.matchSize})</a>
Michael Ritter's avatar
Michael Ritter committed
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
                        </li>

                        <%-- Maybe in the future
                        <li class="nav-item ml-auto">
                            <a class="nav-link bg-danger text-white" href="#">Cancel</a>
                        </li>
                        --%>
                    </ul>
                </div>

                <div class="card-body">
                    <div class="tab-content" id="pills-content">
                        <div class="tab-pane fade show active" id="pills-queued"
                             role="tabpanel"
                             aria-labelledby="pills-queued-tab">
                            <ul class="list-group list-group-flush">
94
                                <c:forEach items="${active.queued}" var="identifier">
Michael Ritter's avatar
Michael Ritter committed
95
96
97
98
99
100
101
                                    <li class="list-group-item">${identifier}</li>
                                </c:forEach>
                            </ul>
                        </div>
                        <div class="tab-pane fade" id="pills-new" role="tabpanel"
                             aria-labelledby="pills-new-tab">
                            <ul class="list-group list-group-flush">
102
                                <c:forEach items="${active.newItems}" var="identifier">
Michael Ritter's avatar
Michael Ritter committed
103
104
105
106
107
108
109
                                    <li class="list-group-item">${identifier}</li>
                                </c:forEach>
                            </ul>
                        </div>
                        <div class="tab-pane fade" id="pills-updated" role="tabpanel"
                             aria-labelledby="pills-updated-tab">
                            <ul class="list-group list-group-flush">
110
                                <c:forEach items="${active.updated}" var="identifier">
Michael Ritter's avatar
Michael Ritter committed
111
112
113
114
115
116
117
                                    <li class="list-group-item">${identifier}</li>
                                </c:forEach>
                            </ul>
                        </div>
                        <div class="tab-pane fade" id="pills-match" role="tabpanel"
                             aria-labelledby="pills-match-tab">
                            <ul class="list-group list-group-flush">
118
                                <c:forEach items="${active.matched}" var="identifier">
Michael Ritter's avatar
Michael Ritter committed
119
120
121
122
123
                                    <li class="list-group-item">${identifier}</li>
                                </c:forEach>
                            </ul>
                        </div>
                    </div>
124
125
                </div>
            </div>
Michael Ritter's avatar
Michael Ritter committed
126
127
128
129
130
        </div>
    </div>
</div>
<jsp:include page="footer.jsp"/>
</body>
131
</html>