Mercurial > hg > LGServices
diff src/main/webapp/pages/search.jsp @ 37:ed215307f426
new: show all existing branches in the searching result page of search for sections
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Fri, 20 Nov 2015 15:18:28 +0100 |
parents | eab47936591a |
children | 37840afb7b80 |
line wrap: on
line diff
--- a/src/main/webapp/pages/search.jsp Fri Nov 20 11:53:29 2015 +0100 +++ b/src/main/webapp/pages/search.jsp Fri Nov 20 15:18:28 2015 +0100 @@ -473,21 +473,25 @@ <img alt="Show Section in Extraction Interface" src="<%=sessionBean.getApplicationBean().getShowImage()%>"> </a> </td> - <td> + <td style="max-width:300px;"> <% if(section.getBranches() != null && !section.getBranches().isEmpty()) { %> - <table> + <table style="width:100%"> <% for(LGBranch branch : section.getBranches()) { %> <tr> <td> - <table> + <table style="width:100%"> <tr><td><%=branch.getFomattedLastChange() %></td></tr> <tr><td><%=branch.getLabel() %></td></tr> </table> </td> - <td> + <td style="max-width:150px"> + <% if (branch.hasContributor(sessionBean.getUser().getId())) { %> <a href="<%=sessionBean.getApplicationBean().getRootServer() %>/pages/branchPage.jsp?branchId=<%=branch.getId() %>" > <img alt="Manage Branch" src="<%=sessionBean.getApplicationBean().getEditBranchImage()%>"/> </a> + <% } else { %> + <label>Contributors: <%=branch.getContributorsNameList() %></label> + <% } %> </td> </tr> <% } %>