/doc/: show telechat date in search results list

- Legacy-Id: 2174
This commit is contained in:
Pasi Eronen 2010-03-21 16:52:31 +00:00
parent 5d556822bc
commit 5a3bd287ec
3 changed files with 11 additions and 1 deletions

View file

@ -506,6 +506,14 @@ class IdRfcWrapper:
return self.rfc.publication_date
else:
return self.id.publication_date
def telechat_date(self):
if self.rfc and self.rfc.in_ietf_process():
return self.rfc.ietf_process.telechat_date()
elif self.id and self.id.in_ietf_process():
return self.id.ietf_process.telechat_date()
else:
return None
def view_sort_group(self):
if self.rfc:

View file

@ -242,7 +242,7 @@ def agenda_documents(request):
w = RfcWrapper(ri)
res[section_key].append(w)
telechats.append({'date':date, 'docs':res})
return direct_to_template(request, 'iesg/agenda_documents.html', {'telechats':telechats})
return direct_to_template(request, 'iesg/agenda_documents.html', {'telechats':telechats, 'hide_telechat_date':True})
def discusses(request):
positions = Position.objects.filter(discuss=1)

View file

@ -34,6 +34,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
{% load ietf_filters %}{% load ballot_icon %}
<td class="status">
{{ doc.friendly_state|safe }} {% if not doc.rfc %}{{ doc.id|state_age_colored|safe }}{% endif %}
{% if not hide_telechat_date %}{% if doc.telechat_date %}<br/>IESG Telechat: {{ doc.telechat_date }}{% endif %}{% endif %}
{% block extra_status %}{% endblock %}
{% if doc.rfc %}
{% if doc.rfc.obsoleted_by %}<br />Obsoleted by {{ doc.rfc.obsoleted_by|urlize_ietf_docs }}{%endif %}