Skip to content

Commit 726b29b

Browse files
committed
fontawesome -> bootstrap-icons
- Legacy-Id: 19608
1 parent 1d55937 commit 726b29b

68 files changed

Lines changed: 220 additions & 237 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

ietf/doc/templatetags/ietf_filters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ def format_snippet(text, trunc_words=25):
426426
full = keep_spacing(collapsebr(linebreaksbr(mark_safe(sanitize_fragment(text)))))
427427
snippet = truncatewords_html(full, trunc_words)
428428
if snippet != full:
429-
return mark_safe('<div class="snippet">%s<button class="btn btn-xs btn-default show-all"><span class="fa fa-caret-down"></span></button></div><div class="hidden full">%s</div>' % (snippet, full))
429+
return mark_safe('<div class="snippet">%s<button class="btn btn-xs btn-default show-all"><span class="bi bi-caret-down"></span></button></div><div class="hidden full">%s</div>' % (snippet, full))
430430
return full
431431

432432
@register.simple_tag

ietf/meeting/tests_views.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2136,7 +2136,7 @@ def test_edit_meeting_schedule(self):
21362136
s_other = s2 if s == s1 else s1
21372137
self.assertEqual(len(constraints), 3)
21382138
self.assertEqual(constraints.eq(0).attr("data-sessions"), str(s_other.pk))
2139-
self.assertEqual(constraints.eq(0).find(".fa-user-o").parent().text(), "1") # 1 person in the constraint
2139+
self.assertEqual(constraints.eq(0).find(".bi-person").parent().text(), "1") # 1 person in the constraint
21402140
self.assertEqual(constraints.eq(1).attr("data-sessions"), str(s_other.pk))
21412141
self.assertEqual(constraints.eq(1).find(".encircled").text(), "1" if s_other == s2 else "-1")
21422142
self.assertEqual(constraints.eq(2).attr("data-sessions"), str(s_other.pk))
@@ -2472,7 +2472,7 @@ def test_edit_meeting_schedule_conflict_types(self):
24722472

24732473
# Now enable the 'chair_conflict' constraint only
24742474
chair_conflict = ConstraintName.objects.get(slug='chair_conflict')
2475-
chair_conf_label = b'<i class="fa fa-gavel"/>' # result of etree.tostring(etree.fromstring(editor_label))
2475+
chair_conf_label = b'<i class="bi bi-person-plus"/>' # result of etree.tostring(etree.fromstring(editor_label))
24762476
meeting.group_conflict_types.add(chair_conflict)
24772477
r = self.client.get(url)
24782478
q = PyQuery(r.content)
@@ -2732,7 +2732,7 @@ def test_session_details(self):
27322732
q = PyQuery(r.content)
27332733
self.assertTrue(q('h2#session_%s div#session-buttons-%s' % (session.id, session.id)),
27342734
'Session detail page does not contain session tool buttons')
2735-
self.assertFalse(q('h2#session_%s div#session-buttons-%s span.fa-arrows-alt' % (session.id, session.id)),
2735+
self.assertFalse(q('h2#session_%s div#session-buttons-%s span.bi-arrows-fullscreen' % (session.id, session.id)),
27362736
'The session detail page is incorrectly showing the "Show meeting materials" button')
27372737

27382738
def test_session_details_past_interim(self):

ietf/meeting/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ def preprocess_constraints_for_meeting_schedule_editor(meeting, sessions):
301301
joint_with_groups_constraint_name = ConstraintName(
302302
slug='joint_with_groups',
303303
name="Joint session with",
304-
editor_label="<i class=\"fa fa-clone\"></i>",
304+
editor_label="<i class=\"bi bi-link\"></i>",
305305
order=8,
306306
)
307307
constraint_names[joint_with_groups_constraint_name.slug] = joint_with_groups_constraint_name
@@ -535,4 +535,4 @@ def preprocess_meeting_important_dates(meetings):
535535
m.important_dates = m.importantdate_set.prefetch_related("name")
536536
for d in m.important_dates:
537537
d.midnight_cutoff = "UTC 23:59" in d.name.name
538-
538+

ietf/name/fixtures/names.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6237,7 +6237,7 @@
62376237
{
62386238
"fields": {
62396239
"desc": "",
6240-
"editor_label": "<i class=\"fa fa-user-o\"></i>{count}",
6240+
"editor_label": "<i class=\"bi bi-person\"></i>{count}",
62416241
"is_group_conflict": false,
62426242
"name": "Person must be present",
62436243
"order": 4,
@@ -6250,7 +6250,7 @@
62506250
{
62516251
"fields": {
62526252
"desc": "Indicates other WGs the chairs also lead or will be active participants in",
6253-
"editor_label": "<i class=\"fa fa-gavel\"></i>",
6253+
"editor_label": "<i class=\"bi bi-person-plus\"></i>",
62546254
"is_group_conflict": true,
62556255
"name": "Chair conflict",
62566256
"order": 8,
@@ -6302,7 +6302,7 @@
63026302
{
63036303
"fields": {
63046304
"desc": "Indicates WGs with which key participants (presenter, secretary, etc.) may overlap",
6305-
"editor_label": "<i class=\"fa fa-key\"></i>",
6305+
"editor_label": "<i class=\"bi bi-key\"></i>",
63066306
"is_group_conflict": true,
63076307
"name": "Key participant conflict",
63086308
"order": 10,
@@ -6315,7 +6315,7 @@
63156315
{
63166316
"fields": {
63176317
"desc": "Indicates WGs with a related technology or a closely related charter",
6318-
"editor_label": "<i class=\"fa fa-rocket\"></i>",
6318+
"editor_label": "<i class=\"bi bi-link\"></i>",
63196319
"is_group_conflict": true,
63206320
"name": "Technology overlap",
63216321
"order": 9,
@@ -6341,7 +6341,7 @@
63416341
{
63426342
"fields": {
63436343
"desc": "",
6344-
"editor_label": "<i class=\"fa fa-calendar-o\"></i>",
6344+
"editor_label": "<i class=\"bi bi-calendar\"></i>",
63456345
"is_group_conflict": false,
63466346
"name": "Can't meet within timerange",
63476347
"order": 5,
@@ -6354,7 +6354,7 @@
63546354
{
63556355
"fields": {
63566356
"desc": "",
6357-
"editor_label": "<i class=\"fa fa-step-forward\"></i>",
6357+
"editor_label": "<i class=\"bi bi-skip-end\"></i>",
63586358
"is_group_conflict": false,
63596359
"name": "Request for adjacent scheduling with another WG",
63606360
"order": 7,
@@ -15693,4 +15693,4 @@
1569315693
"model": "utils.versioninfo",
1569415694
"pk": 4
1569515695
}
15696-
]
15696+
]

ietf/name/migrations/0017_update_constraintname_order_and_label.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ def update_editor_labels(apps, schema_editor):
1212
ConstraintName = apps.get_model('name', 'ConstraintName')
1313
for cn in ConstraintName.objects.all():
1414
cn.editor_label = {
15-
'bethere': "<i class=\"fa fa-user-o\"></i>{count}",
16-
'wg_adjacent': "<i class=\"fa fa-step-forward\"></i>",
15+
'bethere': "<i class=\"bi bi-person\"></i>{count}",
16+
'wg_adjacent': "<i class=\"bi bi-skip-end\"></i>",
1717
'conflict': "<span class=\"encircled\">1</span>",
1818
'conflic2': "<span class=\"encircled\">2</span>",
1919
'conflic3': "<span class=\"encircled\">3</span>",
2020
'time_relation': "&Delta;",
21-
'timerange': "<i class=\"fa fa-calendar-o\"></i>",
21+
'timerange': "<i class=\"bi bi-calendar\"></i>",
2222
}.get(cn.slug, cn.editor_label)
2323

2424
cn.order = {

ietf/name/migrations/0026_add_conflict_constraintnames.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,21 @@
1818
slug='chair_conflict',
1919
name='Chair conflict',
2020
desc='Indicates other WGs the chairs also lead or will be active participants in',
21-
editor_label='<i class="fa fa-gavel"></i>',
21+
editor_label='<i class="bi bi-person-plus"></i>',
2222
),
2323
ConstraintInfo(
2424
replaces='conflic2',
2525
slug='tech_overlap',
2626
name='Technology overlap',
2727
desc='Indicates WGs with a related technology or a closely related charter',
28-
editor_label='<i class="fa fa-rocket"></i>',
28+
editor_label='<i class="bi bi-link"></i>',
2929
),
3030
ConstraintInfo(
3131
replaces='conflic3',
3232
slug='key_participant',
3333
name='Key participant conflict',
3434
desc='Indicates WGs with which key participants (presenter, secretary, etc.) may overlap',
35-
editor_label='<i class="fa fa-key"></i>',
35+
editor_label='<i class="bi bi-key"></i>',
3636
)
3737
]
3838

@@ -72,4 +72,4 @@ class Migration(migrations.Migration):
7272

7373
operations = [
7474
migrations.RunPython(forward, reverse),
75-
]
75+
]

ietf/static/ietf/js/ietf.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -254,9 +254,9 @@ $(document).ready(function () {
254254
// customize the styling a bit; more is done in ietf.css
255255
$.tablesorter.themes.bootstrap = {
256256
table: "",
257-
iconSortNone: "fa fa-sort",
258-
iconSortAsc: "fa fa-sort-asc",
259-
iconSortDesc: "fa fa-sort-desc",
257+
iconSortNone: "bi bi-arrow-down-up",
258+
iconSortAsc: "bi bi-arrow-down-up-asc",
259+
iconSortDesc: "bi bi-arrow-down-up-desc",
260260
hover: "active"
261261
};
262262
// disable the URL-based sorting stuff that uses the django backend

ietf/submit/checkers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class DraftIdnitsChecker(object):
5252

5353
# start using this when we provide more in the way of warnings during
5454
# submission checking:
55-
# symbol = '<span class="fa fa-check-square"></span>'
55+
# symbol = '<span class="bi bi-check-square"></span>'
5656
# symbol = u'<span class="large">\ua17d</span>' # Yi syllable 'nit'
5757
# symbol = u'<span class="large">\ub2e1</span>' # Hangul syllable 'nit'
5858

ietf/templates/api/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,9 @@ <h3 id="simplified-documents" class="anchor-target">Simplified documents API</h3
178178
document attributes are necessary for an application is
179179
available for all documents at the relative url <code>doc.json</code>, e.g.,
180180
<code>{% url 'ietf.doc.views_doc.document_json' name='draft-ietf-poised95-std-proc-3' %}</code>
181-
<a href="{% url 'ietf.doc.views_doc.document_json' name='draft-ietf-poised95-std-proc-3' %}"><span class="fa fa-external-link"></span></a>.
181+
<a href="{% url 'ietf.doc.views_doc.document_json' name='draft-ietf-poised95-std-proc-3' %}"><span class="bi bi-box-arrow-up-right"></span></a>.
182182
You can also specify an RFC: <code>{% url 'ietf.doc.views_doc.document_json' name='rfc2026' %}</code>
183-
<a href="{% url 'ietf.doc.views_doc.document_json' name='rfc2026' %}"><span class="fa fa-external-link"></span></a>.
183+
<a href="{% url 'ietf.doc.views_doc.document_json' name='rfc2026' %}"><span class="bi bi-box-arrow-up-right"></span></a>.
184184
No API key is needed to access this.
185185

186186
</p>

ietf/templates/base.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@
112112
{{revision_date}} |
113113
{% endif %}
114114
Report a bug:
115-
<a href="https://trac.ietf.org/trac/ietfdb/newticket">Tracker:<span class="fa fa-bug"></span></a>
115+
<a href="https://trac.ietf.org/trac/ietfdb/newticket">Tracker:<span class="bi bi-bug"></span></a>
116116
{% if bugreport_email %}
117-
<a href="mailto:{{ bugreport_email }}">Email:<span class="fa fa-envelope"></span></a>
117+
<a href="mailto:{{ bugreport_email }}">Email:<span class="bi bi-envelope"></span></a>
118118
{% endif %}
119119
<br>
120120
{% if python_version %}Python {{ python_version }}{% endif %} |

0 commit comments

Comments
 (0)