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:
parent
41d3bb61b4
commit
0dd2e460f3
|
@ -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:
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in a new issue