Make it easier to see what reviews need to be closed as "No Response". Fixes #2128. Commit ready for merge.

- Legacy-Id: 12664
This commit is contained in:
Robert Sparks 2017-01-17 21:04:42 +00:00
parent 41d3bb61b4
commit 0dd2e460f3
2 changed files with 5 additions and 0 deletions

View file

@ -509,6 +509,10 @@ class Document(DocumentInfo):
e = self.latest_event(TelechatDocEvent, type="scheduled_for_telechat")
return e.telechat_date if e and e.telechat_date and e.telechat_date >= datetime.date.today() else None
def past_telechat_date(self):
e = self.latest_event(TelechatDocEvent, type="scheduled_for_telechat")
return e.telechat_date if e and e.telechat_date and e.telechat_date < datetime.date.today() else None
def area_acronym(self):
g = self.group
if g:

View file

@ -148,6 +148,7 @@
<span class="close-action">
<button type="button" class="btn btn-default btn-danger">Close...</button>
{% if r.doc.past_telechat_date %} (was on {{r.doc.past_telechat_date}} telechat) {% endif %}
</span>
<span class="close-controls form-inline">