| 1 | <% import MaKaC.webinterface.urlHandlers as urlHandlers %> |
|---|
| 2 | <% from MaKaC.common.timezoneUtils import nowutc %> |
|---|
| 3 | <% from MaKaC.conference import ContribStatusNone %> |
|---|
| 4 | |
|---|
| 5 | <% dueDateFormat = "%a %d %b %Y" %> |
|---|
| 6 | |
|---|
| 7 | <% if ConfReview.getReviewedContributions(User): %> |
|---|
| 8 | |
|---|
| 9 | <table class="Revtab" width="90%%" cellspacing="0" align="center" border="0" style="padding-left:2px; padding-top: 10px"> |
|---|
| 10 | <tr> |
|---|
| 11 | <td nowrap class="groupTitle" colspan=4><%= _("Give advice on content of the contribution")%></td> |
|---|
| 12 | </tr> |
|---|
| 13 | <tr> |
|---|
| 14 | <td nowrap class="titleCellFormat" style="border-right:5px solid #FFFFFF;border-left:5px solid #FFFFFF;padding-top:10px; padding-bottom:10px;"><%= _("Id")%></td> |
|---|
| 15 | <td nowrap class="titleCellFormat" style="border-right:5px solid #FFFFFF;border-left:5px solid #FFFFFF;padding-top:10px; padding-bottom:10px;"><%= _("Title")%></td> |
|---|
| 16 | <td nowrap class="titleCellFormat" style="border-right:5px solid #FFFFFF;border-left:5px solid #FFFFFF;padding-top:10px; padding-bottom:10px;"><%= _("State")%></td> |
|---|
| 17 | <td nowrap class="titleCellFormat" style="border-right:5px solid #FFFFFF;border-left:5px solid #FFFFFF;padding-top:10px; padding-bottom:10px;"><%= _("Deadline")%></td> |
|---|
| 18 | </tr> |
|---|
| 19 | |
|---|
| 20 | <% for c in ConfReview.getReviewedContributions(User): %> |
|---|
| 21 | <% if not isinstance(c.getStatus(), ContribStatusNone): %> |
|---|
| 22 | <tr valign="top" onmouseover="this.style.backgroundColor='#ECECEC'" onmouseout="this.style.backgroundColor='transparent'"> |
|---|
| 23 | <td style="padding-right:5px;padding-left:5px;"><%= c.getId() %></td> |
|---|
| 24 | <td style="padding-right:5px;padding-left:5px;"><a href="<%= urlHandlers.UHContributionGiveAdvice.getURL(c) %>"><%= c.getTitle() %></a></td> |
|---|
| 25 | <td style="padding-right:5px;padding-left:5px;"> |
|---|
| 26 | <% if c.getReviewManager().getLastReview().hasGivenAdvice(User): %> |
|---|
| 27 | <span><%= _("Advice given")%></span> |
|---|
| 28 | <% end %> |
|---|
| 29 | <% else: %> |
|---|
| 30 | <span><%= _("Advice not given yet")%></span> |
|---|
| 31 | <% if c.getReviewManager().getLastReview().getRefereeJudgement().isSubmitted(): %> |
|---|
| 32 | <span><br><%= _("but Referee already judged contribution")%></span> |
|---|
| 33 | <% end %> |
|---|
| 34 | <% end %> |
|---|
| 35 | </td> |
|---|
| 36 | <td style="padding-right:5px;padding-left:5px;"> |
|---|
| 37 | <% date = c.getReviewManager().getLastReview().getAdjustedReviewerDueDate() %> |
|---|
| 38 | <% if date is None: %> |
|---|
| 39 | <%= _("Deadline not set.")%> |
|---|
| 40 | <% end %> |
|---|
| 41 | <% else: %> |
|---|
| 42 | <span><%= date.strftime(dueDateFormat) %></span> |
|---|
| 43 | <% end %> |
|---|
| 44 | </td> |
|---|
| 45 | </tr> |
|---|
| 46 | <% end %> |
|---|
| 47 | <% end %> |
|---|
| 48 | |
|---|
| 49 | </table> |
|---|
| 50 | <% end %> |
|---|
| 51 | <% if not ConfReview.getReviewedContributions(User):%> |
|---|
| 52 | <p style="padding-left: 25px;"><font color="gray"><%= _("There are no contributions assigned to you to judge yet.")%></font></p> |
|---|