Skip to content

Commit eed58c9

Browse files
authored
ui: Add rounded-pill to a few more badges (ietf-tools#4539)
1 parent 2981242 commit eed58c9

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

ietf/doc/templatetags/ballot_icon.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ def state_age_colored(doc):
224224
else:
225225
title = ""
226226
return mark_safe(
227-
'<span class="badge %s" %s><i class="bi bi-clock-fill"></i> %d</span>'
227+
'<span class="badge rounded-pill %s" %s><i class="bi bi-clock-fill"></i> %d</span>'
228228
% (class_name, title, days)
229229
)
230230
else:

ietf/doc/templatetags/ietf_filters.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -641,18 +641,18 @@ def action_holder_badge(action_holder):
641641
''
642642
643643
>>> action_holder_badge(DocumentActionHolderFactory(time_added=datetime.datetime.now() - datetime.timedelta(days=16)))
644-
'<span class="badge bg-danger" title="In state for 16 days; goal is &lt;15 days."><i class="bi bi-clock-fill"></i> 16</span>'
644+
'<span class="badge rounded-pill bg-danger" title="In state for 16 days; goal is &lt;15 days."><i class="bi bi-clock-fill"></i> 16</span>'
645645
646646
>>> action_holder_badge(DocumentActionHolderFactory(time_added=datetime.datetime.now() - datetime.timedelta(days=30)))
647-
'<span class="badge bg-danger" title="In state for 30 days; goal is &lt;15 days."><i class="bi bi-clock-fill"></i> 30</span>'
647+
'<span class="badge rounded-pill bg-danger" title="In state for 30 days; goal is &lt;15 days."><i class="bi bi-clock-fill"></i> 30</span>'
648648
649649
>>> settings.DOC_ACTION_HOLDER_AGE_LIMIT_DAYS = old_limit
650650
"""
651651
age_limit = settings.DOC_ACTION_HOLDER_AGE_LIMIT_DAYS
652652
age = (datetime.datetime.now() - action_holder.time_added).days
653653
if age > age_limit:
654654
return mark_safe(
655-
'<span class="badge bg-danger" title="In state for %d day%s; goal is &lt;%d days."><i class="bi bi-clock-fill"></i> %d</span>'
655+
'<span class="badge rounded-pill bg-danger" title="In state for %d day%s; goal is &lt;%d days."><i class="bi bi-clock-fill"></i> %d</span>'
656656
% (age, "s" if age != 1 else "", age_limit, age)
657657
)
658658
else:

ietf/templates/doc/document_draft.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@
241241
</td>
242242
<td>
243243
{% if doc.get_state_slug != "active" and doc.get_state_slug != "rfc" %}
244-
<div class="float-end badge bg-warning">
244+
<div class="badge rounded-pill bg-warning float-end">
245245
Expired &amp; archived
246246
</div>
247247
{% endif %}

ietf/templates/meeting/requests.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ <h2 class="mt-5" id="{% firstof area.grouper.acronym "other-groups" %}">
6969
</div>
7070
{% endif %}
7171
{% if session.group.state.slug != "active" %}
72-
<br><span class="badge bg-success">{{ session.group.state.name }}</span>
72+
<br><span class="badge rounded-pill bg-success">{{ session.group.state.name }}</span>
7373
{% endif %}
7474
</td>
7575
<td class="d-none d-lg-table-cell">

0 commit comments

Comments
 (0)