rx/presenters

View on GitHub
views/mdc/body/footers/large.erb

Summary

Maintainability
Test Coverage
<footer class="mdl-mega-footer">
  <div class="mdl-mega-footer__middle-section">

    <div class="mdl-mega-footer__drop-down-section">
      <input class="mdl-mega-footer__heading-checkbox" type="checkbox" checked>
      <% footer.menus.each_with_index do |menu, index|
        next if index == footer.menus.size - 1 %>
        <h1 class="mdl-mega-footer__heading"><%= menu.title %></h1>
        <ul class="mdl-mega-footer__link-list">
          <% menu.items.each do |item| %>
            <%= erb :"body/footers/menu_item", :locals => {item: item} %>
          <% end %>
        </ul>
      <% end %>
    </div>

    <% menu = footer.menus.last %>
    <div class="mdl-mega-footer__bottom-section">
      <div class="mdl-logo"><%= menu.title %></div>
      <ul class="mdl-mega-footer__link-list">
        <% menu.items.each do |item| %>
          <%= erb :"body/footers/menu_item", :locals => {item: item} %>
        <% end %>
      </ul>
    </div>
  </div>
</footer>