Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dariah
search-commons-views
Commits
e4dd102a
Commit
e4dd102a
authored
Feb 01, 2017
by
Gradl, Tobias
Browse files
665: Remodel wikipedia de schema
Task-Url:
https://mantisbt.tgradl.de/view.php?id=665
parent
1add77b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
crawls/state.jsp
View file @
e4dd102a
<%@ taglib
prefix=
"c"
uri=
"http://java.sun.com/jsp/jstl/core"
%>
<%@ taglib
prefix=
"fmt"
uri=
"http://java.sun.com/jsp/jstl/fmt"
%>
<%@ taglib
prefix=
"s"
uri=
"http://www.springframework.org/tags"
%>
<c:choose>
<c:when
test=
"
${
crawlState
.
state
==
'ACTIVE'
}
"
>
<strong>
~ crawl pipeline in progress
</strong>
<table>
<c:forEach
begin=
"0"
end=
"
${
crawlState
.
pipelineLength
-
1
}
"
var=
"i"
>
<tr>
<c:choose>
<c:when
test=
"
${
i
<
crawlState
.
pipelineIndex
}
"
>
<td><i
class=
"fa fa-check fa-2x"
></i></td>
<td>
~completed
</td>
</c:when>
<c:when
test=
"
${
i
==
crawlState
.
pipelineIndex
}
"
>
<td><i
class=
"fa fa-refresh fa-spin fa-2x"
></i></td>
<td>
<c:choose>
<c:when
test=
"
${
crawlState
.
currentSize
>
0
&&
crawlState
.
currentProgress
>
0
}
"
>
<fmt:formatNumber
var=
"percentage"
value=
"
${
crawlState
.
currentProgress
/
crawlState
.
currentSize
*
100
}
"
maxFractionDigits=
"2"
/>
<fmt:formatNumber
var=
"current"
value=
"
${
crawlState
.
currentProgress
}
"
/>
<fmt:formatNumber
var=
"total"
value=
"
${
crawlState
.
currentSize
}
"
/>
<c:set
var=
"counts"
value=
"
${
percentage
}
% (${current} / ${total} ${crawlState.serviceUnitMessageCode[i]})"
/>
</c:when>
<c:when
test=
"
${
crawlState
.
currentProgress
>
0
}
"
>
<fmt:formatNumber
var=
"current"
value=
"
${
crawlState
.
currentProgress
}
"
/>
<c:set
var=
"counts"
value=
"
${
current
}
/ ${total} ${crawlState.serviceUnitMessageCode[i]}"
/>
</c:when>
</c:choose>
${crawlState.serviceTitleMessageCode[i]}: ${counts}
</td>
</c:when>
<c:otherwise>
<td><i
class=
"fa fa-clock-o fa-2x"
></i></td>
<td>
~waiting
</td>
</c:otherwise>
</c:choose>
</tr>
</c:forEach>
</table>
<strong><s:message
code=
"~eu.dariah.de.minfba.search.crawling.pipeline.in_progress"
/></strong>
<table>
<c:forEach
begin=
"0"
end=
"
${
crawlState
.
pipelineLength
-
1
}
"
var=
"i"
>
<tr>
<c:choose>
<c:when
test=
"
${
i
<
crawlState
.
pipelineIndex
}
"
>
<td><i
class=
"fa fa-check fa-2x"
></i></td>
<td><s:message
code=
"~eu.dariah.de.minfba.common.status.ok"
/></td>
</c:when>
<c:when
test=
"
${
i
==
crawlState
.
pipelineIndex
}
"
>
<td><i
class=
"fa fa-refresh fa-spin fa-2x"
></i></td>
<td>
<s:message
code=
"~eu.dariah.de.minfba.common.status.busy"
var=
"counts"
/>
<c:choose>
<c:when
test=
"
${
crawlState
.
currentSize
>
0
&&
crawlState
.
currentProgress
>
0
}
"
>
<fmt:formatNumber
var=
"percentage"
value=
"
${
crawlState
.
currentProgress
/
crawlState
.
currentSize
*
100
}
"
maxFractionDigits=
"2"
/>
<fmt:formatNumber
var=
"current"
value=
"
${
crawlState
.
currentProgress
}
"
/>
<fmt:formatNumber
var=
"total"
value=
"
${
crawlState
.
currentSize
}
"
/>
<c:set
var=
"counts"
>
${percentage}% (${current} / ${total}
<s:message
code=
"
${
crawlState
.
serviceUnitMessageCode
[
i
]
}
"
/>
)
</c:set>
</c:when>
<c:when
test=
"
${
crawlState
.
currentProgress
>
0
}
"
>
<fmt:formatNumber
var=
"current"
value=
"
${
crawlState
.
currentProgress
}
"
/>
<c:set
var=
"counts"
>
${current}
<c:if
test=
"
${
total
!=
null
}
"
>
/ ${total}
</c:if>
<s:message
code=
"
${
crawlState
.
serviceUnitMessageCode
[
i
]
}
"
/></c:set>
</c:when>
</c:choose>
<s:message
code=
"
${
crawlState
.
serviceTitleMessageCode
[
i
]
}
"
/>
... ${counts}
</td>
</c:when>
<c:otherwise>
<td><i
class=
"fa fa-clock-o fa-2x"
></i></td>
<td><s:message
code=
"
${
crawlState
.
serviceTitleMessageCode
[
i
]
}
"
/>
...
<s:message
code=
"~eu.dariah.de.minfba.common.status.waiting"
/></td>
</c:otherwise>
</c:choose>
</tr>
</c:forEach>
</table>
</c:when>
<c:when
test=
"
${
crawlState
.
state
==
'ERROR'
}
"
>
~error
<s:message
code=
"~eu.dariah.de.minfba.common.status.error"
/>
</c:when>
<c:otherwise>
<!-- NONE, WAITING, COMPLETE -->
~idle
<s:message
code=
"~eu.dariah.de.minfba.common.status.idle"
/>
</c:otherwise>
</c:choose>
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment