Class: Components::Favicon
- Defined in:
- lib/backpack/components/favicon.rb
Constant Summary
Constants included from Backpack::Attributes
Backpack::Attributes::HTMLAttribute, Backpack::Attributes::HTMLAttributes, Backpack::Attributes::MandatoryHTMLAttribute
Instance Method Summary collapse
Methods included from Backpack::Classes
Methods included from Backpack::Identifier
Instance Method Details
#view_template ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/backpack/components/favicon.rb', line 6 def view_template link(rel: "icon", type: "image/png", href: "/favicon-96x96.png", sizes: "96x96") link(rel: "icon", type: "image/svg+xml", href: "/favicon.svg") link(rel: "shortcut icon", href: "/favicon.ico") link(rel: "apple-touch-icon", href: "/apple-touch-icon.png", sizes: "180x180") if @application_name (name: "apple-mobile-web-app-title", content: @application_name) end link(rel: "manifest", href: "/site.webmanifest") end |