Skip to content

Commit 6f24561

Browse files
committed
Add submission field on drafts
- Legacy-Id: 2278
1 parent 295a8e4 commit 6f24561

2 files changed

Lines changed: 15 additions & 1 deletion

File tree

branch/iesg-tracker/ietf/idrfc/idrfc_wrapper.py

Lines changed: 14 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
33+
from ietf.idtracker.models import InternetDraft, IDInternal, BallotInfo, IESGDiscuss, IESGLogin, DocumentComment, Acronym
3434
from ietf.idrfc.models import RfcEditorQueue
3535
import re
3636
from datetime import date
@@ -138,6 +138,19 @@ def replaces(self):
138138
def in_ietf_process(self):
139139
return self.ietf_process != None
140140

141+
def submission(self):
142+
if self._idinternal and self._idinternal.via_rfc_editor:
143+
return "Via IRTF or RFC Editor"
144+
145+
if self._draft.group_id == Acronym.INDIVIDUAL_SUBMITTER:
146+
return "Individual"
147+
148+
a = self.group_acronym()
149+
if a:
150+
return "WG <%s>" % a
151+
152+
return ""
153+
141154
def file_types(self):
142155
return self._draft.file_type.split(",")
143156

branch/iesg-tracker/ietf/templates/idrfc/doc_main_id.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
{% if doc.in_ietf_process %}{% if doc.ietf_process.telechat_date %}<br/>On agenda of {{ doc.ietf_process.telechat_date }} IESG telechat {% if doc.ietf_process.telechat_returning_item %} (returning item){%endif%}{%endif%}{% if doc.ietf_process.has_active_iesg_ballot %}<br/><i>({{ doc.ietf_process.iesg_ballot_needed }})</i>{%endif%}{%endif%}
5353
</td></tr>
5454
<tr><td>Intended status:</td><td>{% if doc.in_ietf_process %}{{ doc.ietf_process.intended_maturity_level|default:"-" }}{% else %}-{%endif%}</td></tr>
55+
<tr><td>Submission:</td><td>{{ doc.submission }}</td></tr>
5556
<tr><td>Responsible AD:</td><td>{% if doc.in_ietf_process %}{{ doc.ietf_process.ad_name|default:"-"|escape }}{%else%}-{%endif%}</td></tr>
5657
{% if doc.in_ietf_process and doc.ietf_process.iesg_note %}<tr><td>IESG Note:</td><td>{{ doc.ietf_process.iesg_note|format_textarea|safe }}</td></tr>{% endif %}
5758
{% if user|in_group:"Area_Director,Secretariat" %}

0 commit comments

Comments
 (0)