From 087c543dfda641b9f6fda70b2f00cad58cdc833f Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Thu, 9 Jun 2016 21:46:39 +0000 Subject: [PATCH] Changed the links to profile pages to apply to both photo and name, for an easier click target. Added links to group names. - Legacy-Id: 11296 --- ietf/templates/group/all_photos.html | 14 +++--- ietf/templates/group/group_photos.html | 61 ++++++++++++++++++++++++++ ietf/templates/iesg/photos.html | 16 +++---- 3 files changed, 72 insertions(+), 19 deletions(-) create mode 100644 ietf/templates/group/group_photos.html 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 %}