Show various edit buttons only to ADs/secretariat
- Legacy-Id: 1921
This commit is contained in:
parent
1242b3717e
commit
81f7330ef1
|
@ -45,6 +45,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||
{% block pagehead %}{% endblock %}
|
||||
<script type="text/javascript">
|
||||
IETF = {};
|
||||
IETF.user_groups = { {% for group in user.groups.all %}"{{group}}":true{% if not forloop.last %}, {%endif%}{%endfor%} };
|
||||
</script>
|
||||
</head>
|
||||
<body class="yui-skin-sam" {% block bodyAttrs %}{%endblock%}>
|
||||
|
|
|
@ -103,11 +103,12 @@ function toggleComment(n) {
|
|||
<div id="ballot">
|
||||
<div id="ballot_content">
|
||||
{% if ballot %}
|
||||
{% if user|in_group:"Area_Director,Secretariat" %}
|
||||
<div style="position:absolute;right:0px;">
|
||||
<span id="doc_ballot_button" class="yui-button yui-link-button"><span class="first-child">
|
||||
<a href="https://datatracker.ietf.org/cgi-bin/idtracker.cgi?command=open_ballot&id_document_tag={% if info.is_rfc %}{{doc.rfc_number}}{% else %}{{doc.tracker_id}}{% endif %}">Edit position</a>
|
||||
</span></span>
|
||||
</div>
|
||||
</span></span></div>
|
||||
{% endif %}{# user in_group #}
|
||||
{% include "idrfc/doc_ballot.html" %}
|
||||
{% endif %}
|
||||
</div>
|
||||
|
@ -116,10 +117,12 @@ function toggleComment(n) {
|
|||
<div id="writeup">
|
||||
<div id="writeup_content">
|
||||
{% if doc.in_ietf_process and doc.ietf_process.has_iesg_ballot %}
|
||||
{% if user|in_group:"Area_Director,Secretariat" %}
|
||||
<div style="position:absolute;right:0px;">
|
||||
<span id="doc_writeup_edit_button" class="yui-button yui-link-button"><span class="first-child">
|
||||
<a href="https://datatracker.ietf.org/cgi-bin/idtracker.cgi?command=ballot_writeup&ballot_id={{doc.ietf_process.iesg_ballot.ballot_id}}">Edit writeups</a>
|
||||
</span></span></div>
|
||||
{% endif %}{# user in_group #}
|
||||
---- following is a DRAFT of message to be sent AFTER approval ---
|
||||
<pre>
|
||||
{{ doc.ietf_process.iesg_ballot.approval_text|escape|urlize }}
|
||||
|
|
|
@ -72,11 +72,13 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||
<span class="mybutton"><a href="http://www.fenron.net/~fenner/ietf/deps/index.cgi?dep={{doc.draft_name}}" rel="nofollow" target="_blank">Dependencies to this draft</a></span>
|
||||
<span class="mybutton"><a href="https://datatracker.ietf.org/ipr/search/?option=document_search&id_document_tag={{doc.tracker_id}}" rel="nofollow" target="_blank">IPR Disclosures</a></span>
|
||||
<span class="mybutton"><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></span>
|
||||
{% if user|in_group:"Area_Director,Secretariat" %}
|
||||
{% if doc.in_ietf_process %}
|
||||
<span class="mybutton"><a href="https://datatracker.ietf.org/cgi-bin/idtracker.cgi?command=view_id&dTag={{doc.tracker_id}}" rel="nofollow" target="_blank">Edit state (IESG Tracker)</a></span>
|
||||
{% else %}
|
||||
<span class="mybutton"><a href="https://datatracker.ietf.org/cgi-bin/idtracker.cgi?command=add_id_confirm&dTag={{doc.tracker_id}}&rfc_flag=0&ballot_id=0" rel="nofollow" target="_blank">Add to IESG Tracker</a></span>
|
||||
{% endif %}
|
||||
{% endif %}{# if user in group #}
|
||||
</div> <!-- tools div -->
|
||||
{% endblock %}{# doc_meta #}
|
||||
|
||||
|
|
|
@ -48,7 +48,10 @@ function showBallot(draftName, trackerId) {
|
|||
document.getElementById("db-extras").appendChild(el);
|
||||
|
||||
var buttons = [{text:"Close", handler:handleClose, isDefault:true}];
|
||||
buttons.unshift({text:"Edit Position", handler:handleEditPosition});
|
||||
if (("Area_Director" in IETF.user_groups) ||
|
||||
("Secretariat" in IETF.user_groups)) {
|
||||
buttons.unshift({text:"Edit Position", handler:handleEditPosition});
|
||||
}
|
||||
var kl = [new YAHOO.util.KeyListener(document, {keys:27}, handleClose)]
|
||||
IETF.ballotDialog = new YAHOO.widget.Dialog("doc_ballot_dialog", {
|
||||
visible:false, draggable:false, close:true, modal:true,
|
||||
|
|
Loading…
Reference in a new issue