Mercurial > hg > LGServices
diff src/main/webapp/pages/topicList.jsp @ 48:13555aff1f88
new: multiple full text searching. topics and tasks improvement.
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Thu, 21 Jan 2016 11:56:30 +0100 |
parents | ef113c53629b |
children | a00efd5d9e77 |
line wrap: on
line diff
--- a/src/main/webapp/pages/topicList.jsp Mon Dec 28 12:54:55 2015 +0100 +++ b/src/main/webapp/pages/topicList.jsp Thu Jan 21 11:56:30 2016 +0100 @@ -269,20 +269,25 @@ </table> </td> <td><%=topic.getFomattedLastChange() %></td> - - + <td> - <a href="<%=sessionBean.getApplicationBean().getRootServer() %>/pages/topicPage.jsp?topicId=<%=topic.getId() %>" > - <img alt="Manage Topic" src="<%=sessionBean.getApplicationBean().getEditBranchImage()%>"/> - </a> + <%if(topic.hasContributor(sessionBean.getUser().getId())){ %> + <a href="<%=sessionBean.getApplicationBean().getRootServer() %>/pages/topicPage.jsp?topicId=<%=topic.getId() %>" > + <img alt="Manage Topic" src="<%=sessionBean.getApplicationBean().getEditBranchImage()%>"/> + </a> + <% } %> + + <label>(<%=topic.getNumOfSections().toString()%>/2000)</label> </td> <td> - <input type="image" - onclick="<%=sessionBean.getApplicationBean().getJSConfirmationDelete() %> deleteTopic('deleteTopic', 'topicListForm', '<%=topic.getId() %>');" - src="<%=sessionBean.getApplicationBean().getDeleteImage()%>"/> + <%if(topic.hasContributor(sessionBean.getUser().getId())){ %> + <input type="image" + onclick="<%=sessionBean.getApplicationBean().getJSConfirmationDelete() %> deleteTopic('deleteTopic', 'topicListForm', '<%=topic.getId() %>');" + src="<%=sessionBean.getApplicationBean().getDeleteImage()%>"/> + <% } %> + </td> - </tr> <% } %>