datatracker/ietf/templates/group/all_photos.html
Lars Eggert a8764f225f Track CSS class name changes in bs5.
- Legacy-Id: 19663
2021-11-15 16:49:09 +00:00

66 lines
3.1 KiB
HTML

{% extends "base.html" %}
{# Copyright The IETF Trust 2015, All Rights Reserved #}
{% load origin static %}
{% block morecss %}
.well { max-width: 150px;}
{% endblock %}
{% block bodyAttrs %}data-bs-spy="scroll" data-bs-target="#affix"{% endblock %}
{% block title %}Chair Photos{% endblock %}
{% block content %}
{% origin %}
{% load ietf_filters %}
<h1>{{ group_type | upper }} {{ role }} Photos</h1>
{% regroup roles by last_initial as alphabet_blocks %}
<div class="col-md-11">
{% for letter in alphabet_blocks %}
<div class="row anchor-target" id="{{letter.grouper}}">
<div class="panel ">
<div class="card-header">{{letter.grouper}}</div>
<div class="card-body">
<ul class="list-inline">
{% regroup letter.list by person as person_groups %}
{% for person_with_groups in person_groups %}
<li class="list-inline-item">
<div class="well photo-thumbnail">
<a href="{% url 'ietf.person.views.profile' email_or_name=person_with_groups.grouper.name %}">
<div>
{% if person_with_groups.grouper.photo_thumb %}
<img width=100 src="{{person_with_groups.grouper.photo_thumb.url}}" alt="Photo of {{person_with_groups.grouper.name}}"/>
{% else %}
<img width=100 src="{{ MEDIA_URL }}photo/nopictureavailable.jpg" alt="No picture available"/>
{% endif %}
</div>
<div class="photo-name">
<strong>{{person_with_groups.grouper.plain_name}}</strong>
</div>
</a>
<div class="photo-role-list">
{% for role in person_with_groups.list %}
<a href="{% url 'ietf.group.views.group_home' acronym=role.group.acronym %}">{{role.group.acronym}}</a>
{% endfor %}
</div>
</div>
</li>
{% endfor %}
</ul>
</div>
</div>
</div>
{% endfor %}
</div>
<div class="col-md-1 d-print-none bs-docs-sidebar" id="affix">
<ul class="nav nav-pills nav-stacked small fixed" data-bs-spy="affix">
{% for letter in alphabet_blocks %}
<li><a href="#{{letter.grouper}}">{{letter.grouper}}</a></li>
{% endfor %}
</ul>
</div>
{% endblock %}