{% load wagtailcore_tags core_tags %}
<div class="group">
  <ul class="sections footer-menu-list left">
    <li class="footer-menu-list__item">
      <a href="/" class="footer-menu-list__anchor">{% trans "Home" %}</a></li>
    {% load_sections as sections %}
    {% for section in sections %}
      <li class="{{section.get_effective_extra_style_hints}} footer-menu-list__item">
        <a href="{% pageurl section.specific %}" class="footer-menu-list__anchor">
            {{section.title}}
        </a>
      </li>
    {% endfor %}
  </ul>
  <ul class="sections footer-menu-list right">
    {% footer_page %}
    {% if not user.is_authenticated %}
      <li class="footer-menu-list__item">
        <a href={{REGISTRATION_URL}} class="footer-menu-list__anchor">
          {% trans "Join us" %}
        </a>
      </li>
      <li class="footer-menu-list__item">
        <a href="{{ LOGIN_URL }}" class="footer-menu-list__anchor">
          {% trans "Log in" %}
        </a>
      </li>
    {% else %}
      <li class="footer-menu-list__item">
        <a href="{{VIEW_PROFILE_URL}}" class="footer-menu-list__anchor">
          {% trans "Profile" %}
        </a>
      </li>
      <li class="footer-menu-list__item">
        <form method="post" action="{{ LOGOUT_URL }}">
          {% csrf_token %}
          <input class="footer-menu-list__anchor" value="{% trans "Log out" %}" type="submit">
        </form>
      </li>
    {% endif %}
  </ul>
</div>
