Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dariah
search-commons-views
Commits
b9d5eae9
Commit
b9d5eae9
authored
Jan 21, 2019
by
Gradl, Tobias
Browse files
1245: Implement DARIAH-DE Styleguide
Task-Url:
https://pm.winseda.de/issues/1245
parent
321806b2
Changes
2
Show whitespace changes
Inline
Side-by-side
collections/incl/crawls.jsp
View file @
b9d5eae9
...
...
@@ -7,7 +7,7 @@
<c:choose>
<c:when
test=
"
${
crawls
!=
null
&&
fn:
length
(
crawls
)>
0
}
"
>
<div
class=
"previous-crawls"
>
<table
class=
"state-table table-striped"
>
<table
class=
"
table
state-table table-striped"
>
<tbody>
<c:forEach
items=
"
${
crawls
}
"
var=
"crawl"
varStatus=
"status"
>
<c:set
var=
"state"
value=
"ok"
/>
...
...
@@ -40,15 +40,14 @@
<tr
id=
"crawl-${crawl.id}"
class=
"state-row-${state}"
>
<th
class=
"state-${state}"
>
<div
class=
"cell-heading no-wrap"
>
<i
class=
"${icon} fa-lg"
aria-hidden=
"true"
></i>
<c:if
test=
"
${
crawl
.
online
}
"
>
<i
class=
"fa fa-
l
g fa-g
lobe
"
aria-hidden=
"true"
></i>
<i
class=
"fa
s
fa-
plu
g fa-
l
g"
aria-hidden=
"true"
></i>
</c:if>
<i
class=
"${icon} fa-lg"
aria-hidden=
"true"
></i>
</div>
</th>
<td>
<ul
class=
"inner-state-list"
>
<li>
<span
class=
"state-heading state-${state}"
>
...
...
@@ -79,29 +78,28 @@
<c:if
test=
"
${
crawl
.
logAvailable
}
"
>
<li>
<span
class=
"state-heading"
>
<a
href=
'
<s:url
value=
"/logs/${crawl.id}.html"
></s:url>
'
target=
"_blank"
>
<i
class=
"fa fa-external-link"
aria-hidden=
"true"
></i>
<a
class=
"btn btn-link"
href=
'
<s:url
value=
"/logs/${crawl.id}.html"
></s:url>
'
target=
"_blank"
>
<i
class=
"fa
s
fa-external-link
-alt
"
aria-hidden=
"true"
></i>
<s:message
code=
"~eu.dariah.de.minfba.common.view.label.open_log"
/>
</a>
</span>
</li>
</c:if>
</ul>
<c:if
test=
"
${
_auth
.
level
>=
100
}
"
>
<td>
<c:if
test=
"
${
state
!=
'info'
}
"
>
<li><button
type=
"button"
onclick=
"editor.removeCrawl('${crawl.id}', this);"
class=
"btn btn-link"
><i
class=
"fa fa-trash fa-color-danger"
></i>
<s:message
code=
"~eu.dariah.de.minfba.search.actions.crawls.remove"
/></button></li>
</c:if>
<c:if
test=
"
${
crawl
.
online
}
"
>
<c:if
test=
"
${
state
==
'ok'
}
"
>
<button
type=
"button"
onclick=
"editor.performOffline('${crawl.id}');"
class=
"btn btn-link"
><i
class=
"fa fa-re
peat
"
></i>
<s:message
code=
"~eu.dariah.de.minfba.search.actions.crawls.reindex"
/></button>
<br
/
>
<li>
<button
type=
"button"
onclick=
"editor.performOffline('${crawl.id}');"
class=
"btn btn-link"
><i
class=
"fa
s
fa-re
do
"
></i>
<s:message
code=
"~eu.dariah.de.minfba.search.actions.crawls.reindex"
/></button>
</li
>
</c:if>
<c:if
test=
"
${
state
==
'error'
}
"
>
<button
type=
"button"
onclick=
"editor.performOffline('${crawl.id}');"
class=
"btn btn-link"
><i
class=
"fa fa-play"
></i>
<s:message
code=
"~eu.dariah.de.minfba.search.actions.crawls.try_continue"
/></button>
<br
/
>
<li>
<button
type=
"button"
onclick=
"editor.performOffline('${crawl.id}');"
class=
"btn btn-link"
><i
class=
"fa
s
fa-play"
></i>
<s:message
code=
"~eu.dariah.de.minfba.search.actions.crawls.try_continue"
/></button>
</li
>
</c:if>
</c:if>
<c:if
test=
"
${
state
!=
'info'
}
"
>
<button
type=
"button"
onclick=
"editor.removeCrawl('${crawl.id}', this);"
class=
"btn btn-link"
><i
class=
"fa fa-trash fa-color-danger"
></i>
<s:message
code=
"~eu.dariah.de.minfba.search.actions.crawls.remove"
/></button>
</c:if>
</ul>
</td>
</c:if>
</tr>
</c:forEach>
</tbody>
...
...
collections/incl/state_crawl.jsp
View file @
b9d5eae9
...
...
@@ -12,11 +12,11 @@
<li>
<c:choose>
<c:when
test=
"
${
i
<
crawlState
.
pipelineIndex
}
"
>
<i
class=
"fa fa-check fa-lg"
></i>
<i
class=
"fa
s
fa-check
-circle
fa-lg"
></i>
<s:message
code=
"
${
crawlState
.
serviceTitleMessageCode
[
i
]
}
"
/>
:
<s:message
code=
"~eu.dariah.de.minfba.common.status.ok"
/>
</c:when>
<c:when
test=
"
${
i
==
crawlState
.
pipelineIndex
}
"
>
<i
class=
"fa fa-
refresh
fa-spin fa-lg"
></i>
<i
class=
"fa
s
fa-
sync-alt
fa-spin fa-lg"
></i>
<s:message
code=
"~eu.dariah.de.minfba.common.status.busy"
var=
"counts"
/>
<c:choose>
...
...
@@ -40,7 +40,7 @@
</c:when>
<c:otherwise>
<i
class=
"fa fa-clock
-o
fa-lg"
></i>
<i
class=
"fa
s
fa-clock fa-lg"
></i>
<s:message
code=
"
${
crawlState
.
serviceTitleMessageCode
[
i
]
}
"
/>
:
<s:message
code=
"~eu.dariah.de.minfba.common.status.waiting"
/>
</c:otherwise>
</c:choose>
...
...
Write
Preview
Markdown
is supported
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