gitcoinco/code_fund_ads

View on GitHub
app/views/devise/_layout.html.erb

Summary

Maintainability
Test Coverage
<% unless local_assigns[:override]&.include? :page_heading %>
  <% content_for :page_heading do %>
    <header id="auth-header" class="auth-header">
      <h1>
        <%= link_to image_pack_tag("branding/codefund-wg-full-256.svg", alt: "CodeFund logo", height: "64px"), ENV["WORDPRESS_URL"], class: "mb-4 img-fluid" %>
        <span class="sr-only">Sign In</span>
      </h1>
      <p>Don't have an account? <a href="https://codefund.io/">Apply Now</a></p>
    </header>
  <% end %>
<% end %>
<% unless local_assigns[:override]&.include? :footer %>
  <% content_for :footer do %>
    <footer class="auth-footer text-center">
      &copy; <%= Time.now.year %> All Rights Reserved.
      <div class="d-block">
        <a href="https://www.iubenda.com/privacy-policy/47597768" target="_blank">Privacy</a> and
        <a href="https://www.iubenda.com/privacy-policy/47597768/cookie-policy" target="_blank">Cookie</a> Policy
      </div>
    </footer>
  <% end %>
<% end %>
<section class="d-flex flex-column <%= "vw-100" unless user_signed_in? %>">
  <% if user_signed_in? %>
    <%= render "shared/sidebar" %>
    <article class="container my-4">
    <% else %>
      <article class="container-fluid p-0 my-0">
      <% end %>
      <%= yield :page_heading %>
      <%= yield %>
    </article>
  </section>
  <%= yield :footer %>