31b38b49c3
Quite a few changes here. Unify the developer view pages into one actual django view and template, and use different dispatches from urls.py to set up the three different queries for who to display and what message and group name to show. Signed-off-by: Dan McGee <dan@archlinux.org>
60 lines
2.3 KiB
HTML
60 lines
2.3 KiB
HTML
<div id="devlist">
|
|
{% for dev in dev_list %}
|
|
<a href="#{{ dev.username }}">{{ dev.first_name }}{{ dev.last_name.0|capfirst}}</a>
|
|
{% endfor %}
|
|
</div><br /><br />
|
|
|
|
<table class="center" cellpadding="20">
|
|
{% for dev in dev_list %}
|
|
{% with dev.get_profile as prof %}
|
|
<tr>
|
|
<td class="devpic">
|
|
<img src="{{ prof.picture.url }}" height="175" width="175" style="border:1px solid black" alt="Image for {{ prof.alias }}"/>
|
|
</td><td>
|
|
<a name="{{ dev.username }}" />
|
|
<table class="deventry" cellspacing="5">
|
|
<tr>
|
|
<th>Name:</th>
|
|
<td>{{ dev.get_full_name }}</td>
|
|
</tr><tr>
|
|
<th>Alias:</th>
|
|
<td>{{ prof.alias }}</td>
|
|
</tr><tr>
|
|
<th>Email:</th>
|
|
<td>{{ prof.public_email }}</td>
|
|
</tr><tr>
|
|
<th>Other Contact:</th>
|
|
<td>{{ prof.other_contact }}</td>
|
|
</tr><tr>
|
|
<th>Roles:</th>
|
|
<td>{{ prof.roles }}<br />
|
|
</td>
|
|
</tr><tr>
|
|
<th>Website:</th>
|
|
<td>{% if prof %}<a href="{{ prof.website }}">{{ prof.website }}</a>{% endif %}</td>
|
|
</tr><tr>
|
|
<th>Occupation:</th>
|
|
<td>{{ prof.occupation }}</td>
|
|
</tr><tr>
|
|
<th>YOB:</th>
|
|
<td>{% if prof.yob %}{{ prof.yob }}{% endif %}</td>
|
|
</tr><tr>
|
|
<th>Location:</th>
|
|
<td>{{ prof.location }}</td>
|
|
</tr><tr>
|
|
<th>Languages:</th>
|
|
<td>{{ prof.languages }}</td>
|
|
</tr><tr>
|
|
<th>Interests:</th>
|
|
<td>{{ prof.interests }}</td>
|
|
</tr><tr>
|
|
<th>Favorite Distros:</th>
|
|
<td>{{ prof.favorite_distros }}</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
{% endwith %}
|
|
{% endfor %}
|
|
</table>
|