{% extends 'core/organisation_base.html' %}
{% load thumbnail %}
{% load url from future %}
{% load switch %}

{% block title %}{{ object.name }}{% endblock %}

{# Remove the object_menu #}
{% block object_menu_links %}
{% endblock object_menu_links %}

{% block subcontent %}

  {% if object.summary %}
    <h2>Summary</h2>

    <div class="markdown">
      {{ object.summary }}
    </div>
  {% endif %}

  <h2>People</h2>
  {% include "core/_position_listing.html" with positions=object.position_set.all %}

  {% include 'disqus_comments.html' %}

{% endblock %}

{# Put a map in the profile_pic block #}
{% block profile_pic %}

<script src="{{ STATIC_URL }}js/map.js?{{ settings.STATIC_GENERATION_NUMBER }}"></script>
<div class="profile-pic">
  <div id="map_canvas" width="200" height="200"></div>
</div>
{% endblock profile_pic %}

{% block profile_info %}
  <ul class="vcard">
    {% for c in object.contacts.all %}
    <li class="{{ c.kind.slug }}">

    {% switch c.kind.slug %}

    {% case 'phone' %}
    <span class="label">Tel:</span>
    <p><a href="tel:{{ c.value }}">{{ c.value }}</a></p>

    {% case 'facebook' %}
    <span class="label">Link:</span>
    <p><a href="{{ c.value }}">{{ c.kind.name }}</a></p>

    {% case 'twitter' %}
    <span class="label">Link:</span>
    <p><a href="http://twitter.com/{{ c.value }}">@{{ c.value }}</a> on Twitter</p>

    {% case 'address' %}
    <span class="label">Post:</span>
    <p>{{ c.value|urlizetrunc:50 }}</p>

    {% case 'parliament_url' %}
    {# Suppress these as requested in issue #444 #}

    {% else %}
    <span class="label">{{ c.kind.name }}:</span>
    <p>{{ c.value|urlizetrunc:50 }}</p>

    {% endswitch %}

    {% if c.notes %}<small>({{ c.notes }})</small>{% endif %}

    </li>
    {% endfor %}
  </ul>
{% endblock profile_info %}

Add basic template for individual organisation pages
Add basic template for individual organisation pages
