Icons inside buttons missing if no Internet (LAN is working btw client & server). Is this normal?

35 views
Skip to first unread message

João Matos

unread,
Mar 4, 2019, 6:51:25 PM3/4/19
to web2py-users

Icons inside buttons missing if no Internet (LAN is working between client and server). Is this normal?

Is there any way to solve it?


web2py 2.18.3
Python 3.7.1 x86
Windows 7 Pro x64 SP1+all updates


Thanks,


JM


Massimo Di Pierro

unread,
Mar 4, 2019, 10:51:46 PM3/4/19
to web2py-users
yes, download font awesome in static and replace the link to the cdn to a local link.

João Matos

unread,
Mar 5, 2019, 5:44:36 AM3/5/19
to web2py-users
Is this the font awesome you refer (I'm assuming it is the Free for Web white button)?

I changed the link in layouts.html from
to
<link rel="stylesheet" href="{{=URL('static','css/fontawesome.min.css')}}"/>

First I copied just the fontawesome.min.css to the static/css folder, but that didn't work.
The I copied everything in the fontawesome-free-5.7.2-web.zip to the static folder, but that also didn't work.

For each try I restarted web2py.

Am I missing any required step?

Thanks,

JM

João Matos

unread,
Mar 5, 2019, 6:06:45 AM3/5/19
to web2py-users
I found an older version of fontawesome (font-awesome-4.7.0.zip) on the site and tried that and it worked.

Thanks,

JM

terça-feira, 5 de Março de 2019 às 03:51:46 UTC, Massimo Di Pierro escreveu:

João Matos

unread,
Mar 5, 2019, 6:23:01 AM3/5/19
to web...@googlegroups.com
Can you consider adding this as a recipe in Complete Reference Manual, so it would help others?

The steps were (for web2py 2.18.3):
1. Download font awesome older version from https://fontawesome.com/v4.7.0/
2. Copy font-awesome-4.7.0.zip/font-awesome-4.7.0/css/font-awesome.min.css to <app>/static/css
3. Copy font-awesome-4.7.0.zip/font-awesome-4.7.0/fonts to <app>/static
4. Update <app>/views/layout.html by changing this line
to this
<link rel="stylesheet" href="{{=URL('static','css/font-awesome.min.css')}}"/>

Thanks,

JM

terça-feira, 5 de Março de 2019 às 03:51:46 UTC, Massimo Di Pierro escreveu:
Reply all
Reply to author
Forward
0 new messages