Sat, 31 Oct 2020 10:54:20 +0100
fixes #33 - display time tooltip for created/update dates
1.1 --- a/src/main/webapp/WEB-INF/jsp/issue-form.jsp Sat Oct 31 09:56:00 2020 +0100 1.2 +++ b/src/main/webapp/WEB-INF/jsp/issue-form.jsp Sat Oct 31 10:54:20 2020 +0100 1.3 @@ -67,11 +67,17 @@ 1.4 </tr> 1.5 <tr> 1.6 <th><fmt:message key="issue.created"/></th> 1.7 - <td><fmt:formatDate value="${issue.created}" /></td> 1.8 + <td> 1.9 + <c:set var="dateValue" value="${issue.created}"/> 1.10 + <%@include file="../jspf/date-with-tooltip.jspf"%> 1.11 + </td> 1.12 </tr> 1.13 <tr> 1.14 <th><fmt:message key="issue.updated"/></th> 1.15 - <td><fmt:formatDate value="${issue.updated}" /></td> 1.16 + <td> 1.17 + <c:set var="dateValue" value="${issue.updated}"/> 1.18 + <%@include file="../jspf/date-with-tooltip.jspf"%> 1.19 + </td> 1.20 </tr> 1.21 <tr> 1.22 <th><fmt:message key="issue.component"/></th>
2.1 --- a/src/main/webapp/WEB-INF/jsp/issue-view.jsp Sat Oct 31 09:56:00 2020 +0100 2.2 +++ b/src/main/webapp/WEB-INF/jsp/issue-view.jsp Sat Oct 31 10:54:20 2020 +0100 2.3 @@ -51,11 +51,17 @@ 2.4 </tr> 2.5 <tr> 2.6 <th><fmt:message key="issue.created"/></th> 2.7 - <td><fmt:formatDate value="${issue.created}" /></td> 2.8 + <td> 2.9 + <c:set var="dateValue" value="${issue.created}"/> 2.10 + <%@include file="../jspf/date-with-tooltip.jspf"%> 2.11 + </td> 2.12 </tr> 2.13 <tr> 2.14 <th><fmt:message key="issue.updated"/></th> 2.15 - <td><fmt:formatDate value="${issue.updated}" /></td> 2.16 + <td> 2.17 + <c:set var="dateValue" value="${issue.updated}"/> 2.18 + <%@include file="../jspf/date-with-tooltip.jspf"%> 2.19 + </td> 2.20 </tr> 2.21 <tr> 2.22 <th><fmt:message key="issue.component"/></th>
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/src/main/webapp/WEB-INF/jspf/date-with-tooltip.jspf Sat Oct 31 10:54:20 2020 +0100 3.3 @@ -0,0 +1,33 @@ 3.4 +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> 3.5 +<%-- 3.6 + ~ Copyright 2020 Mike Becker. All rights reserved. 3.7 + ~ 3.8 + ~ Redistribution and use in source and binary forms, with or without 3.9 + ~ modification, are permitted provided that the following conditions are met: 3.10 + ~ 3.11 + ~ 1. Redistributions of source code must retain the above copyright 3.12 + ~ notice, this list of conditions and the following disclaimer. 3.13 + ~ 3.14 + ~ 2. Redistributions in binary form must reproduce the above copyright 3.15 + ~ notice, this list of conditions and the following disclaimer in the 3.16 + ~ documentation and/or other materials provided with the distribution. 3.17 + ~ 3.18 + ~ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 3.19 + ~ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 3.20 + ~ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 3.21 + ~ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 3.22 + ~ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 3.23 + ~ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 3.24 + ~ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 3.25 + ~ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 3.26 + ~ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 3.27 + ~ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 3.28 + --%> 3.29 + 3.30 +<%-- 3.31 +dateValue: DateTime 3.32 +--%> 3.33 + 3.34 +<span title="<fmt:formatDate value="${dateValue}" type="time"/>"> 3.35 + <fmt:formatDate value="${dateValue}" type="date"/> 3.36 +</span>