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
c42b36cc
Commit
c42b36cc
authored
Apr 22, 2016
by
Andy Armstrong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes
parent
a9971ef2
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
99 deletions
+20
-99
lms/static/sass/shared-v2/_header.scss
+6
-18
lms/templates/main.html
+1
-0
lms/templates/navigation.html
+4
-72
themes/edx.org/lms/templates/header.html
+9
-9
No files found.
lms/static/sass/shared-v2/_header.scss
View file @
c42b36cc
...
...
@@ -47,14 +47,17 @@
}
.list-inline
{
&
.nav-global
{
margin-top
:
12px
;
}
&
.nav-courseware
{
margin-top
:
5px
;
}
.item
{
display
:
inline-block
;
font-size
:
font-size
(
small
);
font-weight
:
font-weight
(
semi-bold
);
text-transform
:
uppercase
;
letter-spacing
:
0
!
important
;
&
.active
{
a
{
...
...
@@ -62,22 +65,7 @@
color
:
$link-color
;
}
}
a
{
color
:
$courseware-navigation-color
;
padding
:
3px
10px
;
&
:hover
,
&
:focus
{
background
:
inherit
;
color
:
$courseware-hover-color
;
}
}
}
}
.nav-courseware.list-inline
{
margin-top
:
5px
;
}
}
}
lms/templates/main.html
View file @
c42b36cc
...
...
@@ -74,6 +74,7 @@ from pipeline_mako import render_require_js_path_overrides
## TODO: Update to only bring in RequireJS
## https://openedx.atlassian.net/browse/FEDX-140
<
%
static:js
group=
'base_vendor'
/>
<
%
static:js
group=
'base_application'
/>
% endif
<script>
...
...
lms/templates/navigation.html
View file @
c42b36cc
...
...
@@ -71,7 +71,7 @@ site_status_msg = get_site_status_msg(course_id)
% endif
% if user.is_authenticated():
<ol
class=
"left ${main_nav_menu_classlist}
authenticated"
>
<ol
class=
"left nav-global
authenticated"
>
<
%
block
name=
"navigation_global_links_authenticated"
>
% if settings.FEATURES.get('COURSES_ARE_BROWSABLE') and not show_program_listing:
<li
class=
"item nav-global-01"
>
...
...
@@ -98,74 +98,6 @@ site_status_msg = get_site_status_msg(course_id)
%endif
</
%
block>
</ol>
% if uses_pattern_library:
<div
class=
"wrapper-user-menu dropdown-menu-container logged-in js-header-user-menu"
>
<a
href=
"${reverse('dashboard')}"
class=
"menu-title"
>
<span
class=
"sr-only"
>
${_("Dashboard for:")}
</span>
<
%
username =
user.username
profile_image_url =
get_profile_image_urls_for_user(user)['medium']
%
>
<img
class=
"menu-image"
src=
"${profile_image_url}"
alt=
""
>
${username}
</a>
<button
type=
"button"
class=
"menu-button button-more has-dropdown js-dropdown-button default-icon"
aria-haspopup=
"true"
aria-expanded=
"false"
aria-controls=
"${_("
Usermenu
")}"
>
<span
class=
"icon-fallback icon-fallback-img"
>
<span
class=
"icon icon-angle-down"
aria-hidden=
"true"
></span>
<span
class=
"text"
>
${_("Usermenu dropdown")}
</span>
</span>
</button>
<ul
class=
"dropdown-menu list-divided is-hidden"
id=
"${_("
Usermenu
")}"
tabindex=
"-1"
>
<
%
block
name=
"navigation_dropdown_menu_links"
>
<
%
if
uses_pattern_library:
dropdown_menu_item_classlist =
"dropdown-item item has-block-link"
else:
dropdown_menu_item_classlist =
""
%
>
<li
class=
"${dropdown_menu_item_classlist}"
><a
href=
"${reverse('dashboard')}"
class=
"action"
>
${_("Dashboard")}
</a></li>
<li
class=
"${dropdown_menu_item_classlist}"
><a
href=
"${reverse('learner_profile', kwargs={'username': user.username})}"
class=
"action"
>
${_("Profile")}
</a></li>
<li
class=
"${dropdown_menu_item_classlist}"
><a
href=
"${reverse('account_settings')}"
class=
"action"
>
${_("Account")}
</a></li>
</
%
block>
<li
class=
"${dropdown_menu_item_classlist}"
><a
href=
"${reverse('logout')}"
role=
"menuitem"
class=
"action"
>
${_("Sign Out")}
</a></li>
</ul>
</div>
% else:
<ol
class=
"user"
>
<li
class=
"primary"
>
<a
href=
"${reverse('dashboard')}"
class=
"user-link"
>
<span
class=
"sr"
>
${_("Dashboard for:")}
</span>
<
%
if
uses_pattern_library:
discovery_btn_classlist =
"btn"
else:
discovery_btn_classlist =
"cta cta-discovery"
%
>
% if settings.FEATURES.get('COURSES_ARE_BROWSABLE'):
<li
class=
"item nav-global-01"
>
<a
href=
"${marketing_link('COURSES')}"
>
${_('Find Courses')}
</a>
</li>
% endif
% if show_program_listing:
<li
class=
"tab-nav-item"
>
<a
class=
"${'active ' if reverse('dashboard') == request.path else ''}tab-nav-link"
href=
"${reverse('dashboard')}"
>
${_("Courses")}
</a>
</li>
<li
class=
"tab-nav-item"
>
<a
class=
"${'active ' if reverse('program_listing_view') == request.path else ''}tab-nav-link"
href=
"${reverse('program_listing_view')}"
>
${_("Programs")}
</a>
</li>
% endif
% if settings.FEATURES.get('ENABLE_SYSADMIN_DASHBOARD','') and user.is_staff:
<li
class=
"item"
>
## Translators: This is short for "System administration".
<a
href=
"${reverse('sysadmin')}"
>
${_("Sysadmin")}
</a>
</li>
% endif
</
%
block>
</ol>
<
%
include
file=
"user_dropdown.html"
/>
...
...
@@ -218,12 +150,12 @@ site_status_msg = get_site_status_msg(course_id)
<ol
class=
"right nav-courseware list-inline"
>
<
%
block
name=
"navigation_sign_in"
>
<li
class=
"nav-courseware-01"
>
<li
class=
"
item
nav-courseware-01"
>
% if not settings.FEATURES['DISABLE_LOGIN_BUTTON']:
% if course and settings.FEATURES.get('RESTRICT_ENROLL_BY_REG_METHOD') and course.enrollment_domain:
<a
class=
"btn
-brand
btn-login"
href=
"${reverse('course-specific-login', args=[course.id.to_deprecated_string()])}${login_query()}"
>
${_("Sign in")}
</a>
<a
class=
"btn btn-login"
href=
"${reverse('course-specific-login', args=[course.id.to_deprecated_string()])}${login_query()}"
>
${_("Sign in")}
</a>
% else:
<a
class=
"btn
-brand
btn-login"
href=
"/login${login_query()}"
>
${_("Sign in")}
</a>
<a
class=
"btn btn-login"
href=
"/login${login_query()}"
>
${_("Sign in")}
</a>
% endif
% endif
</li>
...
...
themes/edx.org/lms/templates/header.html
View file @
c42b36cc
...
...
@@ -73,13 +73,13 @@ site_status_msg = get_site_status_msg(course_id)
<ul
class=
"left list-inline nav-global authenticated"
>
% if not nav_hidden:
<
%
block
name=
"navigation_global_links_authenticated"
>
<li
class=
"nav-global-01"
>
<li
class=
"
item
nav-global-01"
>
<a
href=
"${marketing_link('HOW_IT_WORKS')}"
>
${_("How it Works")}
</a>
</li>
<li
class=
"nav-global-02"
>
<li
class=
"
item
nav-global-02"
>
<a
href=
"${marketing_link('COURSES')}"
>
${_("Find Courses")}
</a>
</li>
<li
class=
"nav-global-03"
>
<li
class=
"
item
nav-global-03"
>
<a
href=
"${marketing_link('SCHOOLS')}"
>
${_("Schools
&
Partners")}
</a>
</li>
</
%
block>
...
...
@@ -115,23 +115,23 @@ site_status_msg = get_site_status_msg(course_id)
% else:
<nav
aria-label=
"Account"
class=
"nav-account-management"
>
<div
class=
"right nav-courseware"
>
<div
class=
"nav-courseware-01"
>
<div
class=
"right nav-courseware
list-inline
"
>
<div
class=
"
item
nav-courseware-01"
>
% if not settings.FEATURES['DISABLE_LOGIN_BUTTON']:
% if course and settings.FEATURES.get('RESTRICT_ENROLL_BY_REG_METHOD') and course.enrollment_domain:
<a
class=
"btn
-brand
btn-login"
href=
"${reverse('course-specific-login', args=[course.id.to_deprecated_string()])}${login_query()}"
>
${_("Sign in")}
</a>
<a
class=
"btn btn-login"
href=
"${reverse('course-specific-login', args=[course.id.to_deprecated_string()])}${login_query()}"
>
${_("Sign in")}
</a>
% else:
<a
class=
"btn
-brand
btn-login"
href=
"/login${login_query()}"
>
${_("Sign in")}
</a>
<a
class=
"btn btn-login"
href=
"/login${login_query()}"
>
${_("Sign in")}
</a>
% endif
% endif
</div>
% if not settings.FEATURES['DISABLE_LOGIN_BUTTON']:
% if course and settings.FEATURES.get('RESTRICT_ENROLL_BY_REG_METHOD') and course.enrollment_domain:
<div
class=
"nav-courseware-02"
>
<div
class=
"
item
nav-courseware-02"
>
<a
class=
"btn-neutral btn-register"
href=
"${reverse('course-specific-register', args=[course.id.to_deprecated_string()])}"
>
${_("Register")}
</a>
</div>
% else:
<div
class=
"nav-courseware-02"
>
<div
class=
"
item
nav-courseware-02"
>
<a
class=
"btn-neutral btn-register"
href=
"/register"
>
${_("Register")}
</a>
</div>
% 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