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

428: Show real error page instead of Whitelabel Error Page (OPENED)

Task-Url: search#428
parent 7274639e
......@@ -12,25 +12,21 @@
<div class="container<c:if test="${fluidLayout==true}">-fluid</c:if>">
<div class="row">
<div class="col-12">
<h1>${errorHeading}</h1>
<c:if test="${errorMsg!=null}">
<p>
<em>Message</em>: ${errorMsg}
</p>
</c:if>
<c:if test="${errorDetail!=null}">
<div class="alert alert-${errorLevel==null ? 'error' : errorLevel}" role="alert">${errorDetail}</div>
</c:if>
<c:if test="${hideHelpText==null||hideHelpText==false}">
<p>Please try to reproduce the steps that led to this error and notify the DARIAH-DE helpdesk if the problem persists</p>
</c:if>
<pre style="display: none;">Failed URL: ${url}
Exception: ${exception.message}
<c:forEach items="${exception.stackTrace}" var="ste">
${ste}</c:forEach>
</pre>
<h1>${error} ${reason}</h1>
<c:if test="${hideHelpText==null||hideHelpText==false}">
<p>Please try to reproduce the steps that led to this error and notify the DARIAH-DE helpdesk if you suspect an issue with this service.</p>
</c:if>
<ul>
<li><a href="<s:url value='/' />"><i class="ti-home"></i></a></li>
<li><a href="<s:url value='/search/simple/' />"><s:message code="~eu.dariah.de.minfba.search.view.titles.simple_search" /></a></li>
<li><a href="<s:url value='/search/extended/' />"><s:message code="~eu.dariah.de.minfba.search.view.titles.extended_search" /></a></li>
</ul>
</div>
</div>
</div>
......@@ -18,7 +18,7 @@
<script type="text/javascript">
var AppProperties = function() {
this.refreshViews = <c:out value="${_refreshViews}"/>;
this.refreshViews = <c:out value="${_refreshViews==null ? true : _refreshViews}"/>;
this.refreshIntervalMs = 5000;
this.notificationsArea = "#notifications-area";
this.notificationsTimeoutMs = 5000;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment