application.html.erb 989 B

123456789101112131415161718192021222324252627282930
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title><%= content_for(:title) || "Depot" %></title>
  5. <meta name="viewport" content="width=device-width,initial-scale=1">
  6. <meta name="apple-mobile-web-app-capable" content="yes">
  7. <meta name="mobile-web-app-capable" content="yes">
  8. <%= csrf_meta_tags %>
  9. <%= csp_meta_tag %>
  10. <%= yield :head %>
  11. <%# Enable PWA manifest for installable apps (make sure to enable in config/routes.rb too!) %>
  12. <%#= tag.link rel: "manifest", href: pwa_manifest_path(format: :json) %>
  13. <link rel="icon" href="/icon.png" type="image/png">
  14. <link rel="icon" href="/icon.svg" type="image/svg+xml">
  15. <link rel="apple-touch-icon" href="/icon.png">
  16. <%# Includes all stylesheet files in app/assets/stylesheets %>
  17. <%= stylesheet_link_tag :app, "data-turbo-track": "reload" %>
  18. <%= javascript_importmap_tags %>
  19. </head>
  20. <body>
  21. <main class="container mx-auto mt-28 px-5 flex">
  22. <%= yield %>
  23. </main>
  24. </body>
  25. </html>