| 52 | | <ul> |
| 53 | | <#if nonComments == true> |
| 54 | | <li><a href="${commentsURL}" title="View all Comments" class="discuss icon">View all Comments</a></li> |
| 55 | | <#else> |
| 56 | | <#if (numRetractions > 0)> |
| 57 | | <li><a href="${correctionsURL}" title="View Retraction" class="corrections icon">View Retraction</a></li> |
| | 49 | <#if ((numFormalCorrections + numMinorCorrections) > 0 && annotationSet != "corrections")> |
| | 50 | <li><a href="${correctionsURL}" title="View all corrections" class="corrections icon">View all corrections</a></li> |
| | 51 | </#if> |
| | 52 | </#if> |
| | 53 | <li><a href="${startDiscussionUrl}" title="Click to make a new comment on this article" class="discuss icon">Make a new comment on this article</a></li> |
| | 54 | </ul> |
| | 55 | <#if (commentary?size > 0)> |
| | 56 | <table class="directory" cellpadding="0" cellspacing="0"> |
| | 57 | <#list commentary as comment> |
| | 58 | <@s.url namespace="/annotation" includeParams="none" id="listThreadURL" action="listThread" root="${comment.annotation.id}" inReplyTo="${comment.annotation.id}"/> |
| | 59 | <@s.url namespace="/user" includeParams="none" id="showUserURL" action="showUser" userId="${comment.annotation.creator}"/> |
| | 60 | |
| | 61 | <#if ((comment.annotation.context)!"")?length == 0> |
| | 62 | <#assign class="discuss"/> |
| 63 | | </#if> |
| 64 | | <li><a href="${startDiscussionUrl}" title="Click to make a new comment on this article" class="discuss icon">Make a new comment on this article</a></li> |
| 65 | | </ul> |
| 66 | | <table class="directory" cellpadding="0" cellspacing="0"> |
| 67 | | <#list commentary as comment> |
| 68 | | <@s.url namespace="/annotation" includeParams="none" id="listThreadURL" action="listThread" root="${comment.annotation.id}" inReplyTo="${comment.annotation.id}"/> |
| 69 | | <@s.url namespace="/user" includeParams="none" id="showUserURL" action="showUser" userId="${comment.annotation.creator}"/> |
| | 66 | <#assign numReplies = comment.numReplies> |
| | 67 | <#if numReplies != 1> |
| | 68 | <#assign label = "responses"> |
| | 69 | <#else> |
| | 70 | <#assign label = "response"> |
| | 71 | </#if> |
| 71 | | <#if ((comment.annotation.context)!"")?length == 0> |
| 72 | | <#assign class="discuss"/> |
| 73 | | <#else> |
| 74 | | <#assign class="annotation"/> |
| 75 | | </#if> |
| 76 | | <#assign numReplies = comment.numReplies> |
| 77 | | <#if numReplies != 1> |
| 78 | | <#assign label = "responses"> |
| 79 | | <#else> |
| 80 | | <#assign label = "response"> |
| 81 | | </#if> |
| 82 | | |
| 83 | | <tr> |
| 84 | | <td class="replies">${comment.numReplies} ${label}<br /></td> |
| 85 | | <td class="title"><a href="${listThreadURL}" title="View Full Discussion Thread" class="${class} icon">${comment.annotation.commentTitle}</a></td> |
| 86 | | <td class="info">Posted by <a href="${showUserURL}" title="Discussion Author" class="user icon">${comment.annotation.creatorName}</a> on <strong>${comment.annotation.createdAsDate?string("dd MMM yyyy '</strong>at<strong>' HH:mm zzz")}</strong></td> |
| 87 | | </tr> |
| 88 | | <tr> |
| 89 | | <td colspan="3" class="last">Most recent response on <strong>${comment.lastModifiedAsDate?string("dd MMM yyyy '</strong>at<strong>' HH:mm zzz")}</strong></td> |
| 90 | | </tr> |
| 91 | | </#list> |
| 92 | | </table> |
| | 73 | <tr> |
| | 74 | <td class="replies">${comment.numReplies} ${label}<br /></td> |
| | 75 | <td class="title"><a href="${listThreadURL}" title="View Full Discussion Thread" class="${class} icon">${comment.annotation.commentTitle}</a></td> |
| | 76 | <td class="info">Posted by <a href="${showUserURL}" title="Discussion Author" class="user icon">${comment.annotation.creatorName}</a> on <strong>${comment.annotation.createdAsDate?string("dd MMM yyyy '</strong>at<strong>' HH:mm zzz")}</strong></td> |
| | 77 | </tr> |
| | 78 | <tr> |
| | 79 | <td colspan="3" class="last">Most recent response on <strong>${comment.lastModifiedAsDate?string("dd MMM yyyy '</strong>at<strong>' HH:mm zzz")}</strong></td> |
| | 80 | </tr> |
| | 81 | </#list> |
| | 82 | </table> |