{% extends "richie/fullwidth.html" %} {% load cms_tags extra_tags i18n pagination_tags static thumbnail %} {% block meta_html_default %} {% if not current_page|is_empty_placeholder:"bio" %} {% endif %} {% endblock meta_html_default %} {% block meta_rdfa_context %} {% get_placeholder_plugins "portrait" as og_image_plugins %} {% blockplugin og_image_plugins.0 %} {% thumbnail instance.picture 200x200 replace_alpha='#FFFFFF' crop upscale subject_location=instance.picture.subject_location as thumb %} {% endblockplugin %} {% if not current_page|is_empty_placeholder:"bio" %} {% endif %} {% endblock meta_rdfa_context %} {% block body_rdfa %} vocab="https://schema.org/" typeof="Person"{% endblock body_rdfa %} {% block subheader %}
{% block breadcrumbs %} {% include "menu/breadcrumbs.html" %} {% endblock breadcrumbs %} {% block subheader_content %}{% spaceless %} {% with person=current_page.person header_level=2 %} {% if person %}

{% render_model current_page "title" %}

{% if current_page.publisher_is_draft or not current_page|is_empty_placeholder:"categories" %}
{% with category_variant="badge" %} {% placeholder "categories" or %} {% trans "No associated categories" %} {% endplaceholder %} {% endwith %}
{% endif %}
{% placeholder "bio" or %}

{% trans "Enter your bio here..." %}

{% endplaceholder %}
{% get_placeholder_plugins "portrait" as plugins or %}
{% endget_placeholder_plugins %} {% blockplugin plugins.0 %}
{% if instance.picture.default_alt_text %}{{ instance.picture.default_alt_text }}{% else %}{% blocktrans with title=current_page.get_title %}{{ title }} avatar{% endblocktrans %}{% endif %}
{% endblockplugin %}
{% endif %} {% endwith %} {% endspaceless %}{% endblock subheader_content %}
{% endblock subheader %} {% block content %}{% spaceless %} {% with person=current_page.person header_level=2 %} {% if person %}
{% if current_page.publisher_is_draft or not current_page|is_empty_placeholder:"maincontent" %}
{% placeholder "maincontent" %}
{% endif %} {% if current_page.publisher_is_draft or not current_page|is_empty_placeholder:"organizations" %}

{% trans "Organizations" %}

{% placeholder "organizations" or %}

{% trans "No associated organizations" %}

{% endplaceholder %}
{% endif %} {% with courses=person.get_courses %} {% if courses %} {% autopaginate courses GLIMPSE_PAGINATION_COURSES %}

{% trans "Courses" %}

{% for course in page_obj.object_list %} {% include "courses/cms/fragment_course_glimpse.html" with course=course %} {% endfor %} {% if paginator.num_pages > 1 %} {% paginate using "richie/pagination.html" %} {% endif %}
{% endif %} {% endwith %} {% with blogposts=person.get_blogposts|order_by:"-extended_object__publication_date" %} {% if blogposts %} {% autopaginate blogposts GLIMPSE_PAGINATION_BLOGPOSTS %}

{% trans "Blogposts" %}

{% for blogpost in page_obj.object_list %} {% include "courses/cms/fragment_blogpost_glimpse.html" with blogpost=blogpost %} {% endfor %} {% if paginator.num_pages > 1 %} {% paginate using "richie/pagination.html" %} {% endif %}
{% endif %} {% endwith %}
{% else %} {% include "courses/cms/fragment_error_detail_template_banner.html" with model="person" %} {% endif %} {% endwith %} {% endspaceless %}{% endblock content %}