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
bc9cce57
Commit
bc9cce57
authored
Jun 20, 2013
by
Miles Steele
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add instructor dash version switch
parent
5cdf3fb8
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
26 additions
and
13 deletions
+26
-13
lms/djangoapps/courseware/tabs.py
+0
-9
lms/djangoapps/instructor/views/instructor_dashboard.py
+1
-0
lms/djangoapps/instructor/views/legacy.py
+1
-0
lms/static/sass/course/instructor/_instructor.scss
+9
-0
lms/static/sass/course/instructor/_instructor_2.scss
+10
-3
lms/templates/courseware/instructor_dashboard.html
+2
-0
lms/templates/courseware/instructor_dashboard_2/instructor_dashboard_2.html
+3
-1
No files found.
lms/djangoapps/courseware/tabs.py
View file @
bc9cce57
...
...
@@ -306,10 +306,6 @@ def get_course_tabs(user, course, active_page):
reverse
(
'instructor_dashboard'
,
args
=
[
course
.
id
]),
active_page
==
'instructor'
))
if
has_access
(
user
,
course
,
'staff'
):
tabs
.
append
(
CourseTab
(
'Instructor 2'
,
reverse
(
'instructor_dashboard_2'
,
args
=
[
course
.
id
]),
active_page
==
'instructor_2'
))
return
tabs
...
...
@@ -361,11 +357,6 @@ def get_default_tabs(user, course, active_page):
link
=
reverse
(
'instructor_dashboard'
,
args
=
[
course
.
id
])
tabs
.
append
(
CourseTab
(
'Instructor'
,
link
,
active_page
==
'instructor'
))
if
has_access
(
user
,
course
,
'staff'
):
tabs
.
append
(
CourseTab
(
'Instructor 2'
,
reverse
(
'instructor_dashboard_2'
,
args
=
[
course
.
id
]),
active_page
==
'instructor_2'
))
return
tabs
...
...
lms/djangoapps/instructor/views/instructor_dashboard.py
View file @
bc9cce57
...
...
@@ -57,6 +57,7 @@ def instructor_dashboard_2(request, course_id):
'djangopid'
:
os
.
getpid
(),
'mitx_version'
:
getattr
(
settings
,
'MITX_VERSION_STRING'
,
''
),
'cohorts_ajax_url'
:
reverse
(
'cohorts'
,
kwargs
=
{
'course_id'
:
course_id
}),
'old_dashboard_url'
:
reverse
(
'instructor_dashboard'
,
kwargs
=
{
'course_id'
:
course_id
}),
'sections'
:
sections
}
...
...
lms/djangoapps/instructor/views/legacy.py
View file @
bc9cce57
...
...
@@ -771,6 +771,7 @@ def instructor_dashboard(request, course_id):
'instructor_tasks'
:
instructor_tasks
,
'offline_grade_log'
:
offline_grades_available
(
course_id
),
'cohorts_ajax_url'
:
reverse
(
'cohorts'
,
kwargs
=
{
'course_id'
:
course_id
}),
'beta_dashboard_url'
:
reverse
(
'instructor_dashboard_2'
,
kwargs
=
{
'course_id'
:
course_id
}),
'analytics_results'
:
analytics_results
,
}
...
...
lms/static/sass/course/instructor/_instructor.scss
View file @
bc9cce57
.instructor-dashboard-wrapper
{
display
:
table
;
@extend
.table-wrapper
;
display
:
table
;
position
:
relative
;
.beta-button-wrapper
{
position
:
absolute
;
top
:
2em
;
right
:
2em
;
}
section
.instructor-dashboard-content
{
@extend
.content
;
...
...
lms/static/sass/course/instructor/_instructor_2.scss
View file @
bc9cce57
.instructor-dashboard-wrapper-2
{
@extend
.table-wrapper
;
display
:
table
;
// @extend .table-wrapper;
// display: table;
position
:
relative
;
.olddash-button-wrapper
{
position
:
absolute
;
top
:
2em
;
right
:
2em
;
}
section
.instructor-dashboard-content-2
{
@extend
.content
;
padding
:
40px
;
width
:
100%
;
position
:
relative
;
//
position: relative;
.slick-header-column
{
height
:
100%
;
...
...
lms/templates/courseware/instructor_dashboard.html
View file @
bc9cce57
...
...
@@ -102,6 +102,8 @@ function goto( mode)
<section
class=
"container"
>
<div
class=
"instructor-dashboard-wrapper"
>
<div
class=
"beta-button-wrapper"
><a
href=
"${ beta_dashboard_url }"
>
Beta Dashboard
</a></div>
<section
class=
"instructor-dashboard-content"
>
<h1>
${_("Instructor Dashboard")}
</h1>
...
...
lms/templates/courseware/instructor_dashboard_2/instructor_dashboard_2.html
View file @
bc9cce57
...
...
@@ -18,7 +18,8 @@
<link
rel=
"stylesheet"
href=
"${static.url('css/vendor/slickgrid/slick.grid.css')}"
>
</
%
block>
<
%
include
file=
"/courseware/course_navigation.html"
args=
"active_page='instructor_2'"
/>
## NOTE that instructor is set as the active page so that the instructor button lights up, even though this is the instructor_2 page.
<
%
include
file=
"/courseware/course_navigation.html"
args=
"active_page='instructor'"
/>
<style
type=
"text/css"
></style>
...
...
@@ -26,6 +27,7 @@
<section
class=
"container"
>
<div
class=
"instructor-dashboard-wrapper-2"
>
<div
class=
"olddash-button-wrapper"
><a
href=
"${ old_dashboard_url }"
>
Standard Dashboard
</a></div>
<section
class=
"instructor-dashboard-content-2"
>
<h1>
Instructor Dashboard
</h1>
...
...
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