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
0a726a46
Commit
0a726a46
authored
Oct 24, 2017
by
Uman Shahzad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show the Enterprise tagline on the logistration page.
parent
63d26070
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
39 additions
and
1 deletions
+39
-1
lms/djangoapps/student_account/views.py
+2
-1
lms/static/sass/views/_login-register.scss
+16
-0
lms/templates/header/brand.html
+7
-0
lms/templates/header/navbar-logo-header.html
+7
-0
lms/templates/navigation/navbar-logo-header.html
+7
-0
No files found.
lms/djangoapps/student_account/views.py
View file @
0a726a46
...
...
@@ -267,7 +267,8 @@ def enterprise_sidebar_context(request):
platform_name
=
configuration_helpers
.
get_value
(
'PLATFORM_NAME'
,
settings
.
PLATFORM_NAME
)
logo_url
=
enterprise_customer
.
get
(
'branding_configuration'
,
{})
.
get
(
'logo'
,
''
)
branding_configuration
=
enterprise_customer
.
get
(
'branding_configuration'
,
{})
logo_url
=
branding_configuration
.
get
(
'logo'
,
''
)
if
isinstance
(
branding_configuration
,
dict
)
else
''
branded_welcome_template
=
configuration_helpers
.
get_value
(
'ENTERPRISE_SPECIFIC_BRANDED_WELCOME_TEMPLATE'
,
...
...
lms/static/sass/views/_login-register.scss
View file @
0a726a46
...
...
@@ -32,6 +32,22 @@
}
}
.enterprise-tagline
{
width
:
300px
;
font-size
:
14px
;
text-align
:
left
;
display
:
inline-block
;
vertical-align
:
middle
;
line-height
:
normal
;
margin-left
:
-30px
;
}
@media
(
max-width
:
$bp-screen-sm
)
{
.enterprise-tagline
{
width
:
200px
}
}
.window-wrap
{
background
:
$white
;
}
...
...
lms/templates/header/brand.html
View file @
0a726a46
...
...
@@ -7,6 +7,7 @@
<
%!
from
django
.
core
.
urlresolvers
import
reverse
from
django
.
utils
.
translation
import
ugettext
as
_
from
openedx
.
core
.
djangoapps
.
site_configuration
import
helpers
as
configuration_helpers
#
App
that
handles
subdomain
specific
branding
from
branding
import
api
as
branding_api
...
...
@@ -18,6 +19,12 @@ from branding import api as branding_api
<img
class=
"logo-image"
src=
"${static.url("
images
/
logo
.
png
")}"
alt=
"${_("
{
platform_name
}
Home
Page
").
format
(
platform_name=
static.get_platform_name())}"
itemprop=
"logo"
/>
</a>
</div>
% if enable_enterprise_sidebar:
<span
class=
"enterprise-tagline"
>
<
%
tagline =
configuration_helpers.get_value('ENTERPRISE_TAGLINE',
settings
.
ENTERPRISE_TAGLINE
)
%
>
${tagline}
</span>
% endif
% if course and not disable_courseware_header:
<div
class=
"course-header"
>
<span
class=
"provider"
>
${course.display_org_with_default}:
</span>
...
...
lms/templates/header/navbar-logo-header.html
View file @
0a726a46
...
...
@@ -7,6 +7,7 @@
from
django
.
core
.
urlresolvers
import
reverse
from
django
.
utils
.
translation
import
ugettext
as
_
from
lms
.
djangoapps
.
ccx
.
overrides
import
get_current_ccx
from
openedx
.
core
.
djangoapps
.
site_configuration
import
helpers
as
configuration_helpers
#
App
that
handles
subdomain
specific
branding
from
branding
import
api
as
branding_api
...
...
@@ -18,6 +19,12 @@ from branding import api as branding_api
<img
class=
"logo"
src=
"${branding_api.get_logo_url(is_secure)}"
alt=
"${_("
{
platform_name
}
Home
Page
").
format
(
platform_name=
static.get_platform_name())}"/
>
</
%
block>
</a>
% if enable_enterprise_sidebar:
<span
class=
"enterprise-tagline"
>
<
%
tagline =
configuration_helpers.get_value('ENTERPRISE_TAGLINE',
settings
.
ENTERPRISE_TAGLINE
)
%
>
${tagline}
</span>
% endif
% if course:
<div
class=
"course-header"
>
<span
class=
"provider"
>
${course.display_org_with_default}:
</span>
...
...
lms/templates/navigation/navbar-logo-header.html
View file @
0a726a46
...
...
@@ -7,6 +7,7 @@
from
django
.
core
.
urlresolvers
import
reverse
from
django
.
utils
.
translation
import
ugettext
as
_
from
lms
.
djangoapps
.
ccx
.
overrides
import
get_current_ccx
from
openedx
.
core
.
djangoapps
.
site_configuration
import
helpers
as
configuration_helpers
#
App
that
handles
subdomain
specific
branding
from
branding
import
api
as
branding_api
...
...
@@ -20,6 +21,12 @@ from branding import api as branding_api
</
%
block>
</a>
</div>
% if enable_enterprise_sidebar:
<span
class=
"enterprise-tagline"
>
<
%
tagline =
configuration_helpers.get_value('ENTERPRISE_TAGLINE',
settings
.
ENTERPRISE_TAGLINE
)
%
>
${tagline}
</span>
% endif
% if course:
<div
class=
"course-header"
>
<span
class=
"provider"
>
${course.display_org_with_default}:
</span>
...
...
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