ajout de DetailArticle

This commit is contained in:
Jialin Wang
2008-02-15 13:35:30 +00:00
parent afb3e98b9b
commit 9304de1a83
5 changed files with 85 additions and 4 deletions

View File

@@ -16,7 +16,7 @@
<c:forEach items="${articleList}" var="article" varStatus="i">
<tr>
<td><a href="<c:url value="detailArticle.htm"/>">${article.title}</a></td>
<td><a href="<c:url value='detailArticle.htm?id=${article.id}'/>">${article.title}</a></td>
<form:hidden path="preferences[${i.index}].article.id" />
<form:hidden path="preferences[${i.index}].pcMember.login" />
<td><fmt:message key="preference.like"/></td>

View File

@@ -0,0 +1,32 @@
<%@ include file="/WEB-INF/decorators/include.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title><fmt:message key="detail.title"/></title>
</head>
<body>
<div class="article cb">
<h2>${article.title}</h2>
<p class="author">Author: <b>${article.mainAuthor.firstName} ${article.mainAuthor.lastName}</b></p>
<c:if test="${article.secondaryAuthors!=null}">
<p class="secondaryAuthors">
Secondary Authors:
<ul>
<c:forEach items="${article.secondaryAuthors}" var="sAuthor">
<li>${sAuthor}</li>
</c:forEach>
</ul>
</c:if>
<p class="topic">Topic: <b>${article.topic}</b></p>
<p class="topic">State of article: <b>${article.state}</b></p>
<p class="article_url"><a href="
<c:url value="/download.htm">
<c:param name="articleId" value="${article.id}"/>
</c:url>">Download the article</a>
</p>
</div>
</body>
</html>