Commit e859e7d6 authored by Gradl, Tobias's avatar Gradl, Tobias
Browse files

Merge branch 'styleguide' into 'master'

Styleguide

See merge request !2
parents dbd843de 90e3e09c
...@@ -2,28 +2,15 @@ ...@@ -2,28 +2,15 @@
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags" %> <%@ taglib prefix="s" uri="http://www.springframework.org/tags" %>
<ul class="breadcrumb"> <div class="container<c:if test="${fluidLayout==true}">-fluid</c:if>">
<li class="active"><s:message code="~eu.dariah.de.minfba.common.titles.administration" /></li>
<li><a href="<s:url value="/collections" />"><s:message code="~eu.dariah.de.minfba.search.view.titles.collection_management" /></a></li>
<li class="active">${collectionName}</li>
</ul>
<div id="main-content">
<div class="row"> <div class="row">
<div class="col-lg-12"> <div class="col-12">
<h2> <h1>
${collectionName} ${collectionName}
<small> <c:if test="${_auth==null || _auth.auth==false}"><small>&nbsp;<i class="fas fa-lock" data-toggle="tooltip" data-placement="left" title="<s:message code="~eu.dariah.de.minfba.common.notification.limited_access" />"></i></small></c:if>
<c:if test="${_auth==null || _auth.auth==false}"> </h1>
<span class="glyphicon glyphicon-lock" data-toggle="tooltip" data-placement="left" title="<s:message code="~eu.dariah.de.minfba.common.notification.limited_access" />"></span> <h2><s:message code="~eu.dariah.de.minfba.metamodel.collection" /></h2>
</c:if> <table class="simple-table">
</small>
</h2>
<h3><s:message code="~eu.dariah.de.minfba.metamodel.collection" /></h3>
<table class="default-table">
<tbody> <tbody>
<tr> <tr>
<th><s:message code="~eu.dariah.de.minfba.metamodel.common.id" /></th> <th><s:message code="~eu.dariah.de.minfba.metamodel.common.id" /></th>
...@@ -36,27 +23,32 @@ ...@@ -36,27 +23,32 @@
</tbody> </tbody>
</table> </table>
<div id="endpoint-table-container"> <div id="endpoint-table-container" class="mt-4">
<h3><s:message code="~eu.dariah.de.minfba.search.view.dataset.available_datasets" /></h3> <h2><s:message code="~eu.dariah.de.minfba.search.view.dataset.available_datasets" /></h2>
<!-- Nav tabs --> <!-- Nav tabs -->
<ul class="nav nav-tabs" role="tablist"> <ul class="nav nav-tabs" role="tablist">
<c:forEach items="${collection.endpoints}" var="ep" varStatus="ep_status">
<c:forEach items="${ep.datasetPojos}" var="ds" varStatus="ds_status"> <c:forEach items="${collection.endpoints}" var="ep">
<li id="#tab_${ep.id}-${ds.id}" role="presentation"<c:if test="${ep_status.index==0 && ds_status.index==0}">class="active"</c:if>> <c:forEach items="${ep.datasetPojos}" var="ds">
<a href="#${ep.id}-${ds.id}" aria-controls="${ep.id}-${ds.id}" data-endpoint="${ep.id}" data-dataset="${ds.id}" role="tab" data-toggle="tab">${ds.datamodelPojo.name}</a> <li id="#tab_${ep.id}-${ds.id}" class="nav-item">
<a class="nav-link${ep.id==selectedEpId && ds.id==selectedDsId ? ' active' : ''}" id="s${ep.id}-${ds.id}-tab" href="#s${ep.id}-${ds.id}-panel"
data-toggle="tab" role="tab" aria-controls="${ep.id}-${ds.id}-panel" data-endpoint="${ep.id}" data-dataset="${ds.id}" aria-selected="${ep_status.index==0 && ds_status.index==0 ? 'true' : 'false'}">
${ds.datamodelPojo.name}
</a>
</li> </li>
</c:forEach> </c:forEach>
</c:forEach> </c:forEach>
</ul> </ul>
<!-- Tab panes --> <!-- Tab panes -->
<div class="tab-content"> <div class="tab-content">
<c:forEach items="${collection.endpoints}" var="ep" varStatus="ep_status2"> <c:forEach items="${collection.endpoints}" var="ep">
<c:forEach items="${ep.datasetPojos}" var="ds" varStatus="ds_status2"> <c:forEach items="${ep.datasetPojos}" var="ds">
<div role="tabpanel" class="tab-pane<c:if test="${ep_status2.index==0 && ds_status2.index==0}"> active</c:if>" id="${ep.id}-${ds.id}"> <div role="tabpanel" class="tab-pane fade<c:if test="${ep.id==selectedEpId && ds.id==selectedDsId}"> show active</c:if>" id="s${ep.id}-${ds.id}-panel" aria-labelledby="${ep.id}-${ds.id}-tab">
<div class="col-sm-12"> <div class="col-12">
<div id="table-details${ep.id}-${ds.id}" class="table-light-details row"> <div id="table-details${ep.id}-${ds.id}" class="table-light-details row">
<div class="col-sm-6 dataset-state-container"> <div class="col-sm-6 dataset-state-container">
<%@ include file="incl/state_dataset.jsp" %> <%@ include file="incl/state_dataset.jsp" %>
...@@ -73,4 +65,5 @@ ...@@ -73,4 +65,5 @@
</div> </div>
</div> </div>
</div> </div>
</div> </div>
\ No newline at end of file
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags" %> <%@ taglib prefix="s" uri="http://www.springframework.org/tags" %>
<div class="container<c:if test="${fluidLayout==true}">-fluid</c:if>">
<ul class="breadcrumb">
<li class="active"><s:message code="~eu.dariah.de.minfba.common.titles.administration" /></li>
<li class="active"><s:message code="~eu.dariah.de.minfba.search.view.titles.collection_management" /></li>
</ul>
<div id="main-content">
<div class="row"> <div class="row">
<div id="collections-table-container" class="col-lg-12"> <div class="col-12">
<h2 class="pull-left"> <h1>
<s:message code="~eu.dariah.de.minfba.search.view.titles.collection_management" /> <s:message code="~eu.dariah.de.minfba.search.view.titles.collection_management" />
<c:if test="${_auth==null || _auth.auth==false || _auth.level < 100}"><small>&nbsp;<span class="glyphicon glyphicon-lock pull-right" data-toggle="tooltip" data-placement="left" title="<s:message code="~eu.dariah.de.minfba.common.notification.limited_access" />"></span></small></c:if> <c:if test="${_auth==null || _auth.auth==false}"><small>&nbsp;<i class="fas fa-lock" data-toggle="tooltip" data-placement="left" title="<s:message code="~eu.dariah.de.minfba.common.notification.limited_access" />"></i></small></c:if>
</h2> </h1>
<div id="collections-table-container" class="col-12">
<div class="pull-right"> <div class="row">
<c:if test="${_auth.level >= 100}"> <div class="${_auth.level >= 100 ? 'col-sm-12 col-md-8' : 'col-12'}">
<button id="btn-resync-colreg" class="btn btn-default btn-sm"> <div class="data-table-count float-left">
<i class="fa fa-refresh fa-fw"></i> <s:message code="~eu.dariah.de.minfba.common.actions.synchronize" /> <label><s:message code="~eu.dariah.de.minfba.common.labels.show" />:
</button> <select class="custom-select custom-select-sm form-control form-control-sm" aria-controls="collections-table">
</c:if> <option>10</option>
<option>25</option>
<option>50</option>
<div class="data-table-filter pull-left"> <option>100</option>
<input type="text" class="form-control input-sm" placeholder='<s:message code="~eu.dariah.de.minfba.common.data_tables.filter_paceholder" />'> <option><s:message code="~eu.dariah.de.minfba.common.data_tables.show_all" /></option>
</select>
</label>
</div>
<div class="data-table-filter float-left">
<label><s:message code="~eu.dariah.de.minfba.common.data_tables.filter_paceholder" />:
<input type="text" class="form-control form-control-sm" aria-controls="collections-table">
</label>
</div>
</div>
<c:if test="${_auth.level >= 100}">
<div class="col-sm-12 col-md-4">
<div style="text-align: right;">
<button id="btn-resync-colreg" class="btn btn-primary">
<i class="fas fa-sync-alt"></i> <s:message code="~eu.dariah.de.minfba.common.actions.synchronize" />
</button>
</div>
</div>
</c:if>
</div>
<div class="row">
<div class="col-sm-12">
<table id="collections-table" class="state-table table table-striped state-table-navigatable table-bordered" style="width:100%" role="grid">
<thead>
<tr>
<th><s:message code="~eu.dariah.de.minfba.common.status" /></th> <!-- Badge column -->
<th><s:message code="~eu.dariah.de.minfba.search.model.dataset.documents" /></th>
<th><s:message code="~eu.dariah.de.minfba.metamodel.endpoint.url" /></th>
<th><s:message code="~eu.dariah.de.minfba.metamodel.endpoint.api_type" /></th>
<th><s:message code="~eu.dariah.de.minfba.metamodel.model.name" /></th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td colspan="6" class="dataTables_empty" valign="top"><s:message code="~eu.dariah.de.minfba.common.data_tables.no_data_fetched_yet" /></td>
</tr>
</tbody>
</table>
</div>
</div> </div>
<div class="data-table-count pull-left">
<select class="form-control input-sm">
<option>10</option>
<option>25</option>
<option>50</option>
<option>100</option>
<option><s:message code="~eu.dariah.de.minfba.common.data_tables.show_all" /></option>
</select>
</div>
</div>
<div class="clearfix">
<table id="collections-table" class="state-table state-table-selectable table-striped">
<thead>
<tr>
<th><s:message code="~eu.dariah.de.minfba.common.status" /></th> <!-- Badge column -->
<th><s:message code="~eu.dariah.de.minfba.search.model.dataset.documents" /></th>
<th><s:message code="~eu.dariah.de.minfba.metamodel.endpoint.url" /></th>
<th><s:message code="~eu.dariah.de.minfba.metamodel.endpoint.api_type" /></th>
<th><s:message code="~eu.dariah.de.minfba.metamodel.model.name" /></th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td colspan="6" class="dataTables_empty" valign="top"><s:message code="~eu.dariah.de.minfba.common.data_tables.no_data_fetched_yet" /></td>
</tr>
</tbody>
</table>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -3,11 +3,11 @@ ...@@ -3,11 +3,11 @@
<%@ taglib prefix="joda" uri="http://www.joda.org/joda/time/tags" %> <%@ taglib prefix="joda" uri="http://www.joda.org/joda/time/tags" %>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags" %> <%@ taglib prefix="s" uri="http://www.springframework.org/tags" %>
<h4><s:message code="~eu.dariah.de.minfba.search.view.titles.crawls" /></h4> <h3><s:message code="~eu.dariah.de.minfba.search.view.titles.crawls" /></h3>
<c:choose> <c:choose>
<c:when test="${crawls!=null && fn:length(crawls)>0}"> <c:when test="${crawls!=null && fn:length(crawls)>0}">
<div class="previous-crawls"> <div class="previous-crawls">
<table class="state-table table-striped"> <table class="table state-table table-striped">
<tbody> <tbody>
<c:forEach items="${crawls}" var="crawl" varStatus="status" > <c:forEach items="${crawls}" var="crawl" varStatus="status" >
<c:set var="state" value="ok" /> <c:set var="state" value="ok" />
...@@ -16,39 +16,38 @@ ...@@ -16,39 +16,38 @@
<c:choose> <c:choose>
<c:when test="${crawl.error}"> <c:when test="${crawl.error}">
<c:set var="state" value="warning" /> <c:set var="state" value="warning" />
<c:set var="icon" value="exclamation" /> <c:set var="icon" value="fas fa-exclamation-circle" />
<c:set var="state_message" value="~eu.dariah.de.minfba.search.states.crawl.error" /> <c:set var="state_message" value="~eu.dariah.de.minfba.search.states.crawl.error" />
</c:when> </c:when>
<c:when test="${crawl.complete}"> <c:when test="${crawl.complete}">
<c:set var="state" value="ok" /> <c:set var="state" value="ok" />
<c:set var="icon" value="check" /> <c:set var="icon" value="fas fa-check-circle" />
<c:set var="state_message" value="~eu.dariah.de.minfba.search.states.crawl.complete" /> <c:set var="state_message" value="~eu.dariah.de.minfba.search.states.crawl.complete" />
</c:when> </c:when>
<c:when test="${crawl.busy}"> <c:when test="${crawl.busy}">
<c:set var="state" value="info" /> <c:set var="state" value="info" />
<c:set var="icon" value="refresh" /> <c:set var="icon" value="fas fa-sync-alt" />
<c:set var="state_message" value="~eu.dariah.de.minfba.search.states.crawl.busy" /> <c:set var="state_message" value="~eu.dariah.de.minfba.search.states.crawl.busy" />
</c:when> </c:when>
<c:when test="${crawl.waiting}"> <c:when test="${crawl.waiting}">
<c:set var="state" value="info" /> <c:set var="state" value="info" />
<c:set var="icon" value="clock-o" /> <c:set var="icon" value="fas fa-clock" />
<c:set var="state_message" value="~eu.dariah.de.minfba.search.states.crawl.waiting" /> <c:set var="state_message" value="~eu.dariah.de.minfba.search.states.crawl.waiting" />
</c:when> </c:when>
</c:choose> </c:choose>
<tr id="crawl-${crawl.id}" class="state-row-${state}"> <tr id="crawl-${crawl.id}" class="state-row-${state}">
<th class="state-${state}"> <th class="state-${state}">
<div class="cell-heading no-wrap"> <div class="cell-heading no-wrap">
<i class="${icon} fa-lg" aria-hidden="true"></i>
<c:if test="${crawl.online}"> <c:if test="${crawl.online}">
<i class="fa fa-lg fa-globe" aria-hidden="true"></i> <i class="fas fa-plug fa-lg" aria-hidden="true"></i>
</c:if> </c:if>
<i class="fa fa-lg fa-${icon}" aria-hidden="true"></i>
</div> </div>
</th> </th>
<td> <td>
<ul class="inner-state-list"> <ul class="inner-state-list">
<li> <li>
<span class="state-heading state-${state}"> <span class="state-heading state-${state}">
...@@ -79,29 +78,28 @@ ...@@ -79,29 +78,28 @@
<c:if test="${crawl.logAvailable}"> <c:if test="${crawl.logAvailable}">
<li> <li>
<span class="state-heading"> <span class="state-heading">
<a href='<s:url value="/logs/${crawl.id}.html"></s:url>' target="_blank"> <a class="btn btn-link" href='<s:url value="/logs/${crawl.id}.html"></s:url>' target="_blank">
<i class="fa fa-external-link" aria-hidden="true"></i> <i class="fas fa-external-link-alt" aria-hidden="true"></i>
<s:message code="~eu.dariah.de.minfba.common.view.label.open_log" /> <s:message code="~eu.dariah.de.minfba.common.view.label.open_log" />
</a> </a>
</span> </span>
</li> </li>
</c:if> </c:if>
</ul> <c:if test="${_auth.level >= 100}">
<c:if test="${_auth.level >= 100}"> <c:if test="${state!='info'}">
<td> <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 test="${crawl.online}">
<c:if test="${state=='ok'}">
<button type="button" onclick="editor.performOffline('${crawl.id}');" class="btn btn-link"><i class="fa fa-repeat"></i> <s:message code="~eu.dariah.de.minfba.search.actions.crawls.reindex" /></button><br />
</c:if> </c:if>
<c:if test="${state=='error'}"> <c:if test="${crawl.online}">
<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 /> <c:if test="${state=='ok'}">
</c:if> <li><button type="button" onclick="editor.performOffline('${crawl.id}');" class="btn btn-link"><i class="fas fa-redo"></i> <s:message code="~eu.dariah.de.minfba.search.actions.crawls.reindex" /></button> </li>
</c:if> </c:if>
<c:if test="${state!='info'}"> <c:if test="${state=='error'}">
<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><button type="button" onclick="editor.performOffline('${crawl.id}');" class="btn btn-link"><i class="fas fa-play"></i> <s:message code="~eu.dariah.de.minfba.search.actions.crawls.try_continue" /></button> </li>
</c:if>
</c:if>
</c:if> </c:if>
</td> </ul>
</c:if> </td>
</tr> </tr>
</c:forEach> </c:forEach>
</tbody> </tbody>
......
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags" %> <%@ taglib prefix="s" uri="http://www.springframework.org/tags" %>
<div class="list-group options active" style="overflow: hidden;"> <nav class="sidebar-block">
<h4 class="sidebar-title"><s:message code="~eu.dariah.de.minfba.colreg.view.titles.colreg" /> (<s:message code="~eu.dariah.de.minfba.search.view.api" />)</h4> <h2><s:message code="~eu.dariah.de.minfba.colreg.view.titles.colreg" /> (<s:message code="~eu.dariah.de.minfba.search.view.api" />)</h2>
<div class="list-group-item"> <ul id="colreg-status-container" class="status-container">
<div id="colreg-status-container" class="alert alert-sm alert-default" role="alert"> <li><s:message code="~eu.dariah.de.minfba.search.view.api.url" />: <a href="${colregUrl}" target="_blank">${colregUrl}</a></li>
<h5><s:message code="~eu.dariah.de.minfba.search.view.api.url" />:</h5> <a href="${colregUrl}" target="_blank">${colregUrl}</a><br /> <li><s:message code="~eu.dariah.de.minfba.search.view.api.status" />: <span id="colreg-status"></span></li>
<h5><s:message code="~eu.dariah.de.minfba.search.view.api.status" />:</h5><span id="colreg-status"><i class="fa fa-question" aria-hidden="true"></i></span><br /> <li><s:message code="~eu.dariah.de.minfba.search.view.api.last_sync" />: <span id="colreg-last-sync">&nbsp;</span></li>
<h5><s:message code="~eu.dariah.de.minfba.search.view.api.last_sync" />:</h5><span id="colreg-last-sync">&nbsp;</span> <li><s:message code="~eu.dariah.de.minfba.search.view.api.next_sync" />: <span id="colreg-next-sync">&nbsp;</span></li>
<h5><s:message code="~eu.dariah.de.minfba.search.view.api.next_sync" />:</h5><span id="colreg-next-sync">&nbsp;</span> </ul>
</div>
</div> </nav>
</div>
\ No newline at end of file
...@@ -12,11 +12,11 @@ ...@@ -12,11 +12,11 @@
<li> <li>
<c:choose> <c:choose>
<c:when test="${i<crawlState.pipelineIndex}"> <c:when test="${i<crawlState.pipelineIndex}">
<i class="fa fa-check fa-lg"></i> <i class="fas fa-check-circle fa-lg"></i>
<s:message code="${crawlState.serviceTitleMessageCode[i]}" />: <s:message code="~eu.dariah.de.minfba.common.status.ok" /> <s:message code="${crawlState.serviceTitleMessageCode[i]}" />: <s:message code="~eu.dariah.de.minfba.common.status.ok" />
</c:when> </c:when>
<c:when test="${i==crawlState.pipelineIndex}"> <c:when test="${i==crawlState.pipelineIndex}">
<i class="fa fa-refresh fa-spin fa-lg"></i> <i class="fas fa-sync-alt fa-spin fa-lg"></i>
<s:message code="~eu.dariah.de.minfba.common.status.busy" var="counts" /> <s:message code="~eu.dariah.de.minfba.common.status.busy" var="counts" />
<c:choose> <c:choose>
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
</c:when> </c:when>
<c:otherwise> <c:otherwise>
<i class="fa fa-clock-o fa-lg"></i> <i class="fas fa-clock fa-lg"></i>
<s:message code="${crawlState.serviceTitleMessageCode[i]}" />: <s:message code="~eu.dariah.de.minfba.common.status.waiting" /> <s:message code="${crawlState.serviceTitleMessageCode[i]}" />: <s:message code="~eu.dariah.de.minfba.common.status.waiting" />
</c:otherwise> </c:otherwise>
</c:choose> </c:choose>
......
...@@ -6,67 +6,67 @@ ...@@ -6,67 +6,67 @@
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<c:set var="ep_status" value="ok" /> <c:set var="ep_status" value="ok" />
<c:set var="ep_icon" value="check" /> <c:set var="ep_icon" value="fas fa-check-circle" />
<c:set var="ep_state_message" value="~eu.dariah.de.minfba.search.states.endpoint.accessible" /> <c:set var="ep_state_message" value="~eu.dariah.de.minfba.search.states.endpoint.accessible" />
<c:choose> <c:choose>
<c:when test="${ep.error}"> <c:when test="${ep.error}">
<c:set var="ep_status" value="error" /> <c:set var="ep_status" value="error" />
<c:set var="ep_icon" value="exclamation" /> <c:set var="ep_icon" value="fas fa-exclamation-circle" />
<c:set var="ep_state_message" value="~eu.dariah.de.minfba.search.states.endpoint.error" /> <c:set var="ep_state_message" value="~eu.dariah.de.minfba.search.states.endpoint.error" />
</c:when> </c:when>
<c:when test="${ep.unaccessible}"> <c:when test="${ep.unaccessible}">
<c:set var="ep_status" value="warning" /> <c:set var="ep_status" value="warning" />
<c:set var="ep_icon" value="exclamation" /> <c:set var="ep_icon" value="fas fa-exclamation-circle" />
<c:set var="ep_state_message" value="~eu.dariah.de.minfba.search.states.endpoint.unaccessible" /> <c:set var="ep_state_message" value="~eu.dariah.de.minfba.search.states.endpoint.unaccessible" />
</c:when> </c:when>
<c:when test="${ep.unprocessed}"> <c:when test="${ep.unprocessed}">
<c:set var="ep_status" value="info" /> <c:set var="ep_status" value="info" />
<c:set var="ep_icon" value="question" /> <c:set var="ep_icon" value="fas fa-question-circle" />
<c:set var="ep_state_message" value="~eu.dariah.de.minfba.search.states.endpoint.unprocessed" /> <c:set var="ep_state_message" value="~eu.dariah.de.minfba.search.states.endpoint.unprocessed" />
</c:when> </c:when>
</c:choose> </c:choose>
<c:set var="ds_status" value="ok" /> <c:set var="ds_status" value="ok" />
<c:set var="ds_icon" value="check" /> <c:set var="ds_icon" value="fas fa-check-circle" />
<c:set var="ds_state_message" value="~eu.dariah.de.minfba.search.states.ok" /> <c:set var="ds_state_message" value="~eu.dariah.de.minfba.search.states.ok" />
<c:choose> <c:choose>
<c:when test="${ds.errorLock}"> <c:when test="${ds.errorLock}">
<c:set var="ds_status" value="error" /> <c:set var="ds_status" value="error" />
<c:set var="ds_icon" value="exclamation" /> <c:set var="ds_icon" value="fas fa-exclamation-circle" />
<c:set var="ds_state_message" value="~eu.dariah.de.minfba.search.states.dataset.error" /> <c:set var="ds_state_message" value="~eu.dariah.de.minfba.search.states.dataset.error" />
</c:when> </c:when>
<c:when test="${!ds.datamodelPojo.available}"> <c:when test="${!ds.datamodelPojo.available}">
<c:set var="ds_status" value="error" /> <c:set var="ds_status" value="error" />
<c:set var="ds_icon" value="exclamation" /> <c:set var="ds_icon" value="fas fa-exclamation-circle" />
<c:set var="ds_state_message" value="~eu.dariah.de.minfba.search.states.datamodel.unavailable" /> <c:set var="ds_state_message" value="~eu.dariah.de.minfba.search.states.datamodel.unavailable" />
</c:when> </c:when>
<c:when test="${ds.warning}"> <c:when test="${ds.warning}">
<c:set var="ds_status" value="warning" /> <c:set var="ds_status" value="warning" />
<c:set var="ds_icon" value="exclamation" /> <c:set var="ds_icon" value="fas fa-exclamation-circle" />
<c:set var="ds_state_message" value="~eu.dariah.de.minfba.search.states.dataset.outdated" /> <c:set var="ds_state_message" value="~eu.dariah.de.minfba.search.states.dataset.outdated" />
</c:when> </c:when>
<c:when test="${ds.processing}"> <c:when test="${ds.processing}">
<c:set var="ds_status" value="info" /> <c:set var="ds_status" value="info" />
<c:set var="ds_icon" value="refresh" /> <c:set var="ds_icon" value="fas fa-sync-alt" />
<c:set var="ds_state_message" value="~eu.dariah.de.minfba.search.states.dataset.busy" /> <c:set var="ds_state_message" value="~eu.dariah.de.minfba.search.states.dataset.busy" />
</c:when> </c:when>
<c:when test="${ds.waiting}"> <c:when test="${ds.waiting}">
<c:set var="ds_status" value="info" /> <c:set var="ds_status" value="info" />
<c:set var="ds_icon" value="clock-o" /> <c:set var="ds_icon" value="fas fa-clock" />
<c:set var="ds_state_message" value="~eu.dariah.de.minfba.search.states.dataset.waiting" /> <c:set var="ds_state_message" value="~eu.dariah.de.minfba.search.states.dataset.waiting" />
</c:when> </c:when>
<c:when test="${ds.docs==0}"> <c:when test="${ds.docs==0}">
<c:set var="ds_status" value="info" /> <c:set var="ds_status" value="info" />
<c:set var="ds_icon" value="question" /> <c:set var="ds_icon" value="fas fa-question-circle" />
<c:set var="ds_state_message" value="~eu.dariah.de.minfba.search.states.dataset.unprocessed" /> <c:set var="ds_state_message" value="~eu.dariah.de.minfba.search.states.dataset.unprocessed" />
</c:when> </c:when>
</c:choose> </c:choose>
<h4><s:message code="~eu.dariah.de.minfba.search.model.endpoint" /></h4> <h3><s:message code="~eu.dariah.de.minfba.search.model.endpoint" /></h3>
<table class="state-table"> <table class="table state-table">
<tr class="state-row-${ep_status}"> <tr class="state-row-${ep_status}">
<th class="state-${ep_status}"> <th class="state-${ep_status}">
<i class="fa fa-lg fa-${ep_icon}" aria-hidden="true"></i> <i class="${ep_icon} fa-lg" aria-hidden="true"></i>
</th> </th>
<td> <td>
<ul class="inner-state-list"> <ul class="inner-state-list">
...@@ -102,11 +102,11 @@ ...@@ -102,11 +102,11 @@
</tr> </tr>
</table> </table>
<h4><s:message code="~eu.dariah.de.minfba.search.model.dataset" /></h4> <h3><s:message code="~eu.dariah.de.minfba.search.model.dataset" /></h3>
<table class="state-table"> <table class="table state-table">
<tr class="state-row-${ds_status}"> <tr class="state-row-${ds_status}">
<th class="state-${ds_status}"> <th class="state-${ds_status}">
<i class="fa fa-lg fa-${ds_icon}" aria-hidden="true"></i> <i class="${ds_icon} fa-lg" aria-hidden="true"></i>
</th> </th>
<td> <td>
<ul class="inner-state-list"> <ul class="inner-state-list">
...@@ -170,17 +170,17 @@ ...@@ -170,17 +170,17 @@
</tr> </tr>
</table> </table>
<c:if test="${_auth.level >= 100}"> <c:if test="${_auth.level >= 100}">
<h4><s:message code="~eu.dariah.de.minfba.common.link.available_actions" /></h4> <h3><s:message code="~eu.dariah.de.minfba.common.link.available_actions" /></h3>
<div> <div>
<c:choose> <c:choose>
<c:when test="${currentCrawl!=null}"> <c:when test="${currentCrawl!=null}">
<button class="btn-cancel-crawl btn btn-link" data-crawl-id="${currentCrawl.id}" onclick="editor.cancelCrawl(this);"><i class="fa fa-ban fa-color-danger"></i> <s:message code="~eu.dariah.de.minfba.search.actions.crawls.cancel" /></button> <button class="btn-cancel-crawl btn btn-primary" data-crawl-id="${currentCrawl.id}" onclick="editor.cancelCrawl(this);"><i class="fa fa-ban fa-color-danger"></i> <s:message code="~eu.dariah.de.minfba.search.actions.crawls.cancel" /></button>
</c:when> </c:when>
<c:otherwise> <c:otherwise>
<c:if test="${!ep.error && !ep.unaccessible && !ds.errorLock && ds.datamodelPojo.available}"> <c:if test="${!ep.error && !ep.unaccessible && !ds.errorLock && ds.datamodelPojo.available}">
<button class="btn-crawl-online btn btn-link" onclick="editor.crawlOnline('${ep.id}','${ds.id}');"><i class="fa fa-refresh"></i><s:message code="~eu.dariah.de.minfba.search.view.crawl.crawl_online" /></button> <button class="btn-crawl-online btn btn-primary" onclick="editor.crawlOnline('${ep.id}','${ds.id}');"><i class="fa fa-refresh"></i><s:message code="~eu.dariah.de.minfba.search.view.crawl.crawl_online" /></button>
</c:if> </c:if>
<button class="btn-clear-index btn btn-link" onclick="editor.clearData('${ep.id}','${ds.id}', ${data.exists && data.fileCount>0});"><i class="fa fa-trash "></i> <s:message code="~eu.dariah.de.minfba.search.actions.dataset.clear" /></button>