datatracker icon indicating copy to clipboard operation
datatracker copied to clipboard

htmlized document type badge is wrong for current revision of Internet-Drafts

Open rjsparks opened this issue 1 year ago • 1 comments

The code in the template at https://github.com/ietf-tools/datatracker/blob/79f858b7d753dff438375376de7148c426147419/ietf/templates/doc/document_html.html#L184-L190 is not doing the right thing for the current revision of Internet-Drafts.

L186 only makes sense for documents of type RFC.

This likely came in with feat/rfc.

The block should be checking for type draft vs type rfc. For type draft, it should be looking at intended status and the output should be clear about the status being Intended - follow similar logic to what the document's main page uses.

rjsparks avatar May 28 '24 14:05 rjsparks

Note also that intended_status might be None and the output should be "Internet-Draft"

rjsparks avatar May 28 '24 14:05 rjsparks