|
| 1 | +{% extends "base.html" %} |
| 2 | +{# Copyright The IETF Trust 2015, All Rights Reserved #} |
| 3 | +{% load origin staticfiles %} |
| 4 | +{% load ietf_filters %} |
| 5 | + |
| 6 | +{% block morecss %} |
| 7 | + .well { max-width: 150px;} |
| 8 | + .nav-tabs { position: relative; z-index: 100; } |
| 9 | + .anchor-target { position: relative; z-index: 0; } |
| 10 | +{% endblock %} |
| 11 | + |
| 12 | +{% block title %}{{ group_type | upper }} {{ role }} Photos{% endblock %} |
| 13 | + |
| 14 | +{% block bodyAttrs %}data-spy="scroll" data-target="#affix"{% endblock %} |
| 15 | + |
| 16 | +{% block content %} |
| 17 | + {% origin %} |
| 18 | + |
| 19 | + <h1>{{ group_type | upper }} {{ role }} Photos</h1> |
| 20 | + |
| 21 | + <ul class="nav nav-tabs" role="tablist"> |
| 22 | + <li ><a href="/iesg/agenda/documents/">IESG Agenda</a></li> |
| 23 | + <li ><a href="/iesg/agenda/documents/">Documents on future agendas</a></li> |
| 24 | + <li ><a href="/iesg/discusses/">DISCUSS positions</a></li> |
| 25 | + <li class="active"><a href="{% url "ietf.iesg.views.photos" %}">IESG Photos</a></li> |
| 26 | + </ul> |
| 27 | + |
| 28 | + {% regroup roles by group.acronym as alphabet_blocks %} |
| 29 | + <div class="col-md-11" > |
| 30 | + {% for letter in alphabet_blocks %} |
| 31 | + <div class="row anchor-target" id="{{letter.grouper}}"> |
| 32 | + <div class="panel panel-default"> |
| 33 | + <div class="panel-heading">{{letter.grouper}}</div> |
| 34 | + <div class="panel-body"> |
| 35 | + <ul class="list-inline"> |
| 36 | + {% regroup letter.list by person as person_groups %} |
| 37 | + {% for person_with_groups in person_groups %} |
| 38 | + <li> |
| 39 | + <div class="well photo-thumbnail"> |
| 40 | + <div> |
| 41 | + {% if person_with_groups.grouper.photo_thumb %} |
| 42 | + <a href="{{person_with_groups.grouper.photo.url}}"> |
| 43 | + <img width=100px src="{{person_with_groups.grouper.photo_thumb.url}}"/> |
| 44 | + </a> |
| 45 | + {% else %} |
| 46 | + <img width=100px src="{{ MEDIA_URL }}photos/nopictureavailable.jpg"/> |
| 47 | + {% endif %} |
| 48 | + </div> |
| 49 | + <div class="photo-name"> |
| 50 | + {% if person_with_groups.grouper.photo %} |
| 51 | + <a href="{{person_with_groups.grouper.photo.url}}"><strong>{{person_with_groups.grouper.plain_name}}</strong></a> |
| 52 | + {% else %} |
| 53 | + <strong>{{person_with_groups.grouper.plain_name}}</strong> |
| 54 | + {% endif %} |
| 55 | + </div> |
| 56 | + <div class="photo-role-list"> |
| 57 | + {% for role in person_with_groups.list %} |
| 58 | + {{role.group.acronym}} |
| 59 | + {% endfor %} |
| 60 | + </div> |
| 61 | + </div> |
| 62 | + </li> |
| 63 | + {% endfor %} |
| 64 | + </ul> |
| 65 | + </div> |
| 66 | + </div> |
| 67 | + </div> |
| 68 | + {% endfor %} |
| 69 | + </div> |
| 70 | + |
| 71 | + <div class="col-md-1 hidden-print bs-docs-sidebar" id="affix"> |
| 72 | + <ul class="nav nav-pills nav-stacked small fixed" data-spy="affix"> |
| 73 | + {% for letter in alphabet_blocks %} |
| 74 | + <li><a href="#{{letter.grouper}}">{{letter.grouper}}</a></li> |
| 75 | + {% endfor %} |
| 76 | + </ul> |
| 77 | + </div> |
| 78 | +{% endblock %} |
0 commit comments