-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #96 from City-of-Helsinki/feature/js-free-logout-w…
…arning Implement new logout screen
- Loading branch information
Showing
15 changed files
with
630 additions
and
196 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from django.utils.translation import gettext, pgettext | ||
from social_core.backends.facebook import FacebookOAuth2 | ||
|
||
|
||
class Facebook(FacebookOAuth2): | ||
user_facing_url = 'https://www.facebook.com' | ||
name_baseform = gettext('Facebook') | ||
name_access = pgettext('access to []', 'Facebook') | ||
name_genetive = pgettext('genetive form', 'Facebook') | ||
name_logged_in_to = pgettext('logged in to []', 'Facebook') | ||
name_logout_from = pgettext('log out from []', 'Facebook') | ||
name_goto = pgettext('go to []', 'Facebook') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from django.utils.translation import gettext, pgettext | ||
from social_core.backends.github import GithubOAuth2 | ||
|
||
|
||
class Github(GithubOAuth2): | ||
user_facing_url = 'https://github.com' | ||
name_baseform = gettext('GitHub') | ||
name_access = pgettext('access to []', 'GitHub') | ||
name_genetive = pgettext('genetive form', 'GitHub') | ||
name_logged_in_to = pgettext('logged in to []', 'GitHub') | ||
name_logout_from = pgettext('log out from []', 'GitHub') | ||
name_goto = pgettext('go to []', 'GitHub') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
from django.utils.translation import gettext, pgettext | ||
from social_core.backends.google import GoogleOAuth2 | ||
|
||
|
||
class GoogleOAuth2CustomName(GoogleOAuth2): | ||
name = 'google' | ||
user_facing_url = 'https://myaccount.google.com/' | ||
name_baseform = gettext('Google') | ||
name_access = pgettext('access to []', 'Google') | ||
name_genetive = pgettext('genetive form', 'Google') | ||
name_logged_in_to = pgettext('logged in to []', 'Google') | ||
name_logout_from = pgettext('log out from []', 'Google') | ||
name_goto = pgettext('go to []', 'Google') |
Oops, something went wrong.