Tweaked the chair_photos view.
- Legacy-Id: 11265
This commit is contained in:
parent
ab095fca5b
commit
c8ade2dff5
|
@ -459,3 +459,8 @@ label#list-feeds {
|
||||||
.email-subscription button[type=submit] {
|
.email-subscription button[type=submit] {
|
||||||
margin-left: 3em;
|
margin-left: 3em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.photo-name {
|
||||||
|
height: 3em;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -27,16 +27,24 @@
|
||||||
{% regroup letter.list by person as person_groups %}
|
{% regroup letter.list by person as person_groups %}
|
||||||
{% for person_with_groups in person_groups %}
|
{% for person_with_groups in person_groups %}
|
||||||
<li>
|
<li>
|
||||||
<div class="well">
|
<div class="well photo-thumbnail">
|
||||||
|
<div>
|
||||||
{% if person_with_groups.grouper.photo_thumb %}
|
{% if person_with_groups.grouper.photo_thumb %}
|
||||||
<img width=100px src="{{person_with_groups.grouper.photo_thumb.url}}"/>
|
<a href="{{person_with_groups.grouper.photo.url}}">
|
||||||
{% endif %}
|
<img width=100px src="{{person_with_groups.grouper.photo_thumb.url}}"/>
|
||||||
{% if person_with_groups.grouper.photo %}
|
</a>
|
||||||
<div><a href="{{person_with_groups.grouper.photo.url}}"><strong>{{person_with_groups.grouper.plain_name}}</strong></a></div>
|
|
||||||
{% else %}
|
{% else %}
|
||||||
<div><strong>{{person_with_groups.grouper.plain_name}}</strong></div>
|
<img width=100px src="{{ MEDIA_URL }}photos/nopictureavailable.jpg"/>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div>
|
</div>
|
||||||
|
<div class="photo-name">
|
||||||
|
{% if person_with_groups.grouper.photo %}
|
||||||
|
<a href="{{person_with_groups.grouper.photo.url}}"><strong>{{person_with_groups.grouper.plain_name}}</strong></a>
|
||||||
|
{% else %}
|
||||||
|
<strong>{{person_with_groups.grouper.plain_name}}</strong>
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
<div class="photo-role-list">
|
||||||
{% for role in person_with_groups.list %}
|
{% for role in person_with_groups.list %}
|
||||||
{{role.group.acronym}}
|
{{role.group.acronym}}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Loading…
Reference in a new issue