damned-lies r1383 - in trunk: . teams templates/teams
- From: claudep svn gnome org
- To: svn-commits-list gnome org
- Subject: damned-lies r1383 - in trunk: . teams templates/teams
- Date: Thu, 22 Jan 2009 19:34:04 +0000 (UTC)
Author: claudep
Date: Thu Jan 22 19:34:04 2009
New Revision: 1383
URL: http://svn.gnome.org/viewvc/damned-lies?rev=1383&view=rev
Log:
2009-01-22 Claude Paroz <claude 2xlibre net>
* teams/forms.py: Person name (form label) linked to person page.
* templates/teams/team_detail.html: Form label contains HTML (URL).
Fixes bug #567367.
Modified:
trunk/ChangeLog
trunk/teams/forms.py
trunk/templates/teams/team_detail.html
Modified: trunk/teams/forms.py
==============================================================================
--- trunk/teams/forms.py (original)
+++ trunk/teams/forms.py Thu Jan 22 19:34:04 2009
@@ -9,7 +9,7 @@
choices.append(('remove','Remove From Team'))
for role in roles:
self.fields[str(role.pk)] = forms.ChoiceField(choices=choices,
- label = role.person.name,
+ label = "<a href='%s'>%s</a>" % (role.person.get_absolute_url(), role.person.name),
initial=role.role)
self.fields['form_type'] = forms.CharField(widget=forms.HiddenInput,
initial=roles[0].role)
Modified: trunk/templates/teams/team_detail.html
==============================================================================
--- trunk/templates/teams/team_detail.html (original)
+++ trunk/templates/teams/team_detail.html Thu Jan 22 19:34:04 2009
@@ -67,7 +67,7 @@
<form action="#" method="POST">
<ul>
{% for field in group.form.get_fields %}
- <li>{{ field.label }} {{ field }}</li>
+ <li>{{ field.label|safe }} {{ field }}</li>
{% endfor %}
</ul>
{{ group.form.form_type }}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]