Skip to content

Commit 7266cda

Browse files
committed
Small cleanup refactor removing redundant configuration line in settings for charter text URLs. Commit ready to merge.
- Legacy-Id: 8150
1 parent 4de405e commit 7266cda

3 files changed

Lines changed: 3 additions & 6 deletions

File tree

ietf/doc/views_doc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ def document_main(request, name, rev=None):
418418
top=top,
419419
chartering=chartering,
420420
content=content,
421-
txt_url=settings.CHARTER_TXT_URL + filename,
421+
txt_url=doc.href(),
422422
revisions=revisions,
423423
snapshot=snapshot,
424424
telechat=telechat,

ietf/iesg/agenda.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,7 @@ def fill_in_agenda_docs(date, sections, matches=None):
177177
elif doc.type_id == "conflrev":
178178
doc.conflictdoc = doc.relateddocument_set.get(relationship__slug='conflrev').target.document
179179
elif doc.type_id == "charter":
180-
#if doc.group.state_id not in ("proposed", "active"):
181-
# continue
182-
183-
doc.group.txt_link = settings.CHARTER_TXT_URL + "%s-%s.txt" % (doc.canonical_name(), doc.rev)
180+
pass
184181

185182
number = get_doc_section(doc)
186183
if number: # and num in sections

ietf/templates/iesg/agenda_charter.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<div>
88
<div>
99
<a href="{{ doc.get_absolute_url }}">{{ doc.name}}-({{doc.rev}})</a>
10-
<a href="{{ settings.CHARTER_TXT_URL }}{{ doc.filename_with_rev }}">[txt]</a>
10+
<a href="{{ doc.href }}">[txt]</a>
1111
</div>
1212

1313
<div>{{ doc.group.name }} ({{doc.group.acronym}})</div>

0 commit comments

Comments
 (0)