1.1 --- a/src/main/webapp/WEB-INF/jsp/issues-feed.jsp Thu May 13 19:31:09 2021 +0200 1.2 +++ b/src/main/webapp/WEB-INF/jsp/issues-feed.jsp Sat May 15 16:19:29 2021 +0200 1.3 @@ -22,7 +22,7 @@ 1.4 ~ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 1.5 ~ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 1.6 --%> 1.7 -<%@page contentType="application/rss+xml;charset=UTF-8" pageEncoding="UTF-8" %> 1.8 +<%@page contentType="application/rss+xml;charset=UTF-8" pageEncoding="UTF-8" trimDirectiveWhitespaces="true" %> 1.9 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 1.10 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> 1.11 <jsp:useBean id="viewmodel" type="de.uapcore.lightpit.viewmodel.IssueFeed" scope="request"/> 1.12 @@ -31,11 +31,20 @@ 1.13 <description><fmt:message key="feed.issues.description"/></description> 1.14 <link>${baseHref}projects/${viewmodel.project.node}</link> 1.15 <language>${pageContext.response.locale.language}</language> 1.16 + <pubDate><fmt:formatDate value="${viewmodel.lastModified}" pattern="EEE, dd MMM yyyy HH:mm:ss zzz" /></pubDate> 1.17 + <lastBuildDate><fmt:formatDate value="${viewmodel.lastModified}" pattern="EEE, dd MMM yyyy HH:mm:ss zzz" /></lastBuildDate> 1.18 1.19 <c:forEach items="${viewmodel.issues}" var="issue"> 1.20 <item> 1.21 <title><c:if test="${not empty issue.component}"><c:out value="${issue.component.name}"/> - </c:if><c:out value="${issue.subject}"/></title> 1.22 - <description><c:out value="${issue.description}"/></description> 1.23 + <description><c:choose> 1.24 + <c:when test="${issue.created eq issue.updated}"> 1.25 + <fmt:message key="feed.issues.created"/> 1.26 + </c:when> 1.27 + <c:otherwise> 1.28 + <fmt:message key="feed.issues.updated"/> 1.29 + </c:otherwise> 1.30 + </c:choose></description> 1.31 <category><fmt:message key="issue.category.${issue.category}"/></category> 1.32 <link>${baseHref}projects/${issue.project.node}/issues/-/${empty issue.component ? '-' : issue.component.node}/${issue.id}</link> 1.33 <guid isPermaLink="true">${baseHref}projects/${issue.project.node}/issues/-/-/${issue.id}</guid>