please put glyphicons-*.png in static/images folder
and check that in web2py_bootstrap.css there are the following rules:
/* right folder for bootstrap black images/icons */
[class^="icon-"],[class*=" icon-"]{
background-image:url("../images/glyphicons-halflings.png")
}
/* right folder for bootstrap white images/icons */
.icon-white,
.nav-tabs > .active > a > [class^="icon-"],
.nav-tabs > .active > a > [class*=" icon-"],
.nav-pills > .active > a > [class^="icon-"],
.nav-pills > .active > a > [class*=" icon-"],
.nav-list > .active > a > [class^="icon-"],
.nav-list > .active > a > [class*=" icon-"],
.navbar-inverse .nav > .active > a > [class^="icon-"],
.navbar-inverse .nav > .active > a > [class*=" icon-"],
.dropdown-menu > li > a:hover > [class^="icon-"],
.dropdown-menu > li > a:hover > [class*=" icon-"],
.dropdown-menu > .active > a > [class^="icon-"],
.dropdown-menu > .active > a > [class*=" icon-"] {
background-image:url("../images/glyphicons-halflings-white.png");
}
Il giorno venerdì 21 settembre 2012 18:18:46 UTC+2, Alec Taylor ha scritto:
>
> Upgrading an old project from 2.0.1 or so to the latest trunk.
>
> I replaced my views/default and static folder with the ones from the
> latest welcome app. Subsequently I made my modifications to them;
> essentially copy and pasting blocks of code from my old layout.html to
> the new one, same went for my views/default/index.html page.
>
> Strangely enough none of my twitter-bootstrap icons are working. To
> fully test I replaced my glyphicons-*.png files in static with the
> latest ones from the twitter-bootstrap page, and tried once again in a
> view with a single line:
> {{=I(_class='icon-screenshot')}}
>
> Still, nothing showed up. I've also tried clearing my cache.
>
> Could you please fix the bootstrap icons?
>
> Thanks,
>
> Alec Taylor
>
--