noesya/osuny

View on GitHub
app/views/api/layouts/application.html.erb

Summary

Maintainability
Test Coverage
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title><%= yield :title %></title>
    <%= csrf_meta_tags %>
    <%= csp_meta_tag %>
    <%= stylesheet_link_tag 'admin', media: 'all' %>
    <%= javascript_include_tag 'admin' %>
    <%= favicon_link_tag 'favicon.png' %>
  </head>
  <body>
    <nav class="navbar navbar-expand position-relative">
      <div class="container">
        <a class="navbar-brand mx-auto" href="<%= api_root_path %>">
          <%= render 'logo' %>
        </a>
      </div>
    </nav>
    <main class="container mt-5">
      <h1 class="my-5"><%= yield :title %></h1>
      <%= yield %>
    </main>
    <%= render 'footer' %>
    <%= render 'bugsnag' %>
  </body>
</html>