Skip to content

Commit 1d55937

Browse files
committed
Replace glyphicons with bootstrap-icons.
- Legacy-Id: 19607
1 parent 94b12af commit 1d55937

16 files changed

Lines changed: 35 additions & 39 deletions

ietf/static/css/ietf.scss

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,9 @@ $enable-negative-margins: true;
5353
@import "~/node_modules/bootstrap/scss/utilities/api";
5454

5555
// Make the bootstrap icons available.
56-
// FIXME: This requires cp -r node_modules/bootstrap-icons/font/fonts static/src/css/
57-
// to be run manually due to parcel limitations.
58-
// @import "../../../node_modules/bootstrap-icons/font/bootstrap-icons";
59-
60-
// For now, let's stick with font-awesome v4:
61-
$fa-font-path: "~/node_modules/font-awesome/fonts";
62-
@import "~/node_modules/font-awesome/scss/font-awesome";
56+
$bootstrap-icons-font-src: url("~node_modules/bootstrap-icons/font/fonts/bootstrap-icons.woff2?a97b3594ad416896e15824f6787370e0") format("woff2"),
57+
url("~node_modules/bootstrap-icons/font/fonts/bootstrap-icons.woff?a97b3594ad416896e15824f6787370e0") format("woff") !default;
58+
@import "../../../node_modules/bootstrap-icons/font/bootstrap-icons";
6359

6460
// Install the datatables.net bootstrap5 styles.
6561
// FIXME: Including this with ~ fails for some odd reason?

ietf/static/ietf/js/liaisons.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ var attachmentWidget = {
5959
html += '</span>';
6060
container.hide();
6161
});
62-
//html += ' <a href="" class="removeAttach glyphicon glyphicon-remove text-danger"></a>';
62+
//html += ' <a href="" class="removeAttach bi bi-x text-danger"></a>';
6363
html += ' <a href="" class="removeAttach btn btn-default btn-xs">Delete</a>';
6464
html += '</div>';
6565
attachmentWidget.config.showOnDisplay.html(html);

ietf/templates/community/list_menu.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
{% if clist.pk != None %}
1111
<li><a class="btn btn-primary" href="{% if clist.group %}{% url "ietf.community.views.subscription" acronym=clist.group.acronym %}{% else %}{% url "ietf.community.views.subscription" username=clist.user.username %}{% endif %}">
12-
<i class="glyphicon glyphicon-envelope"></i>
12+
<i class="bi bi-envelope"></i>
1313
{% if subscribed %}
1414
Change subscription
1515
{% else %}
@@ -18,5 +18,5 @@
1818
</a></li>
1919
{% endif %}
2020

21-
<li><a class="btn btn-primary" href="{% if clist.group %}{% url "ietf.community.views.export_to_csv" acronym=clist.group.acronym %}{% else %}{% url "ietf.community.views.export_to_csv" username=clist.user.username %}{% endif %}"><i class="glyphicon glyphicon-list"></i> Export as CSV</a></li>
21+
<li><a class="btn btn-primary" href="{% if clist.group %}{% url "ietf.community.views.export_to_csv" acronym=clist.group.acronym %}{% else %}{% url "ietf.community.views.export_to_csv" username=clist.user.username %}{% endif %}"><i class="bi bi-file-ruled"></i> Export as CSV</a></li>
2222
</ul>

ietf/templates/community/view_list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ <h1>{{ clist.long_name }}</h1>
1313

1414
{% if can_manage_list %}
1515
<a class="btn btn-primary" href="{% url "ietf.community.views.manage_list" username=clist.user.username %}">
16-
<i class="glyphicon glyphicon-cog"></i>
16+
<i class="bi bi-gear"></i>
1717
Manage list
1818
</a>
1919
{% endif %}

ietf/templates/ipr/details_edit.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ <h2>{% cycle section %}. IETF document or other contribution to which this IPR d
161161

162162
<div class="form-group">
163163
<label class="col-md-2 control-label"></label>
164-
<div class="col-md-10"><a class="draft-add-row btn btn-primary"><span class="glyphicon glyphicon-plus" aria-hidden="true"></span> Add more</a></div>
164+
<div class="col-md-10"><a class="draft-add-row btn btn-primary"><span class="bi bi-plus" aria-hidden="true"></span> Add more</a></div>
165165
</div>
166166

167167
{% bootstrap_field form.other_designations layout='horizontal' %}

ietf/templates/ipr/details_history.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ <h1>History for IPR disclosure<br><small>{{ ipr.title }}</small></h1>
3939
<td class="text-nowrap">{{ e.time|date:"Y-m-d" }}</td>
4040
<td>{{ e.type }}
4141
{% if e.response_due and e.response_past_due %}
42-
<span class="glyphicon glyphicon-exclamation-sign" title="Response overdue"></span>
42+
<span class="bi bi-exclamation-circle" title="Response overdue"></span>
4343
{% endif %}
4444
</td>
4545
<td>{{ e.by }}</td>

ietf/templates/ipr/details_view.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ <h1>IPR Details<br><small>{{ ipr.title }}</small></h1>
3030
{% endif %}
3131

3232
{% if ipr.updates and ipr.state_id == 'pending' and ipr.update_notified_date or not ipr.updates and ipr.state_id == 'pending' %}
33-
<a class="btn btn-primary" href="{% url 'ietf.ipr.views.post' id=ipr.id %}"><span class="glyphicon glyphicon-ok" aria-hidden="true"></span> Post</a>
33+
<a class="btn btn-primary" href="{% url 'ietf.ipr.views.post' id=ipr.id %}"><span class="bi bi-check" aria-hidden="true"></span> Post</a>
3434
{% endif %}
3535

36-
<a class="btn btn-primary" href="{% url 'ietf.ipr.views.email' id=ipr.id %}" title="Email submitter of this disclsoure"><span class="glyphicon glyphicon-envelope" aria-hidden="true"></span> Email</a>
36+
<a class="btn btn-primary" href="{% url 'ietf.ipr.views.email' id=ipr.id %}" title="Email submitter of this disclsoure"><span class="bi bi-envelope" aria-hidden="true"></span> Email</a>
3737
<a class="btn btn-primary" href="{% url 'ietf.ipr.views.edit' id=ipr.id %}">Edit</a>
3838
<a class="btn btn-primary" href="{% url 'ietf.ipr.views.state' id=ipr.id %}">Change State</a>
3939
{% endif %}

ietf/templates/ipr/ipr_table.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
{% if latest_msgout and latest_msgout.response_due %}
4848
{{ latest_msgout.response_due|date:"Y-m-d" }}
4949
{% if latest_msgout.response_past_due %}
50-
<span class="glyphicon glyphicon-exclamation-sign" title="Response overdue"></span>
50+
<span class="bi bi-exclamation-circle" title="Response overdue"></span>
5151
{% endif %}
5252
{% endif %}
5353
</td>

ietf/templates/liaisons/detail_history.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ <h1>History for Liaison Statement<br><small>{{ liaison.title }}</small></h1>
3535
<td class="text-nowrap">{{ e.time|date:"Y-m-d" }}</td>
3636
<td>{{ e.type }}
3737
{% if e.response_due and e.response_past_due %}
38-
<span class="glyphicon glyphicon-exclamation-sign" title="Response overdue"></span>
38+
<span class="bi bi-exclamation-circle" title="Response overdue"></span>
3939
{% endif %}
4040
</td>
4141
<td>{{ e.by }}</td>

ietf/templates/meeting/interim_request.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ <h1>Interim Meeting Request</h1>
148148

149149
<div class="form-group">
150150
<div class="col-md-12">
151-
<button id="add_session" type="button" class="btn btn-primary" style="display: none;"><span class="glyphicon glyphicon-plus" aria-hidden="true"></span>Add Session</button>
151+
<button id="add_session" type="button" class="btn btn-primary" style="display: none;"><span class="bi bi-plus" aria-hidden="true"></span>Add Session</button>
152152
</div>
153153
</div>
154154

0 commit comments

Comments
 (0)