From 33f58d7001394d9dc71f75005f7e3e33d5167908 Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Mon, 11 May 2015 19:53:15 +0000 Subject: [PATCH] Fixed a wrong row count for stream meta-info when displaying RFCs. Also fixed a 'missing columns' html warning. Fixes issue #1697. - Legacy-Id: 9613 --- ietf/doc/views_doc.py | 4 ++-- ietf/templates/doc/document_draft.html | 27 +++++--------------------- 2 files changed, 7 insertions(+), 24 deletions(-) diff --git a/ietf/doc/views_doc.py b/ietf/doc/views_doc.py index 06d6e4188..9312c540e 100644 --- a/ietf/doc/views_doc.py +++ b/ietf/doc/views_doc.py @@ -352,10 +352,10 @@ def document_main(request, name, rev=None): # group label. This would be easy if all browsers supported the rowspan="0" (zero) # semantics of the html standard, but only Firefox and Opera do, so we have to count # how many entries there will be in each section here, instead. Bah! - table_rows = dict(doc=5, stream=3, iesg=5, iana=3, rfced=2) + table_rows = dict(doc=4, stream=2, iesg=4, iana=2, rfced=1) table_rows['doc'] += 1 if replaces or can_edit_stream_info else 0 table_rows['doc'] += 1 if replaced_by else 0 - table_rows['doc'] += 1 if doc.get_state_slug != "rfc" else 0 + table_rows['doc'] += 1 if doc.get_state_slug() != "rfc" else 0 table_rows['doc'] += 1 if conflict_reviews else 0 table_rows['stream'] += 1 if consensus else 0 diff --git a/ietf/templates/doc/document_draft.html b/ietf/templates/doc/document_draft.html index fa17e5c8a..ba2c9170c 100644 --- a/ietf/templates/doc/document_draft.html +++ b/ietf/templates/doc/document_draft.html @@ -36,10 +36,7 @@ - Document - - - + Document Type @@ -150,12 +147,8 @@ - - - Stream - - + Stream {% if doc.stream %} {% if doc.stream.slug != "legacy" %} @@ -247,12 +240,8 @@ - - - IESG - - + IESG IESG state {% if iesg_state and can_edit %} @@ -334,10 +323,7 @@ {% if iana_review_state %} - IANA - - - + IANA IANA review state {% if can_edit_iana_state %} @@ -367,10 +353,7 @@ {% if rfc_editor_state %} - RFC Editor - - - + RFC Editor RFC Editor state {{ rfc_editor_state }}