5555{% if doc.in_ietf_process %}
5656< link rel ="alternate " type ="application/atom+xml " href ="/feed/comments/{% if info.is_rfc %}rfc{{doc.rfc_number}}{% else %}{{doc.draft_name}}{% endif %}/ " />
5757{% endif %}
58- < meta name ="description " content ="{% block doc_meta_description %}{% endblock %} " />
58+ < meta name ="description " content ="{% include "idrfc /doc_description.html" %}" />
59+ {% ifequal tab "document" %}
60+ {% if doc.in_ietf_process and doc.ietf_process.has_iesg_ballot %}
61+ < link rel ="prefetch " href ="ballot/ " />
62+ < link rel ="prefetch " href ="writeup/ " />
63+ {% endif %}
64+ < link rel ="prefetch " href ="history/ " />
65+ {% endifequal %}
5966{% endblock %}
6067
68+ {% block title %}{% include "idrfc/doc_title.html" %}{% endblock title %}
69+
6170{% block content %}
62- < h1 > {% block doc_h1 %} {% endblock %}</ h1 >
71+ < h1 > {{ doc.title }} < br /> {% include "idrfc/doc_title.html" %}</ h1 >
6372
6473< div id ="mytabs " class ="yui-navset ">
6574< ul class ="yui-nav ">
66- < li class ="selected "> < a href ="# doc "> < em > Document</ em > </ a > </ li >
67- < li {% if doc.in_ietf_process and doc.ietf_process.has_iesg_ballot %}{%else%} class ="disabled "{%endif%} > < a href ="# ballot "> < em > IESG Evaluation Record</ em > </ a > </ li >
68- < li {% if doc.in_ietf_process and doc.ietf_process.has_iesg_ballot %}{%else%}class ="disabled " {%endif%} > < a href ="# writeup "> < em > IESG Writeups</ em > </ a > </ li >
69- < li > < a href ="# history "> < em > History</ em > </ a > </ li >
75+ < li {% ifequal tab "document" %} class="selected "{% endifequal %} > < a href ="{{ doc.get_absolute_url }} "> < em > Document</ em > </ a > </ li >
76+ < li {% if doc.in_ietf_process and doc.ietf_process.has_iesg_ballot %}{% ifequal tab "ballot" %} class=" selected " {% endifequal %}{% else%} class ="disabled "{%endif%} > < a href ="{{ doc.get_absolute_url }} ballot/ "> < em > IESG Evaluation Record</ em > </ a > </ li >
77+ < li {% if doc.in_ietf_process and doc.ietf_process.has_iesg_ballot %}{% ifequal tab "writeup" %} class=" selected " {% endifequal %}{% else%} class ="disabled "{%endif%} > < a href ="{{ doc.get_absolute_url }} writeup/ "> < em > IESG Writeups</ em > </ a > </ li >
78+ < li {% ifequal tab "history" %} class=" selected " {% endifequal %} > < a href ="{{ doc.get_absolute_url }} history/ "> < em > History</ em > </ a > </ li >
7079</ ul >
7180< div class ="yui-content ">
7281
73- < div id ="doc ">
74- < div class ="ietf-box metabox ">
75- < table id ="metatable ">
76- {% block doc_metatable %}{% endblock %}
77- </ table >
78-
79- < div style ="padding-top:6px;padding-bottom:6px;padding-left:2px; ">
80- {% block doc_metalinks %}{% endblock %}
81- </ div >
82-
83- {% block doc_metabuttons %}
84- {% if user|in_group:"Area_Director,Secretariat" %}
85- < div style ="padding-bottom:2px; ">
86- {% ifequal doc.draft_status "Expired" %}
87- {% if not doc.resurrect_requested_by %}
88- < span id ="doc_request_resurrect_button " class ="yui-button yui-link-button " style ="margin-left:2px; "> < span class ="first-child "> < a href ="{% url doc_request_resurrect name=doc.draft_name %} "> Request resurrect</ a > </ span > </ span >
89- {% endif %}
90- {% if user|in_group:"Secretariat" %}
91- < span id ="doc_resurrect_button " class ="yui-button yui-link-button " style ="margin-left:2px; "> < span class ="first-child "> < a href ="{% url doc_resurrect name=doc.draft_name %} "> Resurrect</ a > </ span > </ span >
92- {% endif %}
93- {% else %}
94- {% if doc.in_ietf_process %}
95- < span id ="doc_edit_state_button " class ="yui-button yui-link-button " style ="margin-left:2px; "> < span class ="first-child "> < a href ="{% url doc_change_state name=doc.draft_name %} "> Change state</ a > </ span > </ span >
96-
97- < span id ="doc_edit_info_button " class ="yui-button yui-link-button " style ="margin-left:2px; "> < span class ="first-child "> < a href ="{% url doc_edit_info name=doc.draft_name %} "> Edit</ a > </ span > </ span >
98- {% else %}
99- < span id ="doc_add_button " class ="yui-button yui-link-button " style ="margin-left:2px; "> < span class ="first-child "> < a href ="{% url doc_edit_info name=doc.draft_name %} "> Add</ a > </ span > </ span >
100- {% endif %}
101- {% endifequal %}
102-
103- {# links to old system #}
104- < span id ="doc_edit_button " class ="yui-button yui-link-button " style ="margin-left:2px; "> < span class ="first-child ">
105- {% if doc.in_ietf_process %}
106- < a href ="https://datatracker.ietf.org/cgi-bin/idtracker.cgi?command=view_id&{% if info.is_rfc %}dTag={{doc.rfc_number}}&rfc_flag=1{% else %}dTag={{doc.tracker_id}}{% endif %} " rel ="nofollow " target ="_blank "> Edit (old IESG Tracker)</ a >
107- {% else %}
108- < a href ="https://datatracker.ietf.org/cgi-bin/idtracker.cgi?command=add_id_confirm&{% if info.is_rfc %}dTag={{doc.rfc_number}}&rfc_flag=1{% else %}dTag={{doc.tracker_id}}&rfc_flag=0{% endif %}&ballot_id=0 " rel ="nofollow " target ="_blank "> Add (old IESG Tracker)</ a >
109- {% endif %}
110- </ span > </ span >
111- {# end links to old #}
112-
113- </ div >
114- {% endif %}{# if user in group #}
115- {% endblock doc_metabuttons%}
116- </ div > <!-- metabox -->
117- </ div > <!-- doc -->
118-
119- < div id ="ballot ">
120- < div id ="ballot_content ">
121- {% if doc.in_ietf_process and doc.ietf_process.has_iesg_ballot %}
122- {% with 1 as doc_ballot_edit_button %}
123- {% with doc.ietf_process.iesg_ballot as ballot %}
124- {% include "idrfc/doc_ballot.html" %}
125- {% endwith %}
126- {% endwith %}
127- {% endif %}
128- </ div >
129- </ div >
130-
131- < div id ="writeup ">
132- < div id ="writeup_content ">
133- ---- following is a DRAFT of message to be sent AFTER approval ---
134- {% if doc.in_ietf_process and doc.ietf_process.has_iesg_ballot %}
135- {% if user|in_group:"Area_Director,Secretariat" %}
136- < div style ="background:#E0E0FF ">
137- < p align =right >
138- < span id ="doc_edit_announce_button " class ="yui-button yui-link-button "> < span class ="first-child ">
139- < a href ="{% url doc_ballot_approvaltext name=doc.draft_name %} "> Edit Announcement Text</ a >
140- </ span > </ span >
141- </ p >
142- {% endif %}
143- {% endif %}
144- < pre >
145- {{ doc.ietf_process.iesg_ballot.approval_text|escape|urlize }}
146- </ pre >
147- {% if doc.in_ietf_process and doc.ietf_process.has_iesg_ballot %}
148- {% if user|in_group:"Area_Director,Secretariat" %}
149- </ div >
150-
151- < div style ="background:#E0E0FF ">
152- < p align =right >
153- < span id ="doc_ballot_edit_button " class ="yui-button yui-link-button "> < span class ="first-child ">
154- < a href ="{% url doc_ballot_writeupnotes name=doc.draft_name %} "> Edit Ballot Text</ a >
155- </ span > </ span >
156- </ p >
157- {% endif %}
158- {% endif %}
159- < pre >
160- {{ doc.ietf_process.iesg_ballot.ballot_writeup|escape|urlize }}
161- </ pre >
162- {% if doc.in_ietf_process and doc.ietf_process.has_iesg_ballot %}
163- {% if user|in_group:"Area_Director,Secretariat" %}
164- </ div >
165- {% endif %}
166- {% endif %}
167- </ div >
168- </ div >
169-
170- < div id ="history ">
171- < div id ="history_content ">
172- {% if not info.is_rfc %}
173- {% include "idrfc/doc_diffs.html" %}
174- {% endif %}
175- < h2 style ="margin-top:1em; "> Document history</ h2 >
176- {% if user|in_group:"Area_Director,Secretariat" and doc.in_ietf_process %}
177- < div style ="margin-bottom:8px " id ="history_actions ">
178- < span id ="doc_add_comment_button " class ="yui-button yui-link-button " style ="margin-left:2px; "> < span class ="first-child "> < a href ="{% url doc_add_comment name=doc.draft_name %} "> Add comment</ a > </ span > </ span >
179- </ div >
180- {% endif %}
181-
182- {% include "idrfc/doc_history.html" %}
183- </ div >
184- </ div >
82+ {% block tab_content %}{% endblock %}
18583
18684</ div > <!-- yui-content -->
18785</ div > <!-- mytabs -->
18886
189- < script type ="text/javascript ">
190- //<![CDATA[
191- document . getElementById ( 'ballot_content' ) . style . display = 'none' ;
192- document . getElementById ( 'writeup_content' ) . style . display = 'none' ;
193- document . getElementById ( 'history_content' ) . style . display = 'none' ;
194- //]]>
195- </ script >
196-
197- < div id ="rfcText1 ">
198- {% block doc_text1 %}{% endblock %}
199- </ div > <!-- rfcText1 -->
200- {% endblock %}{# content #}
87+ {% endblock content %}
20188
20289{% block scripts %}
203- var tabView = new YAHOO.widget.TabView('mytabs');
204- tabView.subscribe('activeIndexChange', function(e) {
205- if (e.newValue == 0) {
206- document.getElementById('rfcText1').style.display = 'block';
207- document.getElementById('rfcText2').style.display = 'block';
208- } else {
209- document.getElementById('rfcText1').style.display = 'none';
210- document.getElementById('rfcText2').style.display = 'none';
211- } });
212- document.getElementById('writeup_content').style.display = 'block';
213- document.getElementById('ballot_content').style.display = 'block';
214- document.getElementById('history_content').style.display = 'block';
215-
21690function toggleComment(n) {
21791 var el = document.getElementById("commentF"+n);
21892 var el2 = document.getElementById("commentS"+n);
@@ -228,27 +102,3 @@ <h2 style="margin-top:1em;">Document history</h2>
228102 }
229103}
230104{% endblock scripts %}
231-
232- {% block content_end %}
233- < div id ="rfcText2 ">
234- {% block doc_text2 %}{% endblock %}
235- </ div >
236-
237- < script type ="text/javascript ">
238- //<![CDATA[
239- // based on http://blog.davglass.com/files/yui/tab7/
240- var url = location . href . split ( '#' ) ;
241- if ( url [ 1 ] ) {
242- url [ 1 ] = "#" + url [ 1 ] ;
243- var tabs = tabView . get ( 'tabs' ) ;
244- for ( var i = 0 ; i < tabs . length ; i ++ ) {
245- if ( url [ 1 ] . indexOf ( tabs [ i ] . get ( 'href' ) ) == 0 ) {
246- tabView . set ( 'activeIndex' , i ) ;
247- break ;
248- }
249- }
250- }
251- //]]>
252- </ script >
253-
254- {% endblock content_end %}
0 commit comments