Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

Commit

Permalink
put the |f against the string (bug 564140)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbalogh committed May 6, 2010
1 parent e386ab9 commit efd6451
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apps/addons/templates/addons/review_add_box.html
Expand Up @@ -57,7 +57,7 @@ <h3>{{ _('What do you think?') }}</h3>
<p><a href="{{ remora_url('/pages/review_guide') }}">{{ _('Review Guidelines') }}</a></p>
<p>
{# TODO reverse url #}
<a href="{{ remora_url('/reviews/add/{0}')|f(addon.id) }}">
<a href="{{ remora_url('/reviews/add/{0}'|f(addon.id)) }}">
{{ _('Detailed Review') }}</a>
</p>

Expand Down
8 changes: 8 additions & 0 deletions apps/addons/tests/test_views.py
Expand Up @@ -300,6 +300,14 @@ def test_remove_tag_button(self):
doc = pq(r.content)
assert len(doc('#tags li input.removetag'))

def test_detailed_review_link(self):
# TODO(jbalogh): use reverse when we drop remora.
self.client.login(username='regular@mozilla.com', password='password')
r = self.client.get(reverse('addons.detail', args=[3615]))
doc = pq(r.content)
href = doc('#review-box a[href*="reviews/add"]').attr('href')
assert href.endswith('/reviews/add/3615'), href


class TestTagsBox(test_utils.TestCase):
fixtures = ['base/addontag']
Expand Down

0 comments on commit efd6451

Please sign in to comment.