ietf-tools / datatracker

The day-to-day front-end to the IETF database for people who work on IETF standards.
https://datatracker.ietf.org
BSD 3-Clause "New" or "Revised" License
611 stars 379 forks source link

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

Open rjsparks opened 5 months ago

rjsparks commented 5 months ago

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 commented 5 months ago

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