Skip to content

Commit fdb1875

Browse files
committed
Tweak the display of explicitly added documents some more.
- Legacy-Id: 4530
1 parent 239cd5d commit fdb1875

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

ietf/doc/models.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,12 @@ def canonical_name(self):
197197
name = a[0].name
198198
elif self.type_id == "charter":
199199
return "charter-ietf-%s" % self.chartered_group.acronym
200+
return name
200201

202+
def display_name(self):
203+
name = self.canonical_name()
204+
if name.startswith('rfc'):
205+
name = name.upper()
201206
return name
202207

203208
class RelatedDocHistory(models.Model):

ietf/templates/community/manage_clist.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ <h2>Documents explicitly included, from a document search.</a></h2>
4040
<tr><th>Name</th><th>State</th><th>Title</th><th>Remove from list</th></tr>
4141
{% for doc in cl.added_ids.all %}
4242
<tr class="{% cycle oddrow,evenrow %}">
43-
<td>{{ doc }}</td>
43+
<td>{{ doc.display_name }}</td>
4444
<td>{{ doc.get_state }}</td>
4545
<td><a href="{{ doc.get_absolute_url }}"</a>{{ doc.title }}</td>
4646
<td><a href="{% url community_remove_document cl.pk doc.pk %}">Remove</a></td>

0 commit comments

Comments
 (0)