<li id="constituency-office-{{ object.id }}">
  <span class="name">
    <a href="{{ object.organisation.get_absolute_url }}">{{ object.organisation.name }}</a>
    {% if object.distance != None %}
      <span class="distance">{{ object.distance.km|floatformat:1 }}km</span>
    {% endif %}
  </span>

  <ul>
    {# I imagine we'll only get the one postal address per office... #}
    {% for address in object.postal_addresses %}
      <li class="constituency-office-address">{{ address.value }}</li>
    {% endfor %}
  </ul>

  <ul class="unstyled-list tiny-list-of-people">
    {% for position in object.related_positions %}
      {% with object=position.person %}
        {% include 'core/generic_list_item.html' %}
      {% endwith %}
    {% endfor %}
  </ul>

  <script>
    add_marker_to_map({
      lat: {{ object.location.y }},
      lng: {{ object.location.x }},
      name: "{{object.organisation.name }}",
      url: "#constituency-office-{{ object.id }}"
    });
  </script>
</li>

<li id="constituency-office-{{ object.id }}">
  <span class="name">
    <a href="{{ object.organisation.get_absolute_url }}">{{ object.organisation.name }}</a>
    {% if object.distance != None %}
      <span class="distance">{{ object.distance.km|floatformat:1 }}km</span>
    {% endif %}
  </span>

  <ul>
    {# I imagine we'll only get the one postal address per office... #}
    {% for address in object.postal_addresses %}
      <li class="constituency-office-address">{{ address.value }}</li>
    {% endfor %}
  </ul>

  {% if not skip_positions %}
    <ul class="unstyled-list tiny-list-of-people">
    {% for position in object.related_positions %}
      {% with object=position.person %}
        {% include 'core/generic_list_item.html' %}
      {% endwith %}
    {% endfor %}
    </ul>
  {% endif %}

  <script>
    add_marker_to_map({
      lat: {{ object.location.y }},
      lng: {{ object.location.x }},
      name: "{{object.organisation.name }}",
      url: "#constituency-office-{{ object.id }}"
    });
  </script>
</li>

Allow skipping positions when rendering constituency offices
Allow skipping positions when rendering constituency offices

When we display the offices on the provinces page, we don't want to show
the list of positions as they are in a different part of the page, so
this allows skipping them.
