Skip to content

Commit

Permalink
cf brutasse#37 - Fix the broken nearest persons list in profile page
Browse files Browse the repository at this point in the history
It has been broken in the initial commit.
  • Loading branch information
yohanboniface committed Sep 24, 2012
1 parent b811b37 commit 61d03cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions djangopeople/djangopeople/templates/profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,11 @@ <h2>{% blocktrans with name=person.user.first_name %}{{ name }}'s Django portfol
</div>

<div class="secondary">
{% if nearest_people %}
{% if people_list %}
<h2>{% blocktrans with name=person.user.first_name %}People near {{ name }}{% endblocktrans %}</h2>

<ul class="detailsList">
{% for person in nearest_people %}
{% for person in people_list %}
<li>
<img src="{% gravatar person.user.email 40 %}" alt="{{ person }}" class="main">
<h3><a href="{{ person.get_absolute_url }}">{{ person }}</a></h3>
Expand Down
1 change: 1 addition & 0 deletions djangopeople/djangopeople/tests/tests_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ def test_user_profile(self):
self.assertContains(response, 'cheese-shop')
self.assertContains(response, 'full-time')
self.assertContains(response, 'Vienna, Austria')
self.assertContains(response, 'People near Dave')

def test_irc_active(self):
url = reverse('irc_active')
Expand Down

0 comments on commit 61d03cf

Please sign in to comment.