class PersonDetailView(SlugMixin, DetailView):
model = Person
- template_name='team/person_detail.html'
+ template_name='network/person_detail.html'
context_object_name = 'person'
--- /dev/null
+{% load i18n %}
+{% for file in files %}
+ <h3>{{ file.title }}</h3>
+ <p>{{ file.description }}</p>
+ <a href="{{ file.file.url }}" class="button button--small">{% trans "download" %}</a>
+{% endfor %}
+{% extends "pages/page.html" %}
+{% load mezzanine_tags keyword_tags i18n organization_tags pages_tags %}
+
+{% block meta_title %}{{ person.meta_title }}{% endblock %}
+
+{% block meta_keywords %}{% metablock %}
+{% keywords_for person as keywords %}
+{% for keyword in keywords %}
+ {% if not forloop.first %}, {% endif %}
+ {{ keyword }}
+{% endfor %}
+{% endmetablock %}{% endblock %}
+
+{% block page_class %}
+ person
+{% endblock %}
+
+{% block breadcrumb_menu %}
+ {{ block.super }}
+ <li class="breadcrumb__item active">{{ person }}</li>
+{% endblock %}
+
+{% block page_title %}
+ {% editable person.title %}
+ <h1 class="dotted">{{ person.title }}</h1>
+ {% endeditable %}
+{% endblock %}
+
+{% block page_content %}
+ {% editable person.bio %}
+ {{ person.bio|richtext_filters|safe }}
+ {% endeditable %}
+{% endblock %}
+
+{% block page_sidebar %}
+ {% if person.images.all %}
+ {% with person.images.all|get_type:'page_featured' as images %}
+ {% if images.first %}
+ <figure class="person-list-box__image">
+ <img src="{{ MEDIA_URL }}{% thumbnail images.first 135 135 top=0.5 %}" alt="person"/>
+ </figure>
+ {% endif %}
+ {% endwith %}
+ {% endif%}
+{% endblock %}
+
+{% block page_link %}
+ {{ block.super }}
+{% endblock %}
+
+{% block page_audio %}
+ {{ block.super }}
+{% endblock %}
+
+{% block page_slider %}
+ {{ block.super }}
+{% endblock %}
+
+{% block page_video %}
+ {{ block.super }}
+{% endblock %}
+
+{% block page_file %}
+ {{ block.super }}
+{% endblock %}
+
+{% block page_sub_content %}
+ {{ block.super }}
+{% endblock %}
{% extends "base.html" %}
-{% load i18n mezzanine_tags keyword_tags pages_tags %}
+{% load i18n mezzanine_tags keyword_tags organization_tags pages_tags %}
{% block meta_title %}{{ page.meta_title }}{% endblock %}
{{ page.content }}
{% endblock %}
{% block page_link %}
+ {% with object.links.all as links %}
+ {% if links %}
+ {% include 'core/inc/link.html' %}
+ {% endif %}
+ {% endwith %}
{% endblock %}
{% block page_audio %}
+ {% with object.audios.all as audios %}
+ {% if audios %}
+ {% include 'core/inc/audio.html' %}
+ {% endif %}
+ {% endwith %}
{% endblock %}
</div>
</div>
{% block page_slider %}
+ {% with object.images.all|get_type:'page_slider' as slider_images %}
+ {% if slider_images %}
+ {% include 'core/inc/slider.html' %}
+ {% endif %}
+ {% endwith %}
{% endblock %}
{% block page_video %}
+ {% with object.videos.all as videos %}
+ {% if videos %}
+ {% include 'core/inc/slider_video.html' %}
+ {% endif %}
+ {% endwith %}
{% endblock %}
{% block page_person_list %}
{% endblock %}
+ {% block page_file %}
+ {% with object.files.all as files %}
+ {% if files %}
+ {% include 'core/inc/files.html' %}
+ {% endif %}
+ {% endwith %}
+ {% endblock %}
{% block products %}
{% endblock %}
{% block page_sub_content %}
+ {% with object.blocks.all as blocks %}
+ {% include "core/inc/block.html" %}
+ {% endwith %}
{% endblock %}
{% block page_related_content %}
{% endblock %}