Skip to content

Commit c8ade2d

Browse files
committed
Tweaked the chair_photos view.
- Legacy-Id: 11265
1 parent ab095fc commit c8ade2d

2 files changed

Lines changed: 18 additions & 5 deletions

File tree

ietf/static/ietf/css/ietf.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,3 +459,8 @@ label#list-feeds {
459459
.email-subscription button[type=submit] {
460460
margin-left: 3em;
461461
}
462+
463+
.photo-name {
464+
height: 3em;
465+
}
466+

ietf/templates/group/chair_photos.html

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,24 @@ <h1>Chair Photos</h1>
2727
{% regroup letter.list by person as person_groups %}
2828
{% for person_with_groups in person_groups %}
2929
<li>
30-
<div class="well">
30+
<div class="well photo-thumbnail">
31+
<div>
3132
{% if person_with_groups.grouper.photo_thumb %}
32-
<img width=100px src="{{person_with_groups.grouper.photo_thumb.url}}"/>
33+
<a href="{{person_with_groups.grouper.photo.url}}">
34+
<img width=100px src="{{person_with_groups.grouper.photo_thumb.url}}"/>
35+
</a>
36+
{% else %}
37+
<img width=100px src="{{ MEDIA_URL }}photos/nopictureavailable.jpg"/>
3338
{% endif %}
39+
</div>
40+
<div class="photo-name">
3441
{% if person_with_groups.grouper.photo %}
35-
<div><a href="{{person_with_groups.grouper.photo.url}}"><strong>{{person_with_groups.grouper.plain_name}}</strong></a></div>
42+
<a href="{{person_with_groups.grouper.photo.url}}"><strong>{{person_with_groups.grouper.plain_name}}</strong></a>
3643
{% else %}
37-
<div><strong>{{person_with_groups.grouper.plain_name}}</strong></div>
44+
<strong>{{person_with_groups.grouper.plain_name}}</strong>
3845
{% endif %}
39-
<div>
46+
</div>
47+
<div class="photo-role-list">
4048
{% for role in person_with_groups.list %}
4149
{{role.group.acronym}}
4250
{% endfor %}

0 commit comments

Comments
 (0)