|
80 | 80 | <th></th> |
81 | 81 | <th>Replaces</th> |
82 | 82 | <td class="edit"> |
83 | | - {% if can_edit_stream_info %} |
| 83 | + {% if can_edit_stream_info and not snapshot %} |
84 | 84 | <a class="btn btn-default btn-xs" href="{% url "doc_change_replaces" name=doc.name %}">Edit</a> |
85 | 85 | {% endif %} |
86 | 86 | </td> |
|
106 | 106 | <tr> |
107 | 107 | <th>Possibly Replaces</th> |
108 | 108 | <td class="edit"> |
109 | | - {% if can_edit_replaces %} |
| 109 | + {% if can_edit_replaces and not snapshot %} |
110 | 110 | <a class="btn btn-default btn-xs" href="{% url "doc_review_possibly_replaces" name=doc.name %}">Edit</a> |
111 | 111 | {% endif %} |
112 | 112 | </td> |
|
120 | 120 | <tr> |
121 | 121 | <th>Possibly Replaced By</th> |
122 | 122 | <td class="edit"> |
123 | | - {% if can_edit_replaces %} |
| 123 | + {% if can_edit_replaces and not snapshot %} |
124 | 124 | {% comment %}<a class="btn btn-default btn-xs" href="{% url "doc_review_possibly_replaces" name=doc.name %}">Edit</a>{% endcomment %} |
125 | 125 | {% endif %} |
126 | 126 | </td> |
|
135 | 135 | <th></th> |
136 | 136 | <th>Stream</th> |
137 | 137 | <td class="edit"> |
138 | | - {% if can_change_stream %} |
| 138 | + {% if can_change_stream and not snapshot %} |
139 | 139 | <a class="btn btn-default btn-xs" href="{% url "doc_change_stream" name=doc.name %}">Edit</a> |
140 | 140 | {% endif %} |
141 | 141 | </td> |
|
149 | 149 | <th></th> |
150 | 150 | <th>Intended RFC status</th> |
151 | 151 | <td class="edit"> |
152 | | - {% if can_edit or can_edit_stream_info %} |
153 | | - <a class="btn btn-default btn-xs" href="{% url "doc_change_intended_status" name=doc.name %}">Edit</a> |
| 152 | + {% if can_edit_stream_info and not snapshot %} |
| 153 | + <a class="btn btn-default btn-xs" href="{% url "doc_change_intended_status" name=doc.name %}">Edit</a> |
154 | 154 | {% endif %} |
155 | 155 | </td> |
156 | 156 | <td> |
|
201 | 201 | {% endif %} |
202 | 202 | </th> |
203 | 203 | <td class="edit"> |
204 | | - {% if doc.stream and can_edit_stream_info %} |
| 204 | + {% if doc.stream and can_edit_stream_info and doc.stream.slug != "legacy" and not snapshot %} |
205 | 205 | <a class="btn btn-default btn-xs" href="{% url "doc_change_stream_state" name=doc.name state_type=stream_state_type_slug %}">Edit</a> |
206 | 206 | {% endif %} |
207 | 207 | </td> |
|
228 | 228 | <th></th> |
229 | 229 | <th>Consensus</th> |
230 | 230 | <td class="edit"> |
231 | | - {% if can_edit or can_edit_stream_info %} |
| 231 | + {% if can_edit_stream_info and not snapshot %} |
232 | 232 | <a class="btn btn-default btn-xs" href="{% url "doc_edit_consensus" name=doc.name %}">Edit</a> |
233 | 233 | {% endif %} |
234 | 234 | </td> |
|
241 | 241 | <tr> |
242 | 242 | <th></th> |
243 | 243 | <th>Document shepherd</th> |
244 | | - <td class="edit"> |
245 | | - {% if can_edit_stream_info %} |
246 | | - <a class="btn btn-default btn-xs" href="{% url "doc_edit_shepherd" name=doc.name %}">Edit</a> |
247 | | - {% elif is_shepherd %} |
248 | | - <a class="btn btn-default btn-xs" href="{% url "doc_change_shepherd_email" name=doc.name %}">Change Email</a> |
249 | | - {% endif %} |
250 | | - </td> |
| 244 | + <td class="edit"> |
| 245 | + {% if not snapshot %} |
| 246 | + {% if can_edit_stream_info %} |
| 247 | + <a class="btn btn-default btn-xs" href="{% url "doc_edit_shepherd" name=doc.name %}">Edit</a> |
| 248 | + {% elif is_shepherd %} |
| 249 | + <a class="btn btn-default btn-xs" href="{% url "doc_change_shepherd_email" name=doc.name %}">Change Email</a> |
| 250 | + {% endif %} |
| 251 | + {% endif %} |
| 252 | + </td> |
251 | 253 | <td> |
252 | 254 | {% if doc.shepherd %}{{ doc.shepherd.person }}{% else %}No shepherd assigned{% endif %} |
253 | 255 | </td> |
|
258 | 260 | <th></th> |
259 | 261 | <th>Shepherd write-up</th> |
260 | 262 | <td class="edit"> |
261 | | - {% if can_edit_shepherd_writeup %} |
| 263 | + {% if can_edit_shepherd_writeup and not snapshot %} |
262 | 264 | {% url "doc_edit_shepherd_writeup" name=doc.name as doc_edit_url %} |
263 | 265 | {% if doc_edit_url %} |
264 | 266 | <a class="btn btn-default btn-xs" href="{{doc_edit_url}}">Edit</a> |
|
289 | 291 | <th>IESG</th> |
290 | 292 | <th><a href="{% url "ietf.help.views.state" doc=doc.type.slug type="iesg" %}">IESG state</a></th> |
291 | 293 | <td class="edit"> |
292 | | - {% if iesg_state and can_edit %} |
| 294 | + {% if iesg_state and can_edit and not snapshot %} |
293 | 295 | <a class="btn btn-default btn-xs" href="{% url "doc_change_state" name=doc.name %}">Edit</a> |
294 | 296 | {% endif %} |
295 | 297 | </td> |
|
302 | 304 | <th></th> |
303 | 305 | <th>Telechat date</th> |
304 | 306 | <td class="edit"> |
305 | | - {% if can_edit %} |
| 307 | + {% if can_edit and not snapshot %} |
306 | 308 | <a class="btn btn-default btn-xs" href="{% url "doc_change_telechat_date" name=doc.name %}">Edit</a> |
307 | 309 | {% endif %} |
308 | 310 | </td> |
|
328 | 330 | <th></th> |
329 | 331 | <th>Responsible AD</th> |
330 | 332 | <td class="edit"> |
331 | | - {% if can_edit %} |
| 333 | + {% if can_edit and not snapshot %} |
332 | 334 | <a class="btn btn-default btn-xs" href="{% url "doc_change_ad" name=doc.name %}">Edit</a> |
333 | 335 | {% endif %} |
334 | 336 | </td> |
|
343 | 345 | <th></th> |
344 | 346 | <th>IESG note</th> |
345 | 347 | <td class="edit"> |
346 | | - {% if can_edit %} |
| 348 | + {% if can_edit and not snapshot %} |
347 | 349 | <a class="btn btn-default btn-xs" href="{% url "doc_change_iesg_note" name=doc.name %}">Edit</a> |
348 | 350 | {% endif %} |
349 | 351 | </td> |
|
358 | 360 | <th></th> |
359 | 361 | <th>Send notices to</th> |
360 | 362 | <td class="edit"> |
361 | | - {% if can_edit_notify %} |
| 363 | + {% if can_edit_notify and not snapshot %} |
362 | 364 | <a class="btn btn-default btn-xs" href="{% url "doc_change_notify" name=doc.name %}">Edit</a> |
363 | 365 | {% endif %} |
364 | 366 | </td> |
|
375 | 377 | <th>IANA</th> |
376 | 378 | <th><a href="{% url "ietf.help.views.state" doc=doc.type.slug type="iana-review" %}">IANA review state</a></th> |
377 | 379 | <td class="edit"> |
378 | | - {% if can_edit_iana_state %} |
| 380 | + {% if can_edit_iana_state and not snapshot %} |
379 | 381 | <a class="btn btn-default btn-xs" href="{% url "doc_change_iana_state" name=doc.name state_type="iana-review" %}">Edit</a> |
380 | 382 | {% endif %} |
381 | 383 | </td> |
|
388 | 390 | <th></th> |
389 | 391 | <th>IANA action state</th> |
390 | 392 | <td class="edit"> |
391 | | - {% if can_edit_iana_state %} |
| 393 | + {% if can_edit_iana_state and not snapshot %} |
392 | 394 | <a class="btn btn-default btn-xs" href="{% url "doc_change_iana_state" name=doc.name state_type="iana-action" %}">Edit</a> |
393 | 395 | {% endif %} |
394 | 396 | </td> |
|
0 commit comments