root.html.leex 1.2 KB

123456789101112131415161718192021222324252627282930
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
  7. <%= csrf_meta_tag() %>
  8. <%= live_title_tag assigns[:page_title] || "Toy", suffix: " · Phoenix Framework" %>
  9. <link phx-track-static rel="stylesheet" href="<%= Routes.static_path(@conn, "/css/app.css") %>"/>
  10. <script defer phx-track-static type="text/javascript" src="<%= Routes.static_path(@conn, "/js/app.js") %>"></script>
  11. </head>
  12. <body>
  13. <header>
  14. <section class="container">
  15. <nav role="navigation">
  16. <ul>
  17. <li><a href="https://hexdocs.pm/phoenix/overview.html">Get Started</a></li>
  18. <%= if function_exported?(Routes, :live_dashboard_path, 2) do %>
  19. <li><%= link "LiveDashboard", to: Routes.live_dashboard_path(@conn, :home) %></li>
  20. <% end %>
  21. </ul>
  22. </nav>
  23. <a href="https://phoenixframework.org/" class="phx-logo">
  24. <img src="<%= Routes.static_path(@conn, "/images/phoenix.png") %>" alt="Phoenix Framework Logo"/>
  25. </a>
  26. </section>
  27. </header>
  28. <%= @inner_content %>
  29. </body>
  30. </html>