Mercurial > hg > LGServices
comparison 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 |
comparison
equal
deleted
inserted
replaced
36:eab47936591a | 37:ed215307f426 |
---|---|
471 title="Show Section in Extraction Interface" | 471 title="Show Section in Extraction Interface" |
472 onclick="sectionInExtractionInterface('<%=section.getId() %>', '<%=section.getName() %>', '<%=section.getBook().getId() %>', '<%=section.getBook().getName() %>', '<%=sessionBean.getUser().getId() %>', '<%=sessionBean.getApplicationBean().getExtractionInterfaceUrl()%>');"> | 472 onclick="sectionInExtractionInterface('<%=section.getId() %>', '<%=section.getName() %>', '<%=section.getBook().getId() %>', '<%=section.getBook().getName() %>', '<%=sessionBean.getUser().getId() %>', '<%=sessionBean.getApplicationBean().getExtractionInterfaceUrl()%>');"> |
473 <img alt="Show Section in Extraction Interface" src="<%=sessionBean.getApplicationBean().getShowImage()%>"> | 473 <img alt="Show Section in Extraction Interface" src="<%=sessionBean.getApplicationBean().getShowImage()%>"> |
474 </a> | 474 </a> |
475 </td> | 475 </td> |
476 <td> | 476 <td style="max-width:300px;"> |
477 <% if(section.getBranches() != null && !section.getBranches().isEmpty()) { %> | 477 <% if(section.getBranches() != null && !section.getBranches().isEmpty()) { %> |
478 <table> | 478 <table style="width:100%"> |
479 <% for(LGBranch branch : section.getBranches()) { %> | 479 <% for(LGBranch branch : section.getBranches()) { %> |
480 <tr> | 480 <tr> |
481 <td> | 481 <td> |
482 <table> | 482 <table style="width:100%"> |
483 <tr><td><%=branch.getFomattedLastChange() %></td></tr> | 483 <tr><td><%=branch.getFomattedLastChange() %></td></tr> |
484 <tr><td><%=branch.getLabel() %></td></tr> | 484 <tr><td><%=branch.getLabel() %></td></tr> |
485 </table> | 485 </table> |
486 </td> | 486 </td> |
487 <td> | 487 <td style="max-width:150px"> |
488 <% if (branch.hasContributor(sessionBean.getUser().getId())) { %> | |
488 <a href="<%=sessionBean.getApplicationBean().getRootServer() %>/pages/branchPage.jsp?branchId=<%=branch.getId() %>" > | 489 <a href="<%=sessionBean.getApplicationBean().getRootServer() %>/pages/branchPage.jsp?branchId=<%=branch.getId() %>" > |
489 <img alt="Manage Branch" src="<%=sessionBean.getApplicationBean().getEditBranchImage()%>"/> | 490 <img alt="Manage Branch" src="<%=sessionBean.getApplicationBean().getEditBranchImage()%>"/> |
490 </a> | 491 </a> |
492 <% } else { %> | |
493 <label>Contributors: <%=branch.getContributorsNameList() %></label> | |
494 <% } %> | |
491 </td> | 495 </td> |
492 </tr> | 496 </tr> |
493 <% } %> | 497 <% } %> |
494 </table> | 498 </table> |
495 <% } %> | 499 <% } %> |