Skip to content

Commit 40622d7

Browse files
Merge pull request bepasty#335 from ThomasWaldmann/fontawesome-upgrade
Fontawesome upgrade v4 -> v6
2 parents 623c427 + 47b5986 commit 40622d7

File tree

4 files changed

+18
-16
lines changed

4 files changed

+18
-16
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ dependencies = [
3737
"XStatic-asciinema-player <= 2.6.1.1",
3838
"xstatic-bootbox >= 5.4.0, <= 5.5.1.1",
3939
"xstatic-bootstrap >=4.0.0.0, <= 4.5.3.1",
40-
"xstatic-font-awesome <= 4.7.0.0",
40+
"xstatic-font-awesome >= 6.0.0, <= 6.2.1.1",
4141
"xstatic-jquery <= 3.5.1.1",
4242
"xstatic-jquery-ui <= 1.13.0.1",
4343
"xstatic-jquery-file-upload <= 10.31.0.1",

src/bepasty/templates/_layout.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@
1414
<link rel="stylesheet" href="{{ url_for('bepasty.xstatic', name='bootstrap', filename='css/bootstrap.min.css') }}" type="text/css">
1515
<!-- jQuery UI styles -->
1616
<link rel="stylesheet" href="{{ url_for('bepasty.xstatic', name='jquery_ui', filename='themes/smoothness/jquery-ui.css') }}" type="text/css">
17-
<!-- Font Awesome -->
18-
<link rel="stylesheet" href="{{ url_for('bepasty.xstatic', name='font_awesome', filename='css/font-awesome.min.css') }}">
17+
<!-- Font Awesome - load only what we need -->
18+
<link rel="stylesheet" href="{{ url_for('bepasty.xstatic', name='font_awesome', filename='css/fontawesome.min.css') }}">
19+
<link rel="stylesheet" href="{{ url_for('bepasty.xstatic', name='font_awesome', filename='css/solid.min.css') }}">
20+
<link rel="stylesheet" href="{{ url_for('bepasty.xstatic', name='font_awesome', filename='css/regular.min.css') }}">
1921
<!-- Bepasty styles -->
2022
<link rel="stylesheet" href="{{ url_for('static', filename='app/css/style.css' ) }}" type="text/css">
2123
{% block extra_link %}{% endblock %}
@@ -31,7 +33,7 @@
3133
<a class="navbar-brand" href="{{ url_for('bepasty.index') }}">
3234
{{ config.SITENAME }}
3335
<span class="navbar-text small">
34-
(Permissions:{% for permission, permission_icon in flaskg.icon_permissions %} <i class="fa fa-{{ permission_icon }}" title="{{ permission }}"></i>{% endfor %})
36+
(Permissions:{% for permission, permission_icon in flaskg.icon_permissions %} <i class="fas fa-{{ permission_icon }}" title="{{ permission }}"></i>{% endfor %})
3537
</span>
3638
</a>
3739
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarHeader" aria-controls="navbarHeader" aria-expanded="false" aria-label="Toggle navigation">

src/bepasty/templates/display.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@ <h1>
1212
{% if not item.meta['locked'] or may(ADMIN) %}
1313
{% if is_list_item %}
1414
<a id="carousel-btn" href="{{ url_for('bepasty.carousel', name=name) }}" class="btn btn-info">
15-
<span class="fa fa-play-circle"></span> Carousel
15+
<span class="fas fa-play-circle"></span> Carousel
1616
</a>
1717
{% endif %}
1818
<a id="qr-btn" href="{{ url_for('bepasty.qr', name=name) }}" class="btn btn-info">
19-
<span class="fa fa-qrcode"></span> QR
19+
<span class="fas fa-qrcode"></span> QR
2020
</a>
2121
<a id="download-btn" href="{{ url_for('bepasty.download', name=name) }}" class="btn btn-info" role="button">
22-
<span class="fa fa-download"></span> Download
22+
<span class="fas fa-download"></span> Download
2323
</a>
2424
<a id="inline-btn" href="{{ url_for('bepasty.inline', name=name) }}" class="btn btn-info" role="button">
25-
<span class="fa fa-asterisk"></span> Inline
25+
<span class="fas fa-asterisk"></span> Inline
2626
</a>
2727
{% endif %}
2828
{% if may(MODIFY) %}
@@ -45,28 +45,28 @@ <h1>
4545
</form>
4646
</div>
4747
<button id="modify-btn" type="button" class="btn btn-info">
48-
<span class="fa fa-edit"></span> Modify
48+
<span class="fas fa-edit"></span> Modify
4949
</button>
5050
{% endif %}
5151
{% if may(DELETE) %}
5252
<form id="del-frm" action="{{ url_for('bepasty.delete', name=name) }}" method="post" class="btn-group">
5353
<input type="hidden" name="next" value="{{ url_for('bepasty.index') }}">
5454
<button id="del-btn" type="button" class="btn btn-danger">
55-
<span class="fa fa-remove"></span> Delete
55+
<span class="fas fa-times"></span> Delete
5656
</button>
5757
</form>
5858
{% endif %}
5959
{% if may(ADMIN) %}
6060
{% if not item.meta['locked'] %}
6161
<form id="lock-frm" action="{{ url_for('bepasty.lock', name=name) }}" method="post" class="btn-group">
6262
<button id="lock-btn" type="submit" class="btn btn-danger">
63-
<span class="fa fa-lock"></span> Lock
63+
<span class="fas fa-lock"></span> Lock
6464
</button>
6565
</form>
6666
{% else %}
6767
<form id="unlock-frm" action="{{ url_for('bepasty.unlock', name=name) }}" method="post" class="btn-group">
6868
<button id="unlock-btn" type="submit" class="btn btn-info">
69-
<span class="fa fa-unlock"></span> Unlock
69+
<span class="fas fa-unlock"></span> Unlock
7070
</button>
7171
</form>
7272
{% endif %}

src/bepasty/templates/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
<label>Maximum lifetime value (choose before dragging or submitting)</label>
4545
{{ maximum_lifetime() }}
4646
<span class="btn btn-light fileinput-button dropzone">
47-
<i class="fa fa-upload"></i>
47+
<i class="fas fa-upload"></i>
4848
<span>drag and drop files here - or click to select files</span>
4949
<!-- Input for file upload widget -->
5050
<input id="fileupload" type="file" class="form-control-file" name="file" multiple style="height: 100%; width: 100%;">
@@ -92,23 +92,23 @@ <h1>bepasty, the Binary File Upload Site</h1>
9292
<div class="jumbotron">
9393
<div class="row">
9494
<div class="col-md-3">
95-
<span class="fa fa-thumbs-o-up"></span>
95+
<span class="far fa-thumbs-up"></span>
9696
<h2>Free and Nice</h2>
9797
<p>
9898
A pastebin for <em>all</em> the stuff,<br>
9999
not just for text.
100100
</p>
101101
</div>
102102
<div class="col-md-6">
103-
<span class="fa fa-eye"></span>
103+
<span class="fas fa-eye"></span>
104104
<h2>Free and Open Source</h2>
105105
<p>
106106
bepasty is free and open source software.<br>
107107
<a href="https://github.com/bepasty/">bepasty project on github</a>
108108
</p>
109109
</div>
110110
<div class="col-md-3">
111-
<span class="fa fa-heart-o"></span>
111+
<span class="far fa-heart"></span>
112112
<h2>Awesome Code</h2>
113113
<p>
114114
Powered by <a href="http://python.org">Python</a> and

0 commit comments

Comments
 (0)