diff --git a/ietf/templates/group/all_photos.html b/ietf/templates/group/all_photos.html index 5ea7c09c2..44d5b1bf6 100644 --- a/ietf/templates/group/all_photos.html +++ b/ietf/templates/group/all_photos.html @@ -28,25 +28,21 @@ {% for person_with_groups in person_groups %}
  • + {% if person_with_groups.grouper.photo %}{% endif %}
    {% if person_with_groups.grouper.photo_thumb %} - - - + Photo of {{person_with_groups.grouper.name}} {% else %} - + No picture available {% endif %}
    - {% if person_with_groups.grouper.photo %} - {{person_with_groups.grouper.plain_name}} - {% else %} {{person_with_groups.grouper.plain_name}} - {% endif %}
    + {% if person_with_groups.grouper.photo %}{% endif %}
    {% for role in person_with_groups.list %} - {{role.group.acronym}} + {{role.group.acronym}} {% endfor %}
    diff --git a/ietf/templates/group/group_photos.html b/ietf/templates/group/group_photos.html new file mode 100644 index 000000000..5392a1b48 --- /dev/null +++ b/ietf/templates/group/group_photos.html @@ -0,0 +1,61 @@ +{% extends "group/group_base.html" %} +{# Copyright The IETF Trust 2015, All Rights Reserved #} +{% load origin staticfiles %} + +{% block morecss %} +.well { max-width: 150px;} +{% endblock %} + +{% block title %}{{ group }} ({{group.acronym}}) Photos{% endblock %} + +{% block bodyAttrs %}data-spy="scroll" data-target="#affix"{% endblock %} + +{% block group_content %} + {% origin %} + {% load ietf_filters %} + +

    {{ group }} ({{group.acronym}}) Photos

    + + {% regroup roles by name as role_groups %} +
    + {% for role_name in role_groups %} +
    +
    +
    {{role_name.grouper}}{{role_name.list|pluralize}}
    +
    + +
    +
    +
    + {% endfor %} +
    + +
    + +
    + +{% endblock %} diff --git a/ietf/templates/iesg/photos.html b/ietf/templates/iesg/photos.html index ce0321516..01a6eb1f5 100644 --- a/ietf/templates/iesg/photos.html +++ b/ietf/templates/iesg/photos.html @@ -36,29 +36,25 @@ {% regroup letter.list by person as person_groups %} {% for person_with_groups in person_groups %}
  • + {% if person_with_groups.grouper.photo %}{% endif %}
    {% if person_with_groups.grouper.photo_thumb %} - - - + Photo of {{person_with_groups.grouper.name}} {% else %} - + No photo available {% endif %}
    - {% if person_with_groups.grouper.photo %} - {{person_with_groups.grouper.plain_name}} - {% else %} - {{person_with_groups.grouper.plain_name}} - {% endif %} + {{person_with_groups.grouper.plain_name}}
    {% for role in person_with_groups.list %} - {{role.group.acronym}} + {{role.group.acronym}} {% endfor %}
    + {% if person_with_groups.grouper.photo %}{% endif %}
  • {% endfor %}