Merge lp:~canonical-isd-hackers/canonical-identity-provider/fix-647189 into lp:canonical-identity-provider/release

Proposed by Łukasz Czyżykowski
Status: Merged
Approved by: Ricardo Kirkner
Approved revision: no longer in the source branch.
Merged at revision: 131
Proposed branch: lp:~canonical-isd-hackers/canonical-identity-provider/fix-647189
Merge into: lp:canonical-identity-provider/release
Diff against target: 59 lines (+18/-2)
3 files modified
identityprovider/branding.py (+6/-0)
identityprovider/templates/registration/logout.html (+2/-2)
identityprovider/tests/test_branding.py (+10/-0)
To merge this branch: bzr merge lp:~canonical-isd-hackers/canonical-identity-provider/fix-647189
Reviewer Review Type Date Requested Status
Ricardo Kirkner (community) Approve
Review via email: mp+36872@code.launchpad.net

Commit message

Fix typo and improve text on logout page.

Description of the change

This branch fixes typo in table header and also provides better text message on the logout page.

To post a comment you must log in.
Revision history for this message
Ricardo Kirkner (ricardokirkner) wrote :

The change looks good, provided the tests are passing, I approve.

review: Approve
Revision history for this message
Ricardo Kirkner (ricardokirkner) wrote :

Actually, I take that back. A test that ensures that the branding object has the logout attribute would be nice.

review: Needs Fixing
Revision history for this message
Ricardo Kirkner (ricardokirkner) wrote :

Ok, thanks.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'identityprovider/branding.py'
2--- identityprovider/branding.py 2010-08-26 09:50:39 +0000
3+++ identityprovider/branding.py 2010-09-28 15:13:42 +0000
4@@ -25,6 +25,9 @@
5 'correctly and try again.')
6 oops_error = _('Sorry, something just went wrong in Launchpad Login '
7 'Service.')
8+ logout = _('You are now logged out of the Launchpad Login Service '
9+ 'website. However, you have not been automatically logged '
10+ 'out of every website that uses this website.')
11
12
13 class Ubuntu(object):
14@@ -47,5 +50,8 @@
15 'address correctly and try again.')
16 oops_error = _('Sorry, something just went wrong in Ubuntu Single Sign '
17 'On.')
18+ logout = _('You are now logged out of the Ubuntu Single Sign On (SSO) '
19+ 'website. However, you have not been automatically logged '
20+ 'out of every website that uses this SSO website.')
21
22 current_brand = globals()[settings.BRAND]()
23
24=== modified file 'identityprovider/templates/registration/logout.html'
25--- identityprovider/templates/registration/logout.html 2010-09-21 17:09:05 +0000
26+++ identityprovider/templates/registration/logout.html 2010-09-28 15:13:42 +0000
27@@ -13,7 +13,7 @@
28 {% endblock %}
29
30 {% block content %}
31- <p>{% trans "You have been logged out." %}
32+ <p>{{ brand.logout }}
33 {% if return_to_url %}
34 {% blocktrans with return_to_url as url and return_to_site_name as site_name %}
35 <span class="big">Return to <a href="{{ return_to_url }}">{{ site_name }}</a></span>{% endblocktrans %}
36@@ -22,7 +22,7 @@
37
38 {% if other_sites %}
39 <div>
40- <h2 class="main">{% trans "Sites you may still be logged to" %}</h2>
41+ <h2 class="main">{% trans "Sites you may still be logged into" %}</h2>
42 <table class="listing">
43 <thead>
44 <tr>
45
46=== added file 'identityprovider/tests/test_branding.py'
47--- identityprovider/tests/test_branding.py 1970-01-01 00:00:00 +0000
48+++ identityprovider/tests/test_branding.py 2010-09-28 15:13:42 +0000
49@@ -0,0 +1,10 @@
50+from unittest import TestCase
51+
52+from identityprovider.branding import Ubuntu, Launchpad
53+
54+
55+class BrandingTestCase(TestCase):
56+
57+ def test_branding_class_has_logout_attribute(self):
58+ self.assertTrue(hasattr(Ubuntu, 'logout'))
59+ self.assertTrue(hasattr(Launchpad, 'logout'))