Skip to content

Commit 6b6e51a

Browse files
committed
Changed the AD status page to group documents by current state.
Fixes bug 742 - Legacy-Id: 3599
1 parent 5e983e5 commit 6b6e51a

3 files changed

Lines changed: 18 additions & 2 deletions

File tree

ietf/idrfc/idrfc_wrapper.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
3131
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3232

33-
from ietf.idtracker.models import InternetDraft, IDInternal, BallotInfo, IESGDiscuss, IESGLogin, DocumentComment, Acronym
33+
from ietf.idtracker.models import InternetDraft, IDInternal, BallotInfo, IESGDiscuss, IESGLogin, DocumentComment, Acronym, IDState
3434
from ietf.idrfc.models import RfcEditorQueue
3535
from ietf.ipr.models import IprRfc, IprDraft, IprDetail
3636

@@ -578,6 +578,20 @@ def view_sort_group(self):
578578
else:
579579
return 'Old Internet-Draft'
580580

581+
def view_sort_group_byad(self):
582+
if self.rfc:
583+
return 'RFC'
584+
elif self.id.draft_status == "Active":
585+
if self.id.in_ietf_process():
586+
if self.id.ietf_process._idinternal.cur_state_id == IDState.DEAD:
587+
return 'IESG Dead Internet-Draft'
588+
else:
589+
return "%s Internet-Draft" % self.id.ietf_process._idinternal.cur_state
590+
else:
591+
return 'Active Internet-Draft'
592+
else:
593+
return 'Old Internet-Draft'
594+
581595
def view_sort_key(self, sort_by=None):
582596
if sort_by is None:
583597
if self.rfc:

ietf/templates/idrfc/by_ad.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
{% block content %}
3939
<h1>Internet-Drafts and RFCs for {{ ad_name }}</h1>
4040

41-
{% regroup docs by view_sort_group as grouped_docs %}
41+
{% regroup docs by view_sort_group_byad as grouped_docs %}
4242

4343
<table class="ietf-table ietf-doctable">
4444
<tr><th class="doc">Document</th><th class="title">Title</th><th class="date">Date</th><th class="status" colspan="2">Status</th><th class="ipr">ipr</th><th class="ad">Area Director</th></tr>

ietf/templates/submit/announce_to_lists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{% autoescape off %}
12
A New Internet-Draft is available from the on-line Internet-Drafts directories.{% if submission.group_acronym %} This draft is a work item of the {{ submission.group_acronym.group_acronym.name }} Working Group of the IETF.{% endif %}
23

34
Title : {{ submission.id_document_name }}
@@ -17,3 +18,4 @@ ftp://ftp.ietf.org/internet-drafts/
1718

1819
This Internet-Draft can be retrieved at:
1920
ftp://ftp.ietf.org/internet-drafts/{{ submission.filename }}-{{ submission.revision }}.txt
21+
{% endautoescape %}

0 commit comments

Comments
 (0)