Skip to content

Commit e661231

Browse files
committed
Merged in [8208] from rjsparks@nostrum.com:
use doc.href rather than manually constructing URLs in several templates. Fixes ticket ietf-tools#1459. - Legacy-Id: 8314 Note: SVN reference [8208] has been migrated to Git commit be3d203
1 parent d633499 commit e661231

6 files changed

Lines changed: 7 additions & 9 deletions

File tree

ietf/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ def skip_unreadable_post(record):
296296
# versions right now, we'll point to external websites
297297
DOC_HREFS = {
298298
"charter": "http://www.ietf.org/charter/{doc.name}-{doc.rev}.txt",
299-
"draft": "http://tools.ietf.org/html/{doc.name}-{doc.rev}",
299+
"draft": "http://www.ietf.org/archive/id/{doc.name}-{doc.rev}.txt",
300300
"slides": "http://www.ietf.org/slides/{doc.name}-{doc.rev}",
301301
"conflrev": "http://www.ietf.org/cr/{doc.name}-{doc.rev}.txt",
302302
"statchg": "http://www.ietf.org/sc/{doc.name}-{doc.rev}.txt",

ietf/templates/doc/document_draft.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@
277277
{% else %}
278278

279279
<p>This Internet-Draft is no longer active. A copy of the expired Internet-Draft can be found here:<br/>
280-
<a href="http://www.ietf.org/archive/id/{{ doc.name }}-{{ doc.rev }}.txt">http://www.ietf.org/archive/id/{{ doc.name }}-{{ doc.rev }}.txt</a>
280+
<a href="{{doc.href}}">{{doc.href}}</a>
281281

282282
<h4>Abstract</h4>
283283

ietf/templates/iesg/agenda_conflict_doc.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66

77
<div>
88
<a href="{% url "doc_view" name=doc.name %}">{{doc.name}}-{{doc.rev}}</a>
9-
<a href="http://www.ietf.org/id/{{doc.name}}-{{doc.rev}}.txt">[txt]</a>
9+
<a href="{{doc.href}}">[txt]</a>
1010

1111
<br/>{{ doc.title }}
1212

1313
{% with doc.conflictdoc as conflictdoc %}
1414

1515
<div style="padding-left:30px;">
1616
<a href="{% url "doc_view" name=conflictdoc.name %}">{{ conflictdoc.name }}-{{ conflictdoc.rev }}</a>
17-
<a href="http://www.ietf.org/id/{{ conflictdoc.name }}-{{ conflictdoc.rev }}.txt">[txt]</a>
17+
<a href="{{ conflictdoc.href }}">[txt]</a>
1818
<br/>{{ conflictdoc.title }} ({{ conflictdoc.stream }}: {{ conflictdoc.intended_std_level }})
1919
{% if conflictdoc.note %}
2020
<br/>Note: {{ conflictdoc.note|linebreaksbr }}

ietf/templates/iesg/agenda_doc.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
{% with doc.rfc_number as rfc_number %}
1010
{% if rfc_number %}
1111
<a href="http://www.rfc-editor.org/rfc/rfc{{rfc_number}}/">[txt]</a>
12-
{% elif doc.type.slug == 'draft' %}
13-
<a href="http://www.ietf.org/id/{{doc.name}}-{{doc.rev}}.txt">[txt]</a>
1412
{% else %}
1513
<a href="{{doc.href}}">[txt]</a>
1614
{% endif %}

ietf/templates/iesg/scribe_conflict_doc.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
{{ doc.title }}
33

44
<br><a href="{% url "doc_view" name=doc.canonical_name %}">{{doc.canonical_name}}</a>
5-
<a href="http://www.ietf.org/id/{{doc.canonical_name}}-{{doc.rev}}.txt">[txt]</a>
5+
<a href="{{doc.href}}">[txt]</a>
66

77
<div style="padding-left:20px">
88
{{ doc.conflictdoc.title }} ({{ doc.conflictdoc.stream }}: {{ doc.conflictdoc.intended_std_level }})
99
<br><a href="{% url "doc_view" name=doc.conflictdoc.canonical_name %}">{{ doc.conflictdoc.canonical_name }}</a>
10-
<a href="http://www.ietf.org/id/{{ doc.conflictdoc.canonical_name }}-{{ doc.conflictdoc.rev }}.txt">[txt]</a>
10+
<a href="{{doc.conflictdoc.href}}">[txt]</a>
1111
{% if doc.conflictdoc.note %}
1212
<br>Note: {{ doc.conflictdoc.note|linebreaksbr }}
1313
{% endif %}

ietf/templates/iesg/scribe_doc.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{% if rfc_number %}
66
<a href="http://www.rfc-editor.org/rfc/rfc{{ rfc_number }}/">[txt]</a>
77
{% else %}
8-
<a href="http://www.ietf.org/id/{{ doc.canonical_name }}-{{ doc.rev }}.txt">[txt]</a>
8+
<a href="{{doc.href}}">[txt]</a>
99
{% endif %}
1010
{% endwith %}
1111

0 commit comments

Comments
 (0)