Skip to content
This repository has been archived by the owner on Jan 31, 2019. It is now read-only.

Commit

Permalink
Merge pull request #22 from nigelbabu/ja-fix
Browse files Browse the repository at this point in the history
Correct the support.mozilla.com URL in mobile version
  • Loading branch information
davedash committed Aug 12, 2011
2 parents 60a7b2b + a62d74d commit b3c1a6f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/feedback/templates/feedback/mobile/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ <h1>{{ _('Give Feedback') }}</h1>
<div class="field">
<p class="warning">
<span>
{% trans url='http://support.mozilla.com/{{ LANG }}/' %}
{% trans url='http://support.mozilla.com/' + LANG %}
If you need help or have a problem with Firefox,
please visit <a href="{{ url }}">Firefox Support</a>.
please visit <a id="sumo-url" href="{{ url }}/">Firefox Support</a>.
{% endtrans %}
</span>
</p>
Expand Down
9 changes: 9 additions & 0 deletions apps/feedback/tests/test_feedback_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,3 +169,12 @@ def test_feedback_index(self):
HTTP_USER_AGENT=(self.FX_UA % '20.0b2'),
follow=True)
eq_(r.status_code, 200)

def test_mobile_sumo_url(self):
"""Test the sumo url in the mobile version."""
r = self.client.get(reverse('feedback'),
HTTP_USER_AGENT=(self.FX_UA % '20.0b2'),
SITE_ID=settings.MOBILE_SITE_ID)
doc = pq(r.content)
sumo_url = doc('#sumo-url')
eq_(sumo_url.attr('href'), 'http://support.mozilla.com/en-US/')

0 comments on commit b3c1a6f

Please sign in to comment.