Skip to content

Suggestion: Consider adding this recipe to add offline icons to buttons #416

@jcrmatos

Description

@jcrmatos

From
https://groups.google.com/forum/#!topic/web2py/JsX9KmbSWtU

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 /static/css
  3. Copy font-awesome-4.7.0.zip/font-awesome-4.7.0/fonts to /static
  4. Update /views/layout.html by changing this line
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"/>
    to this
    <link rel="stylesheet" href="{{=URL('static','css/font-awesome.min.css')}}"/>

Thanks,

JM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions