consul/consul

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

Summary

Maintainability
Test Coverage
<!DOCTYPE html>
<html <%= common_html_attributes %> data-current-user-id="<%= current_user&.id %>">
  <head>
    <%= render "layouts/common_head", default_title: setting["org_name"] %>
    <%= render "layouts/meta_tags" %>
    <%= content_for :canonical %>
    <%= favicon_link_tag image_path_for("apple-touch-icon-200.png"),
                         rel: "icon apple-touch-icon",
                         sizes: "200x200",
                         type: "image/png" %>
    <%= content_for :social_media_meta_tags %>

    <%= raw setting["html.per_page_code_head"] %>
  </head>
  <body class="<%= yield(:body_class) %> public">
    <%= render Layout::SkipToMainContentComponent.new %>
    <%= raw setting["html.per_page_code_body"] %>

    <div class="wrapper <%= yield(:wrapper_class) %>">
      <%= render "layouts/header", with_subnavigation: true %>

      <main id="main" class="public-content <%= yield(:main_class) %>">
        <%= render "layouts/flash" %>
        <%= yield %>
      </main>
    </div>

    <div class="footer">
      <%= render Layout::FooterComponent.new %>
    </div>
  </body>
</html>