comparison gpp/templates/bio/elsewhere_links.html @ 55:146ded23d05c

#6; Fix elsewhere list display problems. Also fix incorrect XHTML.
author Brian Neal <bgneal@gmail.com>
date Tue, 23 Jun 2009 00:24:09 +0000
parents a39907cd63e2
children 88b2b9cb8c1f
comparison
equal deleted inserted replaced
54:e249b5f9d180 55:146ded23d05c
1 {% if social_nets or ims or websites %} 1 {% if social_nets or ims or websites %}
2 <ul> 2 <ul class="icon-list">
3 {% if social_nets %} 3 {% for net in social_nets %}
4 <li>Social Networks</li>
5 <ul class="icon-list">
6 {% for net in social_nets %}
7 <li><img src="{{ MEDIA_URL }}elsewhere/{{ net.icon_name }}" alt="{{ net.name }}" /> 4 <li><img src="{{ MEDIA_URL }}elsewhere/{{ net.icon_name }}" alt="{{ net.name }}" />
8 <a href="{{ net.url }}">{{ net.name }}</a></li> 5 <a href="{{ net.url }}">{{ net.name }}</a></li>
9 {% endfor %} 6 {% endfor %}
10 </ul> 7 {% for im in ims %}
11 {% endif %}
12 {% if ims %}
13 <li>Instant Messengers</li>
14 <ul class="icon-list">
15 {% for im in ims %}
16 <li><img src="{{ MEDIA_URL }}elsewhere/{{ im.icon_name }}" alt="{{ im.name }}" /> 8 <li><img src="{{ MEDIA_URL }}elsewhere/{{ im.icon_name }}" alt="{{ im.name }}" />
17 <a href="{{ im.url }}">{{ im.name }}</a></li> 9 <a href="{{ im.url }}">{{ im.name }}</a></li>
18 {% endfor %} 10 {% endfor %}
19 </ul> 11 {% for site in websites %}
20 {% endif %}
21 {% if ims %}
22 <li>Websites</li>
23 <ul class="icon-list">
24 {% for site in websites %}
25 <li><img src="{{ MEDIA_URL }}icons/world.png" alt="{{ site.name }}" /> 12 <li><img src="{{ MEDIA_URL }}icons/world.png" alt="{{ site.name }}" />
26 <a href="{{ site.url }}">{{ site.name }}</a></li> 13 <a href="{{ site.url }}">{{ site.name }}</a></li>
27 {% endfor %} 14 {% endfor %}
28 </ul>
29 {% endif %}
30 </ul> 15 </ul>
31 {% endif %} 16 {% endif %}