Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
10cb314a
Commit
10cb314a
authored
9 years ago
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add verbose names and icons for mor auth means
Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
7e92eda1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
weblate/accounts/templatetags/authnames.py
weblate/accounts/templatetags/authnames.py
+7
-0
No files found.
weblate/accounts/templatetags/authnames.py
View file @
10cb314a
...
...
@@ -26,15 +26,22 @@ from django.utils.safestring import mark_safe
register
=
template
.
Library
()
SOCIALS
=
{
'amazon'
:
{
'name'
:
'Amazon'
,
'fa_icon'
:
'amazon'
},
'google'
:
{
'name'
:
'Google'
,
'fa_icon'
:
'google'
},
'google-oauth2'
:
{
'name'
:
'Google'
,
'fa_icon'
:
'google'
},
'google-plus'
:
{
'name'
:
'Google+'
,
'fa_icon'
:
'google-plus'
},
'github'
:
{
'name'
:
'GitHub'
,
'fa_icon'
:
'github'
},
'github-enterprise'
:
{
'name'
:
'GitHub Enterprise'
,
'fa_icon'
:
'github'
},
'bitbucket'
:
{
'name'
:
'Bitbucket'
,
'fa_icon'
:
'bitbucket'
},
'bitbucket-oauth2'
:
{
'name'
:
'Bitbucket'
,
'fa_icon'
:
'bitbucket'
},
'coinbase'
:
{
'name'
:
'Coinbase'
,
'fa_icon'
:
'bitcoin'
},
'email'
:
{
'name'
:
'Email'
,
'fa_icon'
:
'at'
},
'opensuse'
:
{
'name'
:
'openSUSE'
,
'fl_icon'
:
'opensuse'
},
'ubuntu'
:
{
'name'
:
'Ubuntu'
,
'fl_icon'
:
'ubuntu'
},
'fedora'
:
{
'name'
:
'Fedora'
,
'fl_icon'
:
'fedora'
},
'facebook'
:
{
'name'
:
'Facebook'
,
'fa_icon'
:
'facebook'
},
'twitter'
:
{
'name'
:
'Twitter'
,
'fa_icon'
:
'twitter'
},
'stackoverflow'
:
{
'name'
:
'Stack Overflow'
,
'fa_icon'
:
'stackoverflow'
},
}
FA_SOCIAL_TEMPLATE
=
u'<i class="fa fa-lg fa-4x fa-wl-social fa-{fa_icon}"></i><br />{name}'
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment