summaryrefslogtreecommitdiffstats
path: root/templates/public
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-02-01 05:01:15 +0100
committerDan McGee <dan@archlinux.org>2010-02-01 05:01:15 +0100
commitc096ee658ece01c3d7a9a819a1354f352378a00d (patch)
treee012f6197e31fb6b63a7be8d16d0e2a69c533c3e /templates/public
parentab3b63b5098055d2a11e085e0f804809798a0b77 (diff)
downloadarchweb-c096ee658ece01c3d7a9a819a1354f352378a00d.tar.gz
archweb-c096ee658ece01c3d7a9a819a1354f352378a00d.tar.xz
Dev list: use username as link anchor
Guaranteed unique, and also a whole lot less likely to break validation given we have several users with special characters (and even spaces) in their first names. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/public')
-rw-r--r--templates/public/developer_list.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/public/developer_list.html b/templates/public/developer_list.html
index c294dc7..662a21e 100644
--- a/templates/public/developer_list.html
+++ b/templates/public/developer_list.html
@@ -1,7 +1,7 @@
<br /><br />
<div id="devlist">
{% for dev in dev_list %}
- <a href="#{{ dev.first_name}}{{ dev.last_name.0|capfirst}}">{{ dev.first_name }}{{ dev.last_name.0|capfirst}}</a> &nbsp;
+ <a href="#{{ dev.username }}">{{ dev.first_name }}{{ dev.last_name.0|capfirst}}</a> &nbsp;
{% endfor %}
</div><br /><br />
@@ -11,7 +11,7 @@
<td class="devpic">
<img src="{{ dev.get_profile.picture.url }}" height="175" width="175" style="border:1px solid black" alt="Image for {{ dev.get_profile.alias }}"/>
</td><td>
- <a name="{{ dev.first_name }}{{ dev.last_name.0|capfirst}}" />
+ <a name="{{ dev.username }}" />
{% autoescape off %}
<table class="deventry" cellspacing="5">
<tr>