Improve output: distinguish between failed assertions (failures) and unexpected exceptions (errors), and print a filtered stack trace for any exception.
This commit is contained in:
commit
4f2e303079
1839 changed files with 235630 additions and 0 deletions
59
webapp/web/themes/default/jsp/dashboard.jsp
Normal file
59
webapp/web/themes/default/jsp/dashboard.jsp
Normal file
|
@ -0,0 +1,59 @@
|
|||
<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>
|
||||
|
||||
<%@ page import="edu.cornell.mannlib.vitro.webapp.beans.Individual" %>
|
||||
<%@ page import="edu.cornell.mannlib.vitro.webapp.beans.VClass" %>
|
||||
<%@ page import="edu.cornell.mannlib.vitro.webapp.edit.n3editing.EditConfiguration" %>
|
||||
<%@ page import="edu.cornell.mannlib.vitro.webapp.edit.n3editing.EditSubmission" %>
|
||||
<%@ page import="edu.cornell.mannlib.vitro.webapp.filters.VitroRequestPrep" %>
|
||||
<%@ page import="edu.cornell.mannlib.vitro.webapp.filters.VitroRequestPrep" %>
|
||||
<%@ page import="java.util.List" %>
|
||||
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
|
||||
<%@ page errorPage="/error.jsp"%>
|
||||
|
||||
<c:if test="${sessionScope.loginHandler != null &&
|
||||
sessionScope.loginHandler.loginStatus == 'authenticated' &&
|
||||
sessionScope.loginHandler.loginRole >= sessionScope.loginHandler.editor}">
|
||||
<c:set var="showCuratorEdits" value="true"/>
|
||||
</c:if>
|
||||
<c:set var='entity' value='${requestScope.entity}'/><%/* just moving this into page scope for easy use */ %>
|
||||
<c:set var='dashboardPropsListJsp' value='/dashboardPropList'/>
|
||||
<c:set var='portal' value='${currentPortalId}'/>
|
||||
<c:set var='portalBean' value='${currentPortal}'/>
|
||||
<c:set var='imageDir' value='images' />
|
||||
<div id="dashboard"<c:if test="${showCuratorEdits}"> class="loggedIn"</c:if>>
|
||||
<c:if test="${!empty entity.imageThumb}">
|
||||
<c:if test="${!empty entity.imageFile}">
|
||||
<c:url var="imageUrl" value="${imageDir}/${entity.imageFile}" />
|
||||
<a class="image" href="${imageUrl}">
|
||||
</c:if>
|
||||
<c:url var="imageSrc" value='${imageDir}/${entity.imageThumb}'/>
|
||||
<img class="headshot" src="<c:out value="${imageSrc}"/>" title="click to view larger image in new window" alt="" width="150"/>
|
||||
<c:if test="${!empty entity.imageFile}"></a></c:if>
|
||||
<c:if test="${!empty entity.citation}"><div class="citation">${entity.citation}</div></c:if>
|
||||
</c:if>
|
||||
|
||||
<ul class="profileLinks">
|
||||
<c:if test="${!empty entity.anchor}">
|
||||
<c:choose>
|
||||
<c:when test="${!empty entity.url}">
|
||||
<c:url var="entityUrl" value="${entity.url}" />
|
||||
<li><a class="externalLink" href="<c:out value="${entityUrl}"/>">${entity.anchor}</a></li>
|
||||
</c:when>
|
||||
<c:otherwise><li>${entity.anchor}</li></c:otherwise>
|
||||
</c:choose>
|
||||
</c:if>
|
||||
|
||||
<c:if test="${!empty entity.linksList }">
|
||||
<c:forEach items="${entity.linksList}" var='link'>
|
||||
<c:url var="linkUrl" value="${link.url}" />
|
||||
<li><a class="externalLink" href="<c:out value="${linkUrl}"/>">${link.anchor}</a></li>
|
||||
</c:forEach>
|
||||
</c:if>
|
||||
</ul>
|
||||
<c:if test="${showCuratorEdits}">
|
||||
<c:import url="${dashboardPropsListJsp}">
|
||||
<%-- unless a value is provided, properties not assigned to a group will not appear on the dashboard --%>
|
||||
<c:param name="unassignedPropsGroupName" value=""/>
|
||||
</c:import>
|
||||
</c:if>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue