Skip to content

Commit adde72f

Browse files
committed
Added IPR/dependency links and edit/add buttons for RFCs, too; some template refactoring
- Legacy-Id: 1994
1 parent a7f181e commit adde72f

3 files changed

Lines changed: 31 additions & 22 deletions

File tree

ietf/templates/idrfc/doc_main.html

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,26 @@ <h1>{% block doc_h1 %}{% endblock %}</h1>
6969

7070
<div id="doc">
7171
<div id="metabox">
72-
{% block doc_meta %}{% endblock %}
72+
<table id="metatable">
73+
{% block doc_metatable %}{% endblock %}
74+
</table>
75+
76+
<div style="padding-top:6px;padding-bottom:6px;padding-left:2px;">
77+
{% block doc_metalinks %}{% endblock %}
78+
</div>
79+
80+
{% block doc_metabuttons %}
81+
{% if user|in_group:"Area_Director,Secretariat" %}
82+
<div style="padding-bottom:2px;">
83+
<span id="doc_edit_button" class="yui-button yui-link-button" style="margin-left:2px;"><span class="first-child">{% if doc.in_ietf_process %}
84+
<a href="https://datatracker.ietf.org/cgi-bin/idtracker.cgi?command=view_id&amp;{% if info.is_rfc %}dTag={{doc.rfc_number}}&amp;rfc_flag=1{% else %}dTag={{doc.tracker_id}}{% endif %}" rel="nofollow" target="_blank">Edit state (IESG Tracker)</a>
85+
{% else %}
86+
<a href="https://datatracker.ietf.org/cgi-bin/idtracker.cgi?command=add_id_confirm&amp;{% if info.is_rfc %}dTag={{doc.rfc_number}}&amp;rfc_flag=1{% else %}dTag={{doc.tracker_id}}&amp;rfc_flag=0{% endif %}&amp;ballot_id=0" rel="nofollow" target="_blank">Add to IESG Tracker</a>
87+
{% endif %}
88+
</span></span>
89+
</div>
90+
{% endif %}{# if user in group #}
91+
{% endblock doc_metabuttons%}
7392
</div> <!-- metabox -->
7493
</div> <!-- doc -->
7594

ietf/templates/idrfc/doc_main_id.html

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@
3737
{% block title %}{{ doc.draft_name_and_revision }}{% endblock %}
3838
{% block doc_h1 %}{{ doc.title|escape }}<br/>{{ doc.draft_name_and_revision }}{% endblock %}
3939

40-
{% block doc_meta %}
41-
<table id="metatable">
40+
{% block doc_metatable %}
4241
<tr><td style="width:18ex;">Document type:</td><td>{{ info.type|escape }}
4342
{% with doc.replaces as r %}{% if r %}<br />Replaces {% for rep in r %}<a href="/doc/{{rep}}/">{{rep}}</a> {% endfor %}{% endif %}{% endwith %}
4443
</td></tr>
@@ -67,25 +66,13 @@
6766
<a href="http://tools.ietf.org/html/{{doc.draft_name_and_revision}}">html</a>
6867
</td></tr>
6968
{% endifequal %}
69+
{% endblock doc_metatable %}
7070

71-
</table><!-- metatable -->
72-
73-
<div style="padding-top:6px;padding-bottom:6px;padding-left:2px;">
71+
{% block doc_metalinks %}
7472
<a href="http://datatracker.ietf.org/ipr/search/?option=document_search&amp;id_document_tag={{doc.tracker_id}}" rel="nofollow">IPR Disclosures</a>
7573
| <a href="http://www.fenron.net/~fenner/ietf/deps/index.cgi?dep={{doc.draft_name}}" rel="nofollow">Dependencies to this draft</a>
7674
| <a href="http://tools.ietf.org/idnits?url=http://tools.ietf.org/id/{{doc.draft_name_and_revision}}.txt" rel="nofollow" target="_blank">Check nits</a>
77-
</div>
78-
{% if user|in_group:"Area_Director,Secretariat" %}
79-
<div style="padding-bottom:2px;">
80-
<span id="doc_edit_button" class="yui-button yui-link-button" style="margin-left:2px;"><span class="first-child">{% if doc.in_ietf_process %}
81-
<a href="https://datatracker.ietf.org/cgi-bin/idtracker.cgi?command=view_id&amp;dTag={{doc.tracker_id}}" rel="nofollow" target="_blank">Edit state (IESG Tracker)</a>
82-
{% else %}
83-
<a href="https://datatracker.ietf.org/cgi-bin/idtracker.cgi?command=add_id_confirm&amp;dTag={{doc.tracker_id}}&amp;rfc_flag=0&amp;ballot_id=0" rel="nofollow" target="_blank">Add to IESG Tracker</a>
84-
{% endif %}
85-
</span></span>
86-
</div> <!-- tools div -->
87-
{% endif %}{# if user in group #}
88-
{% endblock doc_meta %}
75+
{% endblock %}
8976

9077
{% block doc_text1 %}
9178
{% ifequal doc.draft_status "Active" %}

ietf/templates/idrfc/doc_main_rfc.html

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@
3737
{% block title %}RFC {{ doc.rfc_number }}{% endblock %}
3838
{% block doc_h1 %}{{ doc.title|escape }}<br/>RFC {{ doc.rfc_number }}{% endblock %}
3939

40-
{% block doc_meta %}
41-
<table id="metatable">
40+
{% block doc_metatable %}
4241
<tr><td style="width:18ex;">Document type:</td><td>RFC - {{ doc.maturity_level }}
4342
{% if doc.obsoleted_by %}<br />Obsoleted by {{ doc.obsoleted_by }}{%endif %}
4443
{% if doc.updated_by %}<br />Updated by {{ doc.updated_by }}{%endif %}
@@ -56,8 +55,12 @@
5655
<a href="http://www.rfc-editor.org/rfc/pdfrfc/rfc{{doc.rfc_number}}.txt.pdf">pdf</a>,
5756
<a href="http://tools.ietf.org/html/rfc{{doc.rfc_number}}">html</a>
5857
</td></tr>
59-
</table><!-- metatable -->
60-
{% endblock %}{# doc_meta #}
58+
{% endblock doc_metatable %}
59+
60+
{% block doc_metalinks %}
61+
<a href="http://datatracker.ietf.org/ipr/search/?option=rfc_search&amp;rfc_search={{doc.rfc_number}}" rel="nofollow">IPR Disclosures</a>
62+
| <a href="http://www.fenron.net/~fenner/ietf/deps/index.cgi?dep=rfc{{doc.rfc_number}}" rel="nofollow">Dependencies to this RFC</a>
63+
{% endblock %}
6164

6265
{% block doc_text1 %}
6366
<div class="markup_draft">

0 commit comments

Comments
 (0)