Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
68ee36e8
Commit
68ee36e8
authored
Jul 13, 2015
by
asadiqbal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update the code as per suggestions
parent
1782f725
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
14 deletions
+8
-14
lms/templates/certificates/_accomplishment-banner.html
+8
-14
No files found.
lms/templates/certificates/_accomplishment-banner.html
View file @
68ee36e8
...
...
@@ -53,7 +53,7 @@ from django.core.urlresolvers import reverse
% if share_settings:
<
%
facebook_share_text =
_("I
completed
the
{
course_title
}
course
on
{
platform_name
}.").
format
(
course_title=
accomplishment_course_title,
platform_name=
platform_name)
twitter_share_text =
_("I
completed
a
course
on
{
platform_name
}.
See
my
certificate
here
!
").
format
(
platform_name=
platform_name)
twitter_share_text =
_("I
completed
a
course
on
{
platform_name
}.
Take
a
look
at
my
certificate
.
").
format
(
platform_name=
platform_name)
share_url =
request.build_absolute_uri(reverse('cert_html_view',
kwargs=
dict(user_id=str(user.id),course_id=unicode(course_id))))
if
share_settings
.
get
('
CERTIFICATE_FACEBOOK_TEXT
',
None
)
:
facebook_share_text =
share_settings.get('CERTIFICATE_FACEBOOK_TEXT')
...
...
@@ -61,32 +61,26 @@ from django.core.urlresolvers import reverse
twitter_share_text =
share_settings.get('CERTIFICATE_TWITTER_TEXT')
%
>
% if share_settings.get('CERTIFICATE_FACEBOOK', False):
<
a
href=
"javascript:void(0)
"
<
button
class=
"action action-share-facebook btn btn-overlay btn-small icon-only"
id=
"action-share-facebook
"
onclick=
"FaceBook.share({
share_text: '${facebook_share_text}',
share_link: '${share_url}',
picture_link: '${request.build_absolute_uri(course_image_url)}',
description: '${_('Click the link to see my certificate.')}'
});"
class=
"action action-share-facebook btn btn-overlay btn-small icon-only"
id=
"action-share-facebook"
>
});"
>
<i
class=
"icon fa fa-facebook-official"
aria-hidden=
"true"
></i>
<span
class=
"action-label"
>
${_("Post on Facebook")}
</span>
</
a
>
</
button
>
%endif
% if share_settings.get('CERTIFICATE_TWITTER', False):
<
%
twitter_url =
'https://twitter.com/intent/tweet?text='
+
twitter_share_text
+
'&
url=
'+ share_url%>
<a
data-tooltip="${_('
Share
on
Twitter
')}"
<button data-tooltip="${_('
Share
on
Twitter
')}"
class=
"action action-share-twitter btn btn-overlay btn-small icon-only"
aria-haspopup=
"true"
aria-expanded=
"false"
href=
"${twitter_url}"
target=
"_blank"
title=
"${_('Share on Twitter')}"
onclick=
"popupWindow('${twitter_url}', 'tweetWindow', 640, 480); return false;"
>
<span
class=
"action-label"
>
${_("Tweet this Accomplishment")}
</span
>
<i
class=
"icon fa fa-twitter"
aria-hidden=
"true"
></i
>
</
a
>
<i
class=
"icon fa fa-twitter"
aria-hidden=
"true"
></i
>
<span
class=
"action-label"
>
${_("Tweet this Accomplishment. Pop up window.")}
</span
>
</
button
>
%endif
%endif
...
...
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