|
| 1 | +{% extends "group/group_base.html" %} |
| 2 | +{# Copyright The IETF Trust 2015, All Rights Reserved #} |
| 3 | +{% load origin staticfiles %} |
| 4 | + |
| 5 | +{% block morecss %} |
| 6 | +.well { max-width: 150px;} |
| 7 | +{% endblock %} |
| 8 | + |
| 9 | +{% block title %}{{ group }} ({{group.acronym}}) Photos{% endblock %} |
| 10 | + |
| 11 | +{% block bodyAttrs %}data-spy="scroll" data-target="#affix"{% endblock %} |
| 12 | + |
| 13 | +{% block group_content %} |
| 14 | + {% origin %} |
| 15 | + {% load ietf_filters %} |
| 16 | + |
| 17 | + <h1>{{ group }} ({{group.acronym}}) Photos</h1> |
| 18 | + |
| 19 | + {% regroup roles by name as role_groups %} |
| 20 | + <div class="col-md-10"> |
| 21 | + {% for role_name in role_groups %} |
| 22 | + <div class="row anchor-target" id="{{role_name.grouper|urlencode}}"> |
| 23 | + <div class="panel panel-default"> |
| 24 | + <div class="panel-heading">{{role_name.grouper}}{{role_name.list|pluralize}}</div> |
| 25 | + <div class="panel-body"> |
| 26 | + <ul class="list-inline"> |
| 27 | + {% regroup role_name.list by person as person_groups %} |
| 28 | + {% for person_with_groups in person_groups %} |
| 29 | + <li> |
| 30 | + {% if person_with_groups.grouper.photo %}<a href="{% url 'ietf.person.views.profile' email_or_name=person_with_groups.grouper.plain_name %}">{% endif %} |
| 31 | + <div class="well photo-thumbnail"> |
| 32 | + <div> |
| 33 | + {% if person_with_groups.grouper.photo_thumb %} |
| 34 | + <img width=100 src="{{person_with_groups.grouper.photo_thumb.url}}" alt="Photo of {{person_with_groups.grouper.name}}" /> |
| 35 | + {% else %} |
| 36 | + <img width=100 src="{{ MEDIA_URL }}photos/nopictureavailable.jpg" alt="No picture available"/> |
| 37 | + {% endif %} |
| 38 | + </div> |
| 39 | + <div > |
| 40 | + <strong>{{person_with_groups.grouper.plain_name}}</strong> |
| 41 | + </div> |
| 42 | + </div> |
| 43 | + {% if person_with_groups.grouper.photo %}</a>{% endif %} |
| 44 | + </li> |
| 45 | + {% endfor %} |
| 46 | + </ul> |
| 47 | + </div> |
| 48 | + </div> |
| 49 | + </div> |
| 50 | + {% endfor %} |
| 51 | + </div> |
| 52 | + |
| 53 | + <div class="col-md-1 hidden-print bs-docs-sidebar" id="affix"> |
| 54 | + <ul class="nav nav-pills nav-stacked small fixed" data-spy="affix"> |
| 55 | + {% for role_name in role_groups %} |
| 56 | + <li><a href="#{{role_name.grouper|urlencode}}">{{role_name.grouper}}</a></li> |
| 57 | + {% endfor %} |
| 58 | + </ul> |
| 59 | + </div> |
| 60 | + |
| 61 | +{% endblock %} |
0 commit comments